Rob, Thanks a bunch....As soon as I sent the email, I realized the url was wrong. I'll check into that thread about placing the JSP under the WEB-INF.
Brian --- "Nocera, Robert" <[EMAIL PROTECTED]> wrote: > > 1. Put the jsp page under the WEB-INF directory and it shouldn't be > accessible except through your application. There was recently a thread > about this, but I don't have the details handy. > > 2. try runProduction.do with a capital P, it IS case sensitive. > > good luck, > Rob > > > > -----Original Message----- > From: Brian Dainton [mailto:[EMAIL PROTECTED]] > Sent: Monday, November 12, 2001 3:03 PM > To: [EMAIL PROTECTED] > Subject: Application Flow Question > > > I have a simple JSP (Production.jsp) that is populated via a ActionForm > bean. My > application's business rules specify that this JSP cannot be accessed, if > the system > state is "Running". In other words, don't allow the user to see this page, > if the > system is already running. > > User's access this page via a navigation menu bar. The url of the link is > /runProduction.do. Within the action class, I check for the system status, > and forward > the user to either the ProductionLoader.jsp page, or to a status page (if > the system is > already running). > > I also need to perform validation on some of the fields within > Production.jsp. I > initially accomplished this by simply overriding the validate method within > the > ActionForm. Here are my issues: > > 1) /runProduction.do vs. Production.jsp > ---------------------------------------- > As I mention above, I don't want to allow the user to access this page if > my application > is in a specific state. I am able to accomplish this by using > /runProduction.do as the > url within the menu. Within the perform method, I redirect the user > accordingly. Since > there's no way to keep a user from accessing > /application_root/ProductionLoader.jsp (that > I am aware of), that would lead me to think my design stinks. > > 2) Actions and Errors > ---------------------------------------- > Why do I get the following exception (Tomcat 3.2.1) when 'getting' the > following url? > I'm trying to access the JSP (ProductionLoader.jsp) via a menu item (link). > > 2001-11-12 13:55:14 - Ctx( /HMC ): 400 R( /HMC + /runproduction.do + null) > Invalid path > /runproduction was requested > > URL: runProduction.do > > Here's my action mapping with Struts_config.xml > > <action path="/runProduction" > type="holt.hmc.commander.struts.RunProductionAction" > name="productionForm" > scope="request" > input="/ProductionLoader.jsp"> > <forward name="production_system_idle" path="/ProductionLoader.jsp"/> > <forward name="production_system_running" > path="/ApplicationStatus.jsp"/> > </action> > > Thanks in advance, > > -brian > > __________________________________________________ > Do You Yahoo!? > Find a job, post your resume. > http://careers.yahoo.com > > -- > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> > > > LEGAL NOTICE > Unless expressly stated otherwise, this message is confidential and may be >privileged. > It is intended for the addressee(s) only. Access to this E-mail by anyone else is > unauthorized. If you are not an addressee, any disclosure or copying of the contents >of > this E-mail or any action taken (or not taken) in reliance on it is unauthorized and > may be unlawful. If you are not an addressee, please inform the sender immediately. > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> > __________________________________________________ Do You Yahoo!? Find a job, post your resume. http://careers.yahoo.com -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>