aspose file tools*
The moose likes IDEs, Version Control and other tools and the fly likes Error while building JSP in eclipse Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Error while building JSP in eclipse " Watch "Error while building JSP in eclipse " New topic
Author

Error while building JSP in eclipse

Mike Jeya
Ranch Hand

Joined: Apr 15, 2004
Posts: 54
Hi friends,
I am developing a web appication using eclipse IDE. I have 3 jsps' say , Main.jsp , Header.jsp , footer.jsp.

I am including header.jsp and footer.jsp into Main.jsp.

Header.jsp and footer.jsp has some jsp expression tags which will get the values from variables which are declared in Main.jsp.

While building using eclipse, I am getting error in Header.jsp and Footer.jsp says cannot resolve sybmol..I don't know that y this error is coming?

if anybody has idea to solve this,please post the answer....

Thanks in Advance
Abhimanyu Kumar
Greenhorn

Joined: Nov 05, 2004
Posts: 12
Originally posted by Mike Jeya:

I am including header.jsp and footer.jsp into Main.jsp.
Header.jsp and footer.jsp has some jsp expression tags which will get the values from variables which are declared in Main.jsp.
Thanks in Advance


Hi,
How are you including those jsp's in the Main.jsp ?
It will be better if you post your code here. Anyways, i'll give it a blind try.
If you are using <%@ include file="/jspName.jsp" %>, put it after the variable declaration in Main.jsp.
If you are using jsp:include, then it wont work as far as I know. Because, jsp:include will not copy the source into Main.jsp (as opposed to include file). It puts the o/p of the included file and not the source.
Correct me if I'm wrong.

-Abhimanyu.


"Where there's a will, I want to be in it."
Mike Jeya
Ranch Hand

Joined: Apr 15, 2004
Posts: 54
exactly I am doing the same way.
It's working ,if I deploy directly to the server.
My probs is, it's not working,if I build thru eclipse.
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 31054
    
162

Mike,
What plugin are you using with Eclipse to get the JSP support?

In WSAD (the commercial version of Eclipse), we get those errors. However when run on the server, the JSPs compile properly. The problem is that the header/footer aren't independent JSPs.

One solution is to use the extension .jspf (JSP fragment) so the IDE knows not to expect a compilable JSP.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
 
 
subject: Error while building JSP in eclipse