Skip to main content



      Home
Home » Newcomers » Newcomers » How do i get Eclipse to see variables in one jsp that are declared in another?(Trying to import jsp into another jsp)
icon5.gif  How do i get Eclipse to see variables in one jsp that are declared in another? [message #508065] Fri, 15 January 2010 13:06 Go to next message
Eclipse UserFriend
Hi everyone.

i've used Eclipse about 2 years ago and never fully understood how to set up the environments. Noone here seems to have a clue either so I am desperately asking for assistance on setting up the environment.

I had taken my old code and reimported the project. It builds just fine and deploys, runs etc.

The problem is that in the Eclipse environment it gives me false errors where variables are not defined when actually they are defined but on a parent page.

So for example File A and File B
File A sets a variable fooBar
File A imports File B
File B is referencing variable fooBar

Eclipse shows error for File B because it does not detect the variable that is defined in File A.

How can I set the environment so it does not give this false reading?

Thank you for looking.
ooba
Re: How do i get Eclipse to see variables in one jsp that are declared in another? [message #508196 is a reply to message #508065] Sun, 17 January 2010 09:37 Go to previous message
Eclipse UserFriend
What do you mean with "parent page"? Do you mean a primitive type variable or do you mean a handle to an object that you have created? Like public static final TransactionType type = new objectName(); where type is the handler. And does this referenced object (page a) contains another object (page b)? Please post the code that declares the variable you're talking about.

How are you expecting your variable to survive from page to page? Have you declared the variable / handle to be session wide? How exactly do you declare it? Expression Language or pure Java of some sorts? Is it declared in the page or in a javabean?

I'm not an expert, just trying to ask the right questions.

[Updated on: Sun, 17 January 2010 15:18] by Moderator

Previous Topic:Error 2 when compiling firmware Heavy from makingthings.com
Next Topic:JavaME confiusion
Goto Forum:
  


Current Time: Wed Oct 29 01:12:45 EDT 2025

Powered by FUDForum. Page generated in 0.05996 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top