Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.gui > #2220

Passing value from Struts

Path csiph.com!x330-a1.tempe.blueboxinc.net!feeder1.hal-mli.net!nx02.iad01.newshosting.com!newshosting.com!novia!news-out.readnews.com!news-xxxfer.readnews.com!news-out.news.tds.net!newsreading01.news.tds.net!86597e80!not-for-mail
From "Oleg Konovalov" <oleg.konovalov@THRWHITE.remove-dii-this>
Subject Passing value from Struts
Message-ID <5Ojvi.2171$Ns6.2064@trnddc01> (permalink)
X-Comment-To comp.lang.java.gui,comp.l
Newsgroups comp.lang.java.gui
Content-Type text/plain; charset=IBM437
Content-Transfer-Encoding 8bit
X-Gateway time.synchro.net [Synchronet 3.15a-Win32 NewsLink 1.92]
Lines 43
Date Wed, 27 Apr 2011 15:37:52 GMT
NNTP-Posting-Host 96.60.20.240
X-Complaints-To news@tds.net
X-Trace newsreading01.news.tds.net 1303918672 96.60.20.240 (Wed, 27 Apr 2011 10:37:52 CDT)
NNTP-Posting-Date Wed, 27 Apr 2011 10:37:52 CDT
Organization TDS.net
Xref x330-a1.tempe.blueboxinc.net comp.lang.java.gui:2220

Show key headers only | View raw


  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">&nbsp;</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 | NextNext in thread | Find similar | Unroll thread


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