Link to home
Start Free TrialLog in
Avatar of cpribeiro
cpribeiro

asked on

How to get the previews page name

Dear Experts,

I have a JSP which execute the sendRedirect() command to call another JSP page. I would like to know if I can get the name from first page, when I'm executing the second page.

For example,

My first page :

<% ...
   sendRedirect("secondPage.jsp");
   ...
%>

My second page:

<% out.println("The name from first page is : " + firstPage);  /* How to get firstName string? */ %>

Regards,
Carla
ASKER CERTIFIED SOLUTION
Avatar of victorli
victorli
Flag of China image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of cpribeiro
cpribeiro

ASKER

Dear Victorli,

Thank you for reply.....

This reply solved my problem...

Regards,

Carla