• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Tim Cooke
Sheriffs:
  • Rob Spoor
  • Liutauras Vilda
  • paul wheaton
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Mikalai Zaikin
  • Carey Brown
  • Piet Souris
Bartenders:
  • Stephan van Hulst

JSP+bean

 
Ranch Hand
Posts: 116
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Doe, a deer, a female deer. Ray, a pockeful of sun. Me, a name, I call my tiny ad ...
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic