Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

recover current page in principal jsp

Status
Not open for further replies.

mygush

Programmer
Jul 5, 2005
1
FR
Hello,

I'm a new member and of corse I have a problem. How can I recover the current page of my action in my principal jsp without set parameter or attribute of each action.
Must I use the object 'request' and if such is the case how can I use it ?
Sorry for my english and thank you in advance for your answers.

Michel

This is my code :

Here my action.toString() is not null
<secu:form action="<%=action.toString() %>" .../>

But here my action.toString is null
<% ProfilParameter profilParameter = (ProfilParameter)session.getAttribute("profilParameter");
if(profilParameter != null && !profilParameter.equals(""))
{
profilParameter.setPage(action.toString());
}
%>
<% if(profilParameter != null &&!profilParameter.equals(""))
{
%>
<%= profilParameter.getValidateJavascriptFunction() %>
<%}
%>

 
How can I recover the current page of my action in my principal.jsp without set parameter or attribute of each action.

Could you expand what you mean a little more here?

Are you referring to how do you tell which page called the action? Or which action set up the page?

If you're really struggling with your English and would rather type it in your native tongue, go here


and copy the translation over.

Andrew
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top