•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the JSP section within the Web Development category of DaniWeb, a massive community of 422,635 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 4,679 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JSP advertiser: Lunarpages JSP Web Hosting
Views: 1449 | Replies: 2
![]() |
•
•
Join Date: Feb 2008
Posts: 5
Reputation:
Rep Power: 0
Solved Threads: 1
Can you plese be clear in ur requirement.
Atleast can u send me the code snippet,
Atleast can u send me the code snippet,
•
•
Join Date: Jan 2008
Posts: 35
Reputation:
Rep Power: 1
Solved Threads: 4
You can't cast to String[]. It does not exist in Java.
Try to use an ArrayList instead.
All JSP pages share the same session. You will always have the variable in session until the session is terminated or until you remove the attribute yourself.
When you want the values back into another page you could use some code like this.
Now you have the values in the list. on the second page
Now you can get the value with following code.
Try to use an ArrayList instead.
All JSP pages share the same session. You will always have the variable in session until the session is terminated or until you remove the attribute yourself.
When you want the values back into another page you could use some code like this.
ArrayList list = (ArrayList) session.getAttribute("callername");Now you have the values in the list. on the second page
Now you can get the value with following code.
<%
Iterator iter = list.iterator();
while(iter.hasNext()){
%>
<input type="text" name="textfield1" value="<%= String.valueOf(iter.next()) %>">
<%
}
%> Last edited by electron33 : Feb 5th, 2008 at 3:40 pm.
![]() |
•
•
•
•
•
•
•
•
DaniWeb JSP Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Similar Threads
- Shopping Cart Not Working (ASP.NET)
- Python Chat Server (Python)
- Keeping track of the checkboxes selected acrros the page (PHP)
- Php With Sessions Aah (PHP)
- I've got Trojan.Holax... is this bad? (Viruses, Spyware and other Nasties)
- Pop3 Mail Watcher (Part 1) (Visual Basic 4 / 5 / 6)
- not-a-virusadware (Viruses, Spyware and other Nasties)
Other Threads in the JSP Forum
- Previous Thread: need some help.. thanks..
- Next Thread: String Tokenizer


Linear Mode