Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Rabiah Begum    on Jun 13 In Java Category.

  
Question Answered By: Aadi Martin   on Jun 13

We can pass  String Array Objects from One jsp  to another using session
objects.. Session objects are used to pass values between jsp pages..
You can also use QueryString method..But it is not a good one.. Use
session objects always (Eventhough they will eat performance if they are
more)


Just see the Example..


First.jsp
---------
<%
String[] arg={"krish","ghfds"}; session.setAttribute("arg",arg); %>

Second.jsp
----------
<%
String[] arg=(String[])session.getAttribute("arg");
%>
<%=arg[0]%>
<%=arg[1]%>

Share: 

 

This Question has 11 more answer(s). View Complete Question Thread

 


Tagged: