The moose likes JSP and the fly likes Getting back information from a JavaBean in a JSP page Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » JSP
Reply Bookmark "Getting back information from a JavaBean in a JSP page" Watch "Getting back information from a JavaBean in a JSP page" New topic
Author

Getting back information from a JavaBean in a JSP page

Amol Khiste
Greenhorn

Joined: Feb 06, 2003
Posts: 2
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

Joined: Mar 22, 2000
Posts: 11862
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


Java Resources at www.wbrogden.com
 
 
subject: Getting back information from a JavaBean in a JSP page
 
Threads others viewed
javabeans
Showing Date if no value
how to call javabean from jsp page upon onChange event
JSP Invoking another JSP in Iframe
Problem while using Javabean datasource in iReport.
developer file tools