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. i want to know how to read a file inside zipfile.<
View Tutorial          By: iman at 2009-11-26 12:50:21

2. Unable to understand all the points, quiet confusi
View Tutorial          By: KB at 2015-04-15 10:11:14

3. Hi Steven. It looks like your example program does
View Tutorial          By: Ben Hallinan at 2008-04-25 08:36:42

4. hello
i am developing a budget application

View Tutorial          By: anu at 2010-04-16 04:26:36

5. nice info 4me
View Tutorial          By: baru at 2015-07-24 08:52:03

6. Thanks so much!
View Tutorial          By: Viet at 2013-01-15 15:02:52

7. thank you for code
View Tutorial          By: turki at 2013-12-11 13:23:44

8. Hi,Please send me running code for sending sms fro
View Tutorial          By: rahul at 2008-11-14 05:15:02

9. Thank you very much for your help!!
View Tutorial          By: Ajay Singh at 2009-10-21 22:17:21

10. This works great, just remember to add <uses-pe
View Tutorial          By: Nick at 2012-06-20 07:37:15