• Post Reply Bookmark Topic Watch Topic
  • New Topic

JSTL does not compile

 
felix Tudis
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello All,
Need help , I'm new to JSTL. My page works fine on my local machine.
I uploaded it to a hosting site
and the JSTL variables show instead of it's content.

for example, I see on the page :

${cfList.ClientID} ${cfList.LName} ${cfList.Address}

instead of the content of ClientID,LName and Address which I'm loading from a database

I have jstl.jar and standard.jar in the directory /public_html/WEB-INF/lib/

Please Help what could be the cause for this.
 
Ram Narayan.M
Ranch Hand
Posts: 247
Chrome Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does Hosting site support JSPs?... Please check that out
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65519
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, the public_html part of the path is suspect. What container is the host running? Tomcat? public_html is not one of the usual folder paths for Tomcat.
 
felix Tudis
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks so much for your reply.

Yes,hosting site supports jsp.

they are running tomcat 5.5 and I'm developing with tomcat 6

the /public_html/
is the directory where I can directly upload my files,
so all jsp files are directly on this dirrectory for example

/public_html/index.jsp is working may be because I don't have JSTL embeded


/public_html/META-INF/context.xml

/public_html/WEB-INF/lib/jstl.jar
/public_html/WEB-INF/lib/standard.jar

I tried deleting contents of the lib directory and the
page throws an error which is expected.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65519
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You should be developing on the same Tomcat version that you will deploying to.

In any case, perform all the normal checks outlined in the JSP FAQ to make sure that your deployment descriptor is correctly declared.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65519
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You should be developing on the same Tomcat version that you will deploying to.

In any case, perform all the normal checks outlined in the JSP FAQ to make sure that your deployment descriptor is correctly declared.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65519
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
P.S. what happens if you hit a JSP page in your app that just contains the following:

 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!