Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Linux Archive
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-26-2008, 04:35 PM
Member
 
Join Date: May 2008
Posts: 64
prabhurangan is on a distinguished road
[SOLVED] Struts 2 <s:select> tag value ..... ?
Hi Members,
Im using <s:select> tag and on selecting the value from the list, im making a onchange event, in this im calling a javascript function and i have to retrieve the selected list value in javascript.

Not only in select tag, on using any tags, in <s:textfield> also i have to get the textfield value in the javascript function.

Please anyone help me out in this.

Looking forward for your reply.

Regards,
Prabhu.
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 06-27-2008, 10:55 AM
Member
 
Join Date: May 2008
Posts: 64
prabhurangan is on a distinguished road
Quote:
<s:select label="Dut Name" headerKey="1" headerValue="-- Please Select --" onchange="javascript:show_user_details(this.value) ;return false;" list="userList" listValue="xxx" />
How to get the listValue passed to javascript function, if i use (this.value) im just getting arraylist object there, but im not getting the value.
Please anyone help me out in this.

Looking forward for your reply.

Regards,
Prabhu.
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 06-27-2008, 10:57 AM
Member
 
Join Date: May 2008
Posts: 64
prabhurangan is on a distinguished road
Quote:
<s:a href="#" onclick="javascript:show_user_details('%{id}');ret urn false;"><sroperty value="id" /></s:a>
But this is working if we use <sroperty> tag, and retrieve the value from javascript. Please anyone help me for my last post.
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Select Count Apple2 JavaServer Pages (JSP) and JSTL 1 04-29-2008 11:02 AM
Using a variable in a SELECT FROM WHERE query cplmckenzie Database 12 04-23-2008 05:24 AM
JDBC select problem abhiN Database 0 03-12-2008 10:09 AM
Select specific cell Echilon New To Java 1 01-01-2008 09:47 AM
How to select/highlight an entire row in JTextArea Valeriano AWT / Swing 2 05-28-2007 01:20 PM


All times are GMT +3. The time now is 05:29 PM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org