struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jim Kiley" <jhki...@summa-tech.com>
Subject Re: struts 2 howto mulitiple dynamic buttons in a form
Date Thu, 11 Dec 2008 23:47:04 GMT
If nothing else, the error message tells you that you aren't closing your
s:property tag.  You have <s:property value='id'> and you should
have <s:property value='id'/>.
jk

On Thu, Dec 11, 2008 at 6:42 PM, Ruel Loehr <Ruel.Loehr@lombardi.com> wrote:

> 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
>
>


-- 
Jim Kiley
Technical Consultant | Summa
[p] 412.258.3346 [m] 412.445.1729
http://www.summa-tech.com

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message