• Post Reply Bookmark Topic Watch Topic
  • New Topic

Getting back information from a JavaBean in a JSP page

 
Amol Khiste
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a DatePicker Java bean that displays a date and drops down a calendar on clicking. A date can be selected from the calendar and the selected date is then displayed. I want to show this bean in a JSP page. I was able to show the bean in an applet. But I also want to get back the selected date from the bean. What are my choices? Note that the bean is a JavaBean, not EJB.
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If I understand you correctly, you want the bean to run on the user's browser, right? In that case the applet is still your best bet. You can use JavaScript to get data from the applet into a form that gets submitted. When generating the <applet tag, remember the browser has to request class files from the web server so you need to put them where the web server can serve them, not under WEB-INF.
Bill
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!