Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Regarding taking values from the table  RSS feed

 
priya pillai
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi friends

I am displaying values from the database table to html table using JSP.In that table one column value is modify and if i click the modify the values in that row should be display in another page.....

What is my doubt is if i click modify how can i take the value from that corresponding row...or atleast i want to take only one field value...if i got that value i will search from the database table itself..

How i can i take the value...please help me

My code to display values in the table is

if(pendorders.size()>0){
java.util.Iterator i1 = pendorders.iterator();
while(i1.hasNext()){
pendnorder = (java.util.ArrayList) i1.next();

<tr>
<td width="33%" height="16"><%= pendnorder.get(0) %></td>
<td width="33%" height="16"><%= pendnorder.get(1) %></td>
<td width="33%" height="16"><a href="neworder">
yes</a></td>

When i click the yes i want to take the values from the corresponding row...

thanks
 
priya pillai
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
or anybody tell me what is wrong with the line

<td align=center><a href=neworder?po_no=<%pendnorder.get(0);%>> new</a>

here
<%pendnorder.get(0);%> value of order number...i am planning to take the order number in the above way
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65826
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You need to learn the difference between <% %> and <%= %>.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!