[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

compilation error in the included jsp page

Posted on 2004-07-30
1
Medium Priority
?
259 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 80 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

It's sometimes a bit tricky to use date functions in Oracle BPEL. I'll explain quickly how you can add N days to the current date. In a BPEL process this can be useful, and you can adapt it to fit your needs. First of all, let's see how to add 1 …
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.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…
Suggested Courses

649 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