MarsHut Page 1/2

tieplantlimabeansΛογισμικό & κατασκευή λογ/κού

28 Οκτ 2013 (πριν από 3 χρόνια και 9 μήνες)

82 εμφανίσεις

problems with import in jsp file
Asked by
Caio Lima
on 2013-04-17T22:18:07-04:00
hi,
sorry for my english.
i just publish my web site made with java, jsp, and i'm stuck with a
problem.

my ".class" files is in the directory "WEB-INF/classes/..."
and i have the class Diversos in
"WEB-INF/classes/ferramentas/Diversos.class"

when i use a import comand like
and the jsp file is in the same level of WEB-INF the comand works fine.

but when i try to use the excatly same import and the jsp file is in a
subfolder, the import is not working.
then when i try to use the class Diversos throws me the execption

An error occurred at line: 11 in the jsp file: /acessos.jsp
Diversos cannot be resolved to a type

i don't know what to do anymore, already spent a lot a time trying to solve
this.
didn't find anything that can help me.

i publish my site in homehost.com.br

and in my local machine this error is not happen

maybe there's a problem with tomcat's configuration.

thank's for any help...
Archives
Java
Tomcat
Apr 17, 2013
Week 16, 2013
April, 2013
Year 2013
All Answers
Answer by
Konstantin Kolinko
on 2013-04-18T05:10:32-04:00
2013/4/18 caio lima caiorenam [ at ] gmail.com:

How do you deploy your webapp?

(A common newbie's error is placing one's files into webapps/ROOT/myappname.
The proper place for a web application is webapps/myappname or
MarsHut
Page 1/2
problems with import in jsp file
webapps/myappname.war

The ROOT is just another web application. You cannot nest web
applications into each other.
Answer by
Caio Lima
on 2013-04-18T09:20:33-04:00
Hi,

my index.jsp is inside webapps/ROOT

i have the same folder structure in my local machine and it works.

2013/4/18 Konstantin Kolinko knst.kolinko [ at ] gmail.com
Tagged
Class Diversos Throws
Directory
Import Comand
Jsp File
Subfolder
Related
IWA username using JSP for Already authenticated Window system
Change Root app Tomcat 7
Velocity Logging
Better SSL connector setup
path attribute from Context.xml is not working
practical scenarios
conf/Catalina/localhost/myWebApp.xml context file disappears
Question on servlet determination
NoSuchMethodError loading class in webapp from common class loader
Why is context.xml no longer copied to Catalina/localhost/myapp.xml?
View Online
http://www.marshut.com/iurmz/problems-with-import-in-jsp-file.html
MarsHut
Page 2/2