Solved

compilation error in the included jsp page

Posted on 2004-07-30
1
250 Views
Last Modified: 2013-11-18
hi,

  I have response.jsp and payout.jsp files. payout.jsp file was included in response.jsp with include directive tag.
We have a Vector object which was initialized in response.jsp that is being used by payout.jsp page. Since the Vector object (i.e. pat) was not initialized in payout.jsp, it gives compilation error: pat cannot be resolved.
  How to resolve this? I appreciate ur help.

Thanks
0
Comment
Question by:mvkraju
1 Comment
 
LVL 35

Accepted Solution

by:
TimYates earned 20 total points
ID: 11677472
Add it to the request (in response.jsp), then get it back out in payout.jsp...

---- in response.jsp ---

<%
  request.setAttribute( "vect", yourVectorObject ) ;
%>

--- in payout.jsp ---

<%
  Vector theVectorObject = (Vector)request.getAttribute( "vect" ) ;
%>
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

I found this questions asking how to do this in many different forums, so I will describe here how to implement a solution using PHP and AJAX. The logical flow for the problem should be: Write an event handler for the first drop down box to get …
Styling your websites can become very complex. Here I'll show how SASS can help you better organize, maintain and reuse your CSS code.
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

911 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now