Solved

compilation error in the included jsp page

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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

Introduction Knockoutjs (Knockout) is a JavaScript framework (Model View ViewModel or MVVM framework).   The main ideology behind Knockout is to control from JavaScript how a page looks whilst creating an engaging user experience in the least …
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
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…

695 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