473,395 Members | 2,783 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

vague output in the result(jsp) page

283 100+
hello friends,
what ive done is(in short) in my servlet class--->
Expand|Select|Wrap|Line Numbers
  1. ArrayList<String> list=new ArrayList<String>();
  2. while(resultset.next())
  3.             {
  4.                 s4 = resultset.getString("Publicity_Head");
  5.                 list.add(s4);
  6.                 s5 = resultset.getString("Budget_Alloted");
  7.                 list.add(s5);
  8.                 s6 = resultset.getString("Work_In_Progress");
  9.                 httpservletrequest.setAttribute("s6", s6);
  10.                 list.add(s6);
  11.                 s7 = resultset.getString("Amount_Paid");
  12.                 list.add(s7);
  13.                 httpservletrequest.setAttribute("list",list);
  14.             }
  15.  
and in my jsp page in each of the respective <td> i am printing the values like this--->
[HTML]
<tr>


<td width=25%>
<logic:iterate id="s4" name="list" scope="request">
<small>
<font face="Tahoma"> <bean:write name="s4"/> </font>
</small>
</logic:iterate>
</td>


<td width=25%>
<logic:iterate id="s5" name="list" scope="request">
<small>
<font face="Tahoma"> <bean:write name="s5"/> </font>
</small>
</logic:iterate>
</td>


<td width=25%>
<logic:iterate id="s6" name="list" scope="request">
<small>
<font face="Tahoma"> <bean:write name="s6"/> </font>
</small>
</logic:iterate>
</td>


<td width=25%>
<logic:iterate id="s7" name="list" scope="request">
<small>
<font face="Tahoma"> <bean:write name="s7"/> </font>
</small>
</logic:iterate>
</td>


</tr>
[/HTML]
as you can see ive used logic iterate tags to iterate and then print it using <bean:write> tag ,the output that im getting i pretty vague i.e inside each <td> tag when for ex-if i take publicity_code then only the value of publicity_code should be shown in that particular regiion, currently its showing me the values of all the 4 rows in the publicity_code,this is happening to all the columns present.all i want is to display the values of a particular column and no other columns value inside it.why is it happening?i hope ive conveyed the message right!.
regards,
ajos
Oct 19 '07 #1
0 1010

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Matthew Louden | last post by:
I am new to crystal report. I have ASP.NET pages that show the search result. Since the search result is represented by datagrid, it will be nice to put a button on that page, and allows the user...
1
by: Andrew | last post by:
I'm adding this as it to me a while to figure out all the pieces to be able to do this without using Microsoft.Office.Interop which caused me problems on the web-server. Streaming is the easy...
1
by: rajap | last post by:
How to write all the links of the google search result page into a text file using C#.
5
by: skuer | last post by:
Hey people.. I'm trying to find out how i can click on a result page after a search, so it can show the result more detailed in new a page. Is this possible? All the user datas is stored in...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.