This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
It's just a servlet mapping defined in the deployment descriptor (web.xml).
The container will pass to the Action Servlet any request that matches the pattern. However, any valid prefix or extension can be used. Developers just use .do since it's more popular. [ November 16, 2002: Message edited by: Jose Velarde ]
Joined: Feb 20, 2002
thnx jose! actually i was trying to run the progarm given in javaranch's struts topic. i'm using weblogic 7.0. while LoginView.jsp is working, on submission, it calls login.do after which it goes blank, i.e. ActionServlet doesnt seem to get called. The directory structure of Weblogic is slightly different than Tomcat.
Joined: Sep 11, 2002
Check the struts-config.xml. You probably are missing some entries there.
Joined: Feb 20, 2002
Hi! unfortunately i still couldnt resolve the problem.....the login.do returns a blank page...seems ActionServlet is unable to proceed. Here's my directory structure (weblogic 7.0) and the source codes (more or less same as March article). Pl help.
Hi Suman, to try to work out what error you are getting, do some or all of the following: - check the weblogic log files for exceptions - put logging to the console in your action's perform or execute - put logging in your form bean's reset() and validate() methods - log which forward you return from your perform/execute() in the action Also I don't recognise the "redirect" attribute on the forwards you declare in your action mapping for the login.do - do you know what it does? Otherwise get rid of it for now. This should get you more info that should point to what you need to do.
I have seen things you people would not believe, attack ships on fire off the shoulder of Orion, c-beams sparkling in the dark near the Tennhauser Gate. All these moments will be lost in time, like tears in the rain.
Why have you removed slashes? E.g. you have following line in Action Mapping: <forward name="valid" path="MainMenu.jsp" redirect="true"/> Normally, path should be specified like path="/MainMenu.jsp" The same about "LoginView.jsp".