2

I am making a JSP page that links to a page where it will pull a list of data from the database depending on the user who is logged in. I am using a DataSourceRealm type authentication so I pull the username with a request.geRemoteUser() and want to submit that to my form when I click the link but I cannot figure out how to do that, my link code is:

<li><html:link forward="showEnrolled">View Enrolled Classes</html:link></li>

And my form just needs the username to run. Is there anyway I can get it to send the username along with the forward?

1 Answer 1

0

checkout this link:

http://www.jguru.com/faq/view.jsp?EID=877089

basically you have to use a HashMap, there are multiple solutions on the above page.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.