• Post Reply Bookmark Topic Watch Topic
  • New Topic

what's wrong with the javabean?  RSS feed

 
he qinfeng
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I hired a virtual host which supports jsp.
I use resin2.1.9+jdk1.4,can pass the local test,
but when I posted them to the hired host,can produced the .class files,but the jsp web can't see the javabean's result.
Why??
 
Eelco den Heijer
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Can you tell us what's in your web application? Servlets? External libraries? Do you have your own jar's? Your error looks like a 'plain' classpath problem...
 
he qinfeng
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm a Chinese student,so my English is not very well,
I wrote a JspCalendar.java which returned the time,I put it under the WEB-INF/classes/dates.
and use
<jsp:useBean id="clock" scope="page" class="dates.JspCalendar" type="dates.JspCalendar" />
<jsp:getProperty name="clock" property="year"/>
<jsp:getProperty name="clock" property="month"/>
<jsp:getProperty name="clock" property="dayOfMonth"/>
it can pass in my local host,
but when I put them under the hired space WEB-INF/classes/dates,can not see the correct result,
 
Shraga van Shufel
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can try to set the classpath in the deployment descriptor of your application ( <app-root>/WEB-INF/web.xml)
<classpath id='WEB-INF/classes' source='WEB-INF/classes' compile='true'/>
/Shraga.
 
he qinfeng
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry,it's my first time to enter the English forum,so I didn't know the same topic can not post on the differenct place.
I'm sad,whether try importing the date.* or write the web.xml,it doesn't make effect.
I asked the hired host supports,they tell me nothing.
who can help me?
[ September 16, 2003: Message edited by: he qinfeng ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!