I have 2 jsp�s (First.jsp, second.jsp). I have one a:href on First.jsp where it goes to Second.jsp , and also it needs to take some ID values from First.jsp to Second.jsp.
Below is my code (First.jsp): <h:inputHidden id =�employeeId� value = �#{employee.employeeID}� <h:inputHidden id =�applicationId� value = �#{employee.appliationID}� Below iy my href: <a href = �/jsp/Second.jsp� > Add Application </a>
How can I send values of employeeId and applicationID to Second.jsp , on clicking Add Application on first.jsp Any suggestions Thanks..
You can either submit the form with the 2 fields to your second.jsp or call a javascript function onClick of your anchor link, add fields as querystring and then pass the queryString to your second.jsp. Your second jsp will get the values as request parameters. [ August 17, 2007: Message edited by: Shailesh Kini ]
What is the scope of your employee bean? If it is in session scope, the employeeId and appId are automatically available in your second jsp. You can refer these properties in the same way as you referred them in your first jsp.