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



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. the code works fine. you just need to create a mai
View Tutorial          By: Nabil at 2011-08-09 11:11:03

2. Nicely explained concept. Thankx.
View Tutorial          By: Raghvendra at 2013-01-17 07:48:18

3. Hi, you put a semicolon after "int main()&quo
View Tutorial          By: noel4037 at 2009-12-28 06:40:17

4. I am using MacOSX 10.5.4 and only enabling the mod
View Tutorial          By: Sachin at 2011-03-26 00:23:05

5. very nice..thank you so much.all the concepts are
View Tutorial          By: Priya at 2013-01-01 07:39:04

6. good but not v.good. it seems the author is big fa
View Tutorial          By: Muhammad Ishaq Awan at 2014-10-29 07:00:44

7. I think u've done well, just that more examples wi
View Tutorial          By: Mac at 2011-01-23 10:22:10

8. hi RAMLAK i am akankshain and getting these erro
View Tutorial          By: akanksha at 2011-12-06 10:15:47

9. Hi, this was useful. how can integrate j2me progra
View Tutorial          By: karthik at 2013-01-23 10:02:02

10. the example program that given above for recursion
View Tutorial          By: bharathi at 2012-07-17 09:31:14