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=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]

Reply via email to