Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.gui > #2220
| From | "Oleg Konovalov" <oleg.konovalov@THRWHITE.remove-dii-this> |
|---|---|
| Subject | Passing value from Struts |
| Message-ID | <5Ojvi.2171$Ns6.2064@trnddc01> (permalink) |
| Newsgroups | comp.lang.java.gui |
| Date | 2011-04-27 15:37 +0000 |
| Organization | TDS.net |
To: comp.lang.java.gui,comp.l
Hi,
I am populating JSP page with rows retrieved from the database and
represented as a List of Beans in forEach loop:
<c:forEach var="list" items="${OperationsForm.OperationsList}">
...
<c:choose>
<c:when test="${list.isCompleted =='Y'}" >
<td width="100">Completed</td>
<td width="100"> </td>
</c:when>
<c:otherwise>
<td width="100">Pending</td>
<td width="100"><input type="image" onclick="
rowId=value; form.action='action.do?command=notify'"
value="${list.OperationId}" />
</td>
</c:otherwise>
</c:choose>
</tr>
</c:forEach>
Have hidden field: html:hidden property="rowId" value="-1"/>
User is clicking the button corresponding to one of the rows
and I need to pass the value of that rowId to the Action class, so it does
something in the database [action completed]
Now how do I pass it , is that the right way of doing it with calling
request.getSession().getAttribute(rowId) in the Action class ?
As of now I am getting Javascript error "Object doesn't support this
property or method", complaining about rowId=value;
Using Struts 1.3
Please help !
TIA,
Oleg.
---
* Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet!
--- Synchronet 3.15a-Win32 NewsLink 1.92
Time Warp of the Future BBS - telnet://time.synchro.net:24
Back to comp.lang.java.gui | Previous | Next — Next in thread | Find similar | Unroll thread
Passing value from Struts "Oleg Konovalov" <oleg.konovalov@THRWHITE.remove-dii-this> - 2011-04-27 15:37 +0000 Re: Passing value from St "Richard Senior" <richard.senior@THRWHITE.remove-dii-this> - 2011-04-27 15:37 +0000
csiph-web