Solved

compilation error in the included jsp page

Posted on 2004-07-30
1
255 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
[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
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

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

Suggested Solutions

Title # Comments Views Activity
timeToIdleSeconds vs timeToLiveSeconds in hibernate second level cache 3 170
Books that can get me started on JAVA 2 132
Re-position the objects 7 130
login form jsp example 2 68
Most of the sites are being standardized with W3C Web Standards. W3C provides lot of web standard services to the web. They have the web specification, process and documentation for all the web standards. You can apply HTML, CSS and Accessibility st…
JavaScript has plenty of pieces of code people often just copy/paste from somewhere but never quite fully understand. Self-Executing functions are just one good example that I'll try to demystify here.
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to count occurrences of each item in an array.

739 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