I'm looking for some good solid examples that show how to configure the JSP files, struts-config.xml [global forwards, action mappings, form beans] and action classes where a JSP may forward/redirect to an action [may end up being a chain of actions] before another JSP is finally displayed. The 2 books that I've been using for learning Struts are "The Struts Framework: A Practical Guide for Java Programmers" by Sue Spielman and "Programming Jakarta Struts" by Chuck Cavaness. Both of these books seem to be lacking solid explanations & examples of the the full range of configurations for forwards & actions. I keep getting the feeling that if I could see one good comprehensive working example everything would be clear to me about how this is supposed to work.

I have a welcome file named "index.jsp". I'm questioning if it should be forwarding to the JSP file "login.jsp" [which I want to protect from direct access from the browser] or should it be forwarding to the action named "login" [or would it be "login.do"]? The action named "login" expects to use "login.jsp" as its input, and I'm just not certain now whether forwarding to a JSP will invoke the action or if forwarding to the action will cause its input form to be displayed.


Also, in my web.xml file, I have a url-pattern of "*.do" set in my servlet-mapping. What I'm not clear on is how/why URLs appear back in the browser such as "login.do" and "success.do" when the global forwards that my actions are using are called by their configured names of "login" and "success". I'm concerned about the browser backward/forward buttons and the reload button being clicked & what this might do to navigation within my webapp.



-- Chuck Chopp

ChuckChopp (at) rtfmcsi (dot) com http://www.rtfmcsi.com

RTFM Consulting Services Inc.     864 801 2795 voice & voicemail
103 Autumn Hill Road              864 801 2774 fax
Greer, SC  29651

Do not send me unsolicited commercial email.


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to