Guys,

 

I've just started working with struts 2 but I am beating my head against
a problem.

 

I have a jsp which displays a number of rows by using an iterator.   In
each of those rows, I want a delete button.  When the user clicks one
of the delete buttons I kick off an action which will get the id to
delete and delete it.   I am stumped by how to do this!

 

 

I tried following the code here:
http://struts.apache.org/2.x/docs/html-form-buttons-howto.html

 

But it throws an error saying

 

javax.servlet.ServletException: /viewReleases.jsp(21,36) According to
TLD, tag s:property must be empty, but is not

 
org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:5
15)

 
org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher
.java:422)

 

 

My code  jsp code is:  

 

<s:iterator value="releases" id="release" status="cust_stat">

<input type="submit" name="delete[<s:property value='id'>]"
value="delete" />

                        

 

 

How in the world can i get a value found through an iterator into my
action class??

 

Thanks!

 

Ruel

Reply via email to