-
passing javascript variable to bean?
Hello, I have a jsp page and I am trying to pass a javascript variable as a parameter into a javabean function, but since it is enclosed inside <%...%> it does not recognize the javascript variable. The call looks like this:
var code = document.bpmSelect.Division.options[document.bpmSelect.Division.selectedIndex].value;
<%ReportBeanId.setDivision(code);%>
And the error is that the "code" var is unrecognized during the call to the bean, any help is appreciated!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks