Thanks for the replies, let me clarify something:

Here is the problem:

We have a header for the site called header.jsp. This header has an
image/link which if clicked will switch between languages..i.e. english and
spanish.
This header is included in all subsquent jsp pages.  So if the client clicks
on the link, it suppose to change the language in the session and the POST
to the same page..basically it should execute the action class again, which
will to go and get the resource file, set it in the request, build the jsp
and display it.

In order to POST this little form the change the language, I need the get
the URI of the page. Well, when executing request.getRequestURI() from a
JSP, it returns the jsp name (which I dont want), it doesn't return the
"/customer/FileA.do" instead it returns '/customer/filea.jsp'

Anyone has any idea on how to approach this problem ??

Thanks,

----- Original Message -----
From: "Guido" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Tuesday, February 25, 2003 1:49 AM
Subject: Re: HELP! Plz!! request.getRequestURI() in jsp vs. Action class
HELP!!! :)


> If I am not missing anything, maybe you can (it is a good practice) go
> _always_ through an Action (or ActionForward, etc) and never post
> directly to a JSP...
>
> HTH,
> Guido.
>
> Khalid K. wrote:
>
> >(Repost)
> >
> >Hello All, Please help with this problem.
> >
> >I need request.getRequestURI() to return  "actionA.do"
> >
> >This works fine if when I call the getRequestURI() method from an Action
> >class,
> >
> >But When I call request.getRequestURI() from a JSP file...it returns the
> >ActionA.jsp   ????????
> >
> >I could replace .jsp with .do, but my method sometimes post to a jsp
> >file and others to an Action, so It is not as easy....
> >
> >Any ideas??
> >
> >Thanks
> >
> >Khalid
> >
> >
> >
> >---------------------------------------------------------------------
> >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]

Reply via email to