[opencms-dev] obtaining the current URL of the calling page

Christoph P. Kukulies kuku at physik.rwth-aachen.de
Fri Oct 16 18:06:30 CEST 2009


On Fri, Oct 16, 2009 at 02:56:05PM +0200, Christian Steinert wrote:
> Christoph P. Kukulies wrote:
>> I have "page with free text" object which has a jsp template behind it.
>> The jsp has html code for building a form in it and invokes another jsp
>> which evaluates the form (checks for mandatory fields and plausibility)
> What do you mean by "invoke"? Do you include the other JSP or do you  
> issue a redirect?

Thanks, Christian, by invoke I meant the action part of the FORM.

But as you said, I got the answer I needed.

--
Chris Christoph P. U. Kukulies kukulies (at) rwth-aachen.de
>
> If you do a redirect, then you are on a different page and you would  
> have to inspect the "referrer" HTTP header, which might not necessarily  
> be sent by the client or have to keep some session state, etc..
>
> If you just include another JSP into your template, then the call of
>
>   cms.info("opencms.url");
>
> will return the URL of the overall page and you should not have a problem
>
> Best regards
> Christian



More information about the opencms-dev mailing list