Make a FormBean (ActionForm) of the JSP from where you are passintg the value and declare getter/setter of the variable which is holding your value.
For "?name=abc&sex=male" define a form bean which have getter/setter for name and sex variables.
In the action, retrieved the values of name and sex using form's getter method.
Hope it will helps.
• Sun Certified Programmer for Java 2 Platform (SCJP2)
• IBM Certified Professional for Object Oriented Analysis and Design with UML
• IBM Certified System Administrator for WebSphere Application Server v5.0
• Certified Business Analysis Professional (CBAP®)
Craeting the bean with setters and getters works fine , but if we use this approach only those value can be obtained which are there in form (e.g.text boxes etc).But what should i do if i want to pass some additional parameters thru that JSp page. I wish to use hidden variables for this but when i try to assign value to a hidden variable then it gives error as bellow "According to TLD, tag html:hidden must be empty, but is not"
hi i also have the same problem i have an list of records on one column i have the edit image which when clicked opens the record for editing now I'm not getting how to pass the value to the action class and how to get the values of the telephone at the action