?
Solved

How to get the previews page name

Posted on 2003-03-26
2
Medium Priority
?
175 Views
Last Modified: 2010-04-01
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
Comment
Question by:cpribeiro
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 1

Accepted Solution

by:
victorli earned 80 total points
ID: 8214944
try this:

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

Author Comment

by:cpribeiro
ID: 8217034
Dear Victorli,

Thank you for reply.....

This reply solved my problem...

Regards,

Carla
0

Featured Post

Independent Software Vendors: 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!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is a fine trick which I've found useful many times, when you just don't want to accidentally run a batch script or the commands needs administrator rights.
Learn how to use the free Acronis True Image app to easily transfer data between iPhones and Android phones.
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Suggested Courses
Course of the Month9 days, 1 hour left to enroll

764 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question