aspose file tools
The moose likes Struts and the fly likes How do I specify an index on a pdk:select tag in java? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Reply Bookmark "How do I specify an index on a pdk:select tag in java?" Watch "How do I specify an index on a pdk:select tag in java?" New topic
Author

How do I specify an index on a pdk:select tag in java?

William Oberkirsch
Greenhorn

Joined: May 04, 2010
Posts: 6
I have a form that needs to be repopulated when the user does an update but I don't what the selected value in a selectbox to change back to the first choice in the selectbox. How can I get it's current index and set it to that index when the form is repopulated.

Thanks in advance.

Bill O.

here is the select box in the jsp file




this is the java part where I do the setting of the selectbox and other parameters
(QuestionEditorAction.java)




David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Please UseCodeTags when posting code or configuration. Unformatted code and configuration is unnecessarily difficult to read.

Note that once a message is posted, you'll be redirected back to your message so you can check to see if the formatting you intended to apply was actually applied.

And welcome to JavaRanch!
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Is the "pdk" tag library a renaming of the normal Struts 1 libraries or something?
William Oberkirsch
Greenhorn

Joined: May 04, 2010
Posts: 6
pdk-struts is an extension of struts tags to allow the links to work inside Oracle's portals
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

http://struts.apache.org/1.2.x/userGuide/struts-html.html#select

Need to give the select a value.
 
I agree. Here's the link: jrebel
 
subject: How do I specify an index on a pdk:select tag in java?
 
Similar Threads
dynamic form elements using struts
need help :: multiple rows update without primary key
Indexed Setting/properties
How to get Names of selected checkboxes?
save checked value in checkbox to database