Solved

compilation error in the included jsp page

Posted on 2004-07-30
1
249 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
Comment Utility
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
installing and using WTP plugin eclipse MARS 3 82
CSS (line height?) issue 2 56
MVC and Angular 2 70
Problem to picture file 3 38
There are two main kinds of selectors in CSS: One is base selector like h1, h2, body, table or any existing HTML tags.  For instance, the following rule sets all paragraphs (<p> elements) to red: (CODE) CSS also allows us to define our own custom …
What is Node.js? Node.js is a server side scripting language much like PHP or ASP but is used to implement the complete package of HTTP webserver and application framework. The difference is that Node.js’s execution engine is asynchronous and event…
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…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

743 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

14 Experts available now in Live!

Get 1:1 Help Now