Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSP+bean

 
Vladimir Kositsky
Ranch Hand
Posts: 116
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
I'd like to try using JSP + bean with some logic for implementation. It
is simple example so probably Tomcat is good enough.
I created ProJavaServer directory and placed .jsp file, created
ProJavaServer\WEB-INF\classes directory and placed compiled bean there.
In %TOMCAT_HOME%/conf/server.xml i added:
<Context path="/ProJavaServer"<br /> docBase="c:\WORK/ProJavaServer">
</Context>
I run successfully examples that not included beans, so path and other
settings probably set properly.
To exclude typo i downloaded example from coreservlets.com
And it does not work.
^
C:\tomcat\work\localhost_8080%2Fexamples\_0002fjsp_0002fStringBean_0002ejspStrin
gBean_jsp_0.java:105: Class jsp.StringBean not found.
out.print(JspRuntimeLibrary.toString((((StringBean)pageContext.f
indAttribute("stringBean")).getMessage())));
I look for advice how to place my files to make it work.
Thanks in advance
Vladimir
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic