dcsimg
Using a directory for JSP files
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Yufu_Huang
Posted On:   Tuesday, November 13, 2001 09:25 AM

			
I'm using Tomcat3.2.2.

In MyJSP file:



LanguageBean.java is a simple class for testing, it returns simple information.
It's in /mywebapps/WEB-INF/classes/


Then if I put "MyJSP.jsp" in webapps/mywebapps, it works.
But if I put "MyJSP.jsp" to webapps/mywebapps/jsp without changing anything, it doesn't work.

What was wrong? Thank you for the help.

Re: Using a directory for JSP files

Posted By:   AlessandroA_Garbagnati  
Posted On:   Tuesday, November 13, 2001 03:37 PM

Hi again,

I think that the problem is related to the fact that when you move your jsp to a subdirectory, the servlet container consider it part of a package, not the 'main' package.

Try to use the page import directive to import the LanguageBean class and probably this will fix the issue.
About | Sitemap | Contact