• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Regarding taking values from the table

 
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You need to learn the difference between <% %> and <%= %>.
 
reply
    Bookmark Topic Watch Topic
  • New Topic