Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 178
  • Last Modified:

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
0
cpribeiro
Asked:
cpribeiro
1 Solution
 
victorliCommented:
try this:

<% out.println("The name from first page is : " + request.getHeader("referer"));  /* How to get firstName string? */ %>
0
 
cpribeiroAuthor Commented:
Dear Victorli,

Thank you for reply.....

This reply solved my problem...

Regards,

Carla
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now