File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes  html:select  onchange::: Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark " html:select  onchange:::" Watch " html:select  onchange:::" New topic
Author

html:select onchange:::

reddy kl
Greenhorn

Joined: Apr 04, 2002
Posts: 11
hi all,i have <html:select> in which am getting collection and in onchange function i want to display the respective(selected one)page in other(different) frame.can any help me out with a piece of code...
------here is my <html:select>-----
<html:select property="selectedClaimType" onchange="toViewClaimType(this.form)">
<html ptions collection="claimValueList" property="value" labelProperty="label"/>
</html:select>
------
and in the function toViewClaimType() ..how to set different actions based on selection???
c'ze the contents in claimValueList got it's own jsp page////
thanks in advance...
reddy kl
Adam Hardy
Ranch Hand

Joined: Oct 09, 2001
Posts: 565
This is pure javascript - you could do it in the javascript function by getting the value of the selected option in the select and then doing a
location.href(myurl);
here myurl contains the URL from the selected option.


I have seen things you people would not believe, attack ships on fire off the shoulder of Orion, c-beams sparkling in the dark near the Tennhauser Gate. All these moments will be lost in time, like tears in the rain.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: html:select onchange:::
 
Similar Threads
html select question..please help
INSERT THE VALUE OF A FORM FIELD INTO A JAVA STRING (without page refresh)
Select problem
Need help selected text fields visible for particular option from drop down list in JSP(struts)
on