Win a copy of Kotlin in Action this week in the Kotlin forum!
    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
  • 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(resin2.1.9+jdk1.4)can pass the local test,
but when I put them under the hired space(resin2.1.9+jdk1.4) WEB-INF/classes/dates,can produced the .class files,but the jsp web can't see the javabean's result.
Why??
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Report post to moderator
Exactly what error do you get?
Does your JSP import the "dates" package?
Bill
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66188
151
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Report post to moderator
This is a dupe of a topic posted in JSP. Please continue any discussion here.
Please refrain from posting the same question in multiple forums. It wastes people's time and effort.
bear
 
It is sorta covered in the JavaRanch Style Guide.
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!