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



Subscribe to Tutorials

Related Tutorials

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

Java File

Java String

Count number of vowels, consonants and digits in a String in Java

Reverse a number in Java

Student marks calculation program in Java

Handling Fractions in Java

Calculate gross salary in Java

Calculate average sale of the week in Java

Vector in Java - Sample Program

MultiLevel Inheritance sample in Java

Multiple Inheritance sample in Java

Java program using Method Overriding

Archived Comments

1. sir the program is
error: error reading C:

View Tutorial          By: Yashovardhan at 2008-05-05 21:42:27

2. hi! im new in j2me applications so i just cleaned
View Tutorial          By: resego at 2010-08-04 07:29:29

3. please somebody tell me how to run this applicatio
View Tutorial          By: black Panther at 2008-04-01 02:08:09

4. sir, i need java code to display position and velo
View Tutorial          By: Sandhya Yadav at 2015-08-20 07:16:04

5. Now what the hell does all this mean???
To

View Tutorial          By: Søren at 2011-09-22 03:13:53

6. How can you print this using recursion?

View Tutorial          By: Menon at 2011-09-08 07:16:02

7. Very Nice and Perfectly Understandable.....
View Tutorial          By: rex at 2015-04-16 12:27:03

8. i got really nice help from the code. Thanks.
View Tutorial          By: Amit at 2009-04-10 08:18:40

9. very nice session
View Tutorial          By: Rajendra singh rathod at 2012-03-16 13:32:01

10. Its super explanation
View Tutorial          By: jose at 2011-12-08 13:36:29