Forget it, I've solved it.
I added a new parameter in the Login action, and if this is set, it forwards
to the DirectURL action that identifies the action (report) the user wants
to run, does the search and displays the result.
Cheers,
Bard
"Bard A. Evjen" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Is there another way of doing it?
>
> I have this in my struts-config:
>
> type="com.om.condico.webclient.servlet.SearchAccountsAction"
> name="SearchAccountsForm"
> scope="request"
> validate="true"
> input="/account/index.jsp">
> key="web.account.jsp.no.records"
> type="java.lang.NullPointerException"
> path="/account/result.jsp"/>
> key="web.account.jsp.error"
> type="com.om.condico.util.exception.CondicoException"
> path="/account/result.jsp"/>
> key="web.account.jsp.error"
> type="java.lang.Exception"
> path="/account/result.jsp"/>
>
>
>
> I've tried to add a new action:
>
> type="com.om.condico.webclient.servlet.DirectURLAction">
>
>
>
> 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=Compan
> 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]