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 ]
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.
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".
Is that a spider in your hair? Here, threaten it with this tiny ad: