First, forgive me for asking a newb question at JSP- I started on it (and
Struts) less than two days ago, and I have a project I need to get going, very badly.
If I have a
jsp, and I want to have an action tied to a command button, and I want to maintain the current request (and a certain attribute of that request) while passing it on, I know I need to keep forwarding the request.
So, instead of saying in my jsp something like:
<html:form action="/emailContactInfo"> (where /emailContactInfo is one of my mapped actions in struts-config.xml)
I suspect I need to forward somehow to that same mapped action, to avoid losing the current request.
First, am I right? Second, can you point me at something that can very clearly explain how I would tie something like a <jsp:forward etc /> to a command button ( well an <html:submit etc />)?
I've no objection to reading- but I have to know it will pay off; I am rather short on time (one day left). Any help would be MUCH appreciated!
Actual examples of something similar would be great. I am hunting through all my newly purchased Struts books with no luck. I should have gotten JSP books too, but I didn't know at the time.