Thread: how to get hidding parameters in url ..?

Forum : Java Server Pages (Jsp)   03-11-2015 05:00:00 AM
User Image
bhagavan1226

Newbie

Joined: Apr 20, 2017

Points: 100

Threads: 4

Posts: 2

how to get hidding parameters in url ..?

| Quote Date : Nov 3, 2015    Views:1058    

please help me ..

tags: java

Comments

User Image
Sriman

Member

Joined : Jul 15, 2016

Points : 575

Threads: 642

Posts: 189

Re: how to get hidding parameters in url ..?

Reply Date : Aug 22, 2017

Can you elaborate your question, could able to understand.

User Image
Deshmukh G

Newbie

Joined : Apr 21, 2017

Points : 120

Threads: 41

Posts: 25

Re: how to get hidding parameters in url ..?

Reply Date : Aug 22, 2017

HttpServletRequest interface?s getParameter() method is used to get hidden field value in servlet.

 Syntax:
 String value = request.getParameter(?fieldName?);  
 
 Hidden field only works in case of form submission so they will not work in case of anchor tag as no form submission is there.
 
  ex:-
        String userName = request.getParameter("userName").trim();
    String password = request.getParameter("password").trim();?

User Image
Ranjith3177

Newbie

Joined : Apr 20, 2017

Points : 115

Threads: 16

Posts: 41

Re: how to get hidding parameters in url ..?

Reply Date : Aug 22, 2017

String value = request.getParameter("Name if the hidden filed").toString();

We can get the hidden parameter value.

User Image
harish1377

Newbie

Joined : Apr 20, 2017

Points : 100

Threads: 0

Posts: 4

Re: how to get hidding parameters in url ..?

Reply Date : Nov 5, 2015

pass the parameters through post() so u can hide parameters in url

Load More

No More Comments