thanks John Hines (contractor) Business Activation System Development 972 733-2166
-----Original Message----- From: Paul Barry [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 29, 2003 9:14 AM To: Struts Users Mailing List Subject: Re: Simple struts example for a simple minded person http://www.reumann.net/do/struts/main Hines, John wrote: > Is there a place where I can see a ***very*** simple struts example that I > can compile and run without too much typing? (I have in mind something as > simple as two jsps, one red background and submit button, one blue > background with submit button where each calls each other when the submit > button is pressed.) > > There seem to be lots of complex examples in books and on the web but > nothing that's just 50-100 lines total. > > Thanks > > John Hines (contractor) > Business Activation System Development > 972 733-2166 > > > -----Original Message----- > From: Bard A. Evjen [mailto:[EMAIL PROTECTED] > Sent: Wednesday, October 29, 2003 8:58 AM > To: [EMAIL PROTECTED] > Subject: Re: Running Multiple actions in one action > > Is there another way of doing it? > > I have this in my struts-config: > > <action path="/SearchAccounts" > type="com.om.condico.webclient.servlet.SearchAccountsAction" > name="SearchAccountsForm" > scope="request" > validate="true" > input="/account/index.jsp"> > <exception > key="web.account.jsp.no.records" > type="java.lang.NullPointerException" > path="/account/result.jsp"/> > <exception > key="web.account.jsp.error" > type="com.om.condico.util.exception.CondicoException" > path="/account/result.jsp"/> > <exception > key="web.account.jsp.error" > type="java.lang.Exception" > path="/account/result.jsp"/> > <forward name="ResultAccount" path="/account/result.jsp"/> > </action> > > I've tried to add a new action: > > <action path="/DirectURL" > type="com.om.condico.webclient.servlet.DirectURLAction"> > <forward name="GoToSearchAccounts" path="/SearchAccounts.do"/> > </action> > > and call the link > http://localhost:8080/DirectURL.do?report=SearchAccounts&companyName=Company > &accountName=*&reportDate=29/10/2003 > > In the action for DirectURL I just identify the report to be run, and > forward to /SearchAccounts. This works ok, but the problem is the logging in > and logging out again (that I also has as reparate actions in the > struts-config-file). > > Cheers, > Bard > > > "Ed King" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > >>Should be doable using filters, only problem with this solution is that >>the filters will always run for every request being served. >> >>Bard A. Evjen wrote: >> >> >>>I need to be able to run a search just by typing in the address (and >>>searchcriteria) in the URL, like: >>> >> >>http://localhost:8080/DirectURL.do?report=SearchAccounts&companyName=Compa n > > y > >>>&accountName=*&reportDate=29/10/2003 >>> >>>Before this search is run, I also want to log in the user and log him out >>>again after returning the result from the search. >>> >>>Does anyone have a solution for this? >>> >>>Cheers, >>>Bard >>> >>> >>> >>> >>> >>>--------------------------------------------------------------------- >>>To unsubscribe, e-mail: [EMAIL PROTECTED] >>>For additional commands, e-mail: [EMAIL PROTECTED] >>> >>> >>> > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]