on 04-05-2013 9:05 AM
Hello Friends,
I am creating a NEWS application in PDK which is similar to the XML FormBuilder News Application .
I have all the news selected in an Arraylist. and each newsitem is showed as in the below UI which runs in a forloop and created dynamically based on the no. of items..
the logic goes something like in JSP1
<%for (int i = 0; i < NumberOfNews; i++)
//UI Part //
<div>
<p>Shorttext :<%= shortTextList.get(i) %> </p>
</div>
Now as shown below when the user say goes to 3rd item and clicks on the "Link to popup" it should display the relevant Longtext of the item ( same funda of the XML form builder)
Now for the popup i am calling another JSP2 which will call the main Java application for data.Like
<a href="popup.jsp" onclick="return popitup('600','400','JSP2')"
>Link to popup</a>
However my question is how will i be able to pass this value if "i" ( Slelected news item number to fetch the relevant long text for the same news).
As i understand the i value is to be passed via the popitup event to the script . How can it be passed and accessed in the JSP2?
Please let me know i need to be more clear.
Thanks
Use the request to pass the parameter. See the attached link for details.
http://help.sap.com/saphelp_nw73ehp1/helpdata/en/4a/42c3d12f871c46e10000000a42189c/frameset.htm
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for the link Samuli.
However i have managed to resolve the issue and this is what i have done.
1. passed the values of long text via the href tag using
ahref = " irj/projname/jspapp2?param1=<% param1id %> ( this is the step i was looking for )
2.Retrieve the same values in the 2nd JSP application via request.getParameter("param1id ");
Thanks
Sunny
User | Count |
---|---|
89 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.