This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Servlets and the fly likes what's wrong with the javabean? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Reply locked New topic
Author

what's wrong with the javabean?

he qinfeng
Greenhorn

Joined: Sep 13, 2003
Posts: 23
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??


SCJP<br />SCJD(in progress)
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12759
    
    5
Exactly what error do you get?
Does your JSP import the "dates" package?
Bill
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60752
    
  65

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


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: what's wrong with the javabean?
 
Similar Threads
Creating a java bean in a servlet and accessing it in a jsp
JSP
How to use jsp:useBean tag functionality in struts
what's wrong with the javabean?
Compilation error on importing class