• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

any othe way to getParameters?

 
malik ge
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have a jsp page on which I have two fields.


I want to know is there any other way to get the firstName and lastName on the check.jsp without using
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64715
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You should not be submitting to a JSP in the first place -- that's a bad practice from 10 years ago...

But, if you insist, you should be using the EL to get values. The built-in param and paramValues maps give you access to the parameters.
 
malik ge
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry, but what I meant to ask is if I don't specify the name property in the form , and submit it to a Servlet or JSP then it is possible to get the values?
without using request.getParameter();
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64715
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Of course not. If there's no name, there's no parameter even submitted.
 
malik ge
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok.
Thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic