Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

alternative to request.getParameter(string) in jsp page?  RSS feed

 
Prabhat Ranjan
Ranch Hand
Posts: 397
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

As we know that request.getParameter(string) is used to get vales from html page to next jsp page.

is there any another way to get values fom html page to jsp ..


Regards,
Prabhat
 
Seetharaman Venkatasamy
Ranch Hand
Posts: 5575
Eclipse IDE Java Windows XP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As far i know . the answare is NO
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66141
141
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The answer is a resounding YES.

You shouldn't be putting Java code on the page at all; you should be using the EL. With the EL, parameters are fetched from the builtin param Map. For example:
 
Seetharaman Venkatasamy
Ranch Hand
Posts: 5575
Eclipse IDE Java Windows XP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bear Bibeault wrote:${param.paramName}


Great
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!