Getting back information from a JavaBean in a JSP page
Amol Khiste
Greenhorn
Joined: Feb 06, 2003
Posts: 2
posted
0
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
posted
0
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