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

Eska sven.kiesow at interone.de
Thu Oct 15 10:07:31 CEST 2009


Hi Christoph,

what about using

String thisurl = cms.info("opencms.request.uri");

Eska



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).
> 
> In case some fields were not filled in I would like to invoke the same
> page with a parameter (or a list of paramters) indicating which fields
> were not filled in correctly.
> 
> (I would then frame the required fields in red or something)
> Anyway, I need a mechanism to find out the URL of the
> "page with free text" that has that form jsp template.
> 
> When I do something like 
> 
>  CmsJspActionElement cms = new CmsJspActionElement(pageContext, request,
> response);
>  String thisurl = cms.info("opencms.url");
> 
> I'm getting the URL of the jsp.
> 
> Thanks for helping.
> 
> --
> Chris Christoph P. U. Kukulies kukulies (at) rwth-aachen.de
> 
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://lists.opencms.org/mailman/listinfo/opencms-dev
> 
> 

-- 
View this message in context: http://www.nabble.com/obtaining-the-current-URL-of-the-calling-page-tp25904392p25904490.html
Sent from the OpenCMS - Dev mailing list archive at Nabble.com.




More information about the opencms-dev mailing list