Comment on Tutorial - DispatchAction in Struts By Grenfel
Comment Added by : Alistair
Comment Added at : 2012-01-14 10:59:52
Comment on Tutorial : DispatchAction in Struts By Grenfel
Following question to this topic:
- when in a dispatch action I am unable to pass a field parameter and it's value within the URL.
-projectID works, teamID does not work
- teamID is entered by the user in the input field
I was trying to get the value via javascript, but I read that the action is evaluated before the javascript.
Here my code:
<input type="text" name="tsid" id="tsid" maxlength="100" />
<li>
<a href="<@s.url action='deleteTeam' value='deleteTeam.jspa'>
<@s.param name="projectID" value="${projectID?c}"/>
<@s.param name="teamID" value="javascript: document.getElementById('tsid').value"/>
</@s.url>">
<@s.text name="delete Team" /></a>
</li>
View Tutorial
- Data Science
- Android
- AJAX
- ASP.net
- C
- C++
- C#
- Cocoa
- Cloud Computing
- HTML5
- Java
- Javascript
- JSF
- JSP
- J2ME
- Java Beans
- EJB
- JDBC
- Linux
- Mac OS X
- iPhone
- MySQL
- Office 365
- Perl
- PHP
- Python
- Ruby
- VB.net
- Hibernate
- Struts
- SAP
- Trends
- Tech Reviews
- WebServices
- XML
- Certification
- Interview
categories
Related Tutorials
Java program to get location meta data from an image
Program using concept of byte long short and int in java
Update contents of a file within a jar file
Tomcat and httpd configured in port 8080 and 80
Count number of vowels, consonants and digits in a String in Java
Student marks calculation program in Java
Calculate gross salary in Java
Calculate average sale of the week in Java
Vector in Java - Sample Program
Archived Comments
1. Hello,
Thank you very much for this sample
View Tutorial By: Alex at 2010-08-12 07:30:32
2. Answer for comment 5
this loop is work infi
View Tutorial By: salman at 2013-03-10 07:30:53
3. would you please send me a code that can be run pl
View Tutorial By: putra at 2008-12-17 13:26:26
4. The xml listed above will allow ANY domain to exec
View Tutorial By: Mark McWhirter at 2012-10-09 05:58:14
5. thank u it hlep me a lot gr8.
View Tutorial By: harish at 2012-03-31 14:34:50
6. Hi wei long, did you download all the five program
View Tutorial By: Ramlak at 2008-06-23 03:26:31
7. PLEASE I WANT A CODE TO BE PUT BEHIND A BUTTON SO
View Tutorial By: KALUSHA at 2012-07-02 12:32:56
8. how this program is work , please, tell
View Tutorial By: rohit kumar at 2015-10-30 12:22:05
9. Really awesome keep posting ........
View Tutorial By: viswanath at 2013-01-30 07:38:13
10. hi ashraf , ramlak and all,
i m new here .
View Tutorial By: hemendra at 2009-12-28 21:59:34