473,383 Members | 1,762 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,383 software developers and data experts.

Problem in retrieving <a href> data in another jsp.Help needed. :)

283 100+
Hello friends,
In my action class i am getting a resultset data which im storing in a arraylist.
In my jsp page im retrieving the arraylist data as----->
Expand|Select|Wrap|Line Numbers
  1. <%publicity.PendingReqForm prfObj=null;
  2. ArrayList req=(ArrayList) request.getAttribute("req");
  3. for(Iterator it= req.iterator();it.hasNext();){
  4. prfObj=(PendingReqForm) it.next();{
  5. %>
  6.  
  7. <li>
  8. <a href="pages/serview/paystep2.jsp?req_code= <%=prfObj.getReq_Code() %>"> <%=prfObj.getReq_Code() %> </a>
  9. </li>
  10. <%}
  11. }%>
  12.  
Oh by the way the result generated on the anchor tag is(my view source generated)--->
[HTML]
<li>
<a href="pages/serview/paystep2.jsp?req_code= R10641604"> R10641604 </a>
</li>


<li>
<a href="pages/serview/paystep2.jsp?req_code= R10741604"> R10741604 </a>
</li>


<li>
<a href="pages/serview/paystep2.jsp?req_code= R11041605"> R11041605 </a>
</li>

[/HTML]
As you can see i have an anchor tag, where if i click on one of the link it, should show me the next jsp page.Fine till here, but the way i want my next jsp page to be generated is with the value R10641604(if i click on one particular link). And if i click on the 2nd link it should show for R10741604 and so on.
I m having problems to load the values in my 2nd jsp page when clicked on the link.In short i want to pass my link data in 2nd jsp page Please help me in this regard. I hope its clear.:)
regards,
ajos
Dec 20 '07 #1
3 2103
ajos
283 100+
Hi again,
I managed to solve the issue. The solution is just call the parameter name in the 2nd jsp page example(in my case)--->
this is inside my first jsp
Expand|Select|Wrap|Line Numbers
  1. <li>
  2. <a href="pages/serview/paystep2.jsp?req_code= <%=prfObj.getReq_Code() %>"> <%=prfObj.getReq_Code() %> </a>
  3. </li>
  4.  
in my 2nd jsp just say-->
<%String req_code= (String) request.getParameter("req_code");%>
and retrive the value as--->
<%=req_code%>
By the way good to see you back :)...where have you been? gearing for christmas? :)
regards,
ajos
Dec 20 '07 #2
r035198x
13,262 8TB
....
By the way good to see you back :)...where have you been? gearing for christmas? :)
regards,
ajos
I suppose you are refering to me?
I was trying to get my passport sorted out last week.
Dec 20 '07 #3
ajos
283 100+
I suppose you are refering to me?
I was trying to get my passport sorted out last week.
Yep mate was referring to you. Sorry for missing that part. :)
regards,
ajos
Dec 20 '07 #4

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

Similar topics

5
by: aniket_sp | last post by:
i am using a data adapter and a dataset for filling and retrieving data into .mdb database. following is the code..... for the form load event Dim dc(0) As DataColumn Try If...
1
by: rxgmoral | last post by:
dll problem,help me:) i create dll project ,the dll is Use MFC in a Static Library i hope exe call ListCtrl class from dll ==================DLL====================...
3
by: Jakob Petersen | last post by:
Hi, I need to increase the speed when retrieving data from a hosted SQL Server into VBA. I'm using simple SELECT statements. How important is the speed of my Internet connection? (I have...
1
by: John | last post by:
Hi var poster="<html><head..... etc .... </html>"; var animal='dog'; The string contains images and text that changes. Originally I wanted to do something like print "<a href=" +...
3
by: ajay2552 | last post by:
Hi, I have a query. All html tags start with < and end with >. Suppose i want to display either '<' or '>' or say some text like '<Company>' in html how do i do it? One method is to use &lt,...
1
by: hanusoft | last post by:
This is an example of Inserting and Retrieving data from xml file. private void Page_Load(object sender, System.EventArgs e) { // Put user code to initialize the page here ...
1
by: hanusoft | last post by:
This is an example of Inserting and Retrieving data from xml file. private void Page_Load(object sender, System.EventArgs e) { // Put user code to initialize the page here ...
3
ADezii
by: ADezii | last post by:
Last Tip, we demonstrated the technique for retrieving data from a DAO Recordset, and placing it into a 2-dimensional Array using the GetRows() Method. This week, we will cover the same exact Method...
7
by: splendid9 | last post by:
Problem in retrieving data from a XML file.......this is my code- protected void Page_Load(object sender, EventArgs e) { DataSet ds = new DataSet(); ...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.