Hi
I have a 2 dimensional integer array declared and values are dynamically stored into it in one jsp file .I passed this array into another Jsp File and when i tried to retrieve the data in the 2 Dimensional array it is raising a Null Pointer Exception.I am attaching the sample code . Please help Me
JSP FILE 1 :
// declatarion
int final_equivalentset[][] = new int[5050][5050];
// values are entered dynamically
session.setAttribute("myequivalentset",final_equivalentset);// added to session attribute
1----> **for( int check1 = 0;final_equivalentset[i-1][check1]!=0; check1++)
2----> { %><%= final_equivalentset[i-1][check1] %>
<% } %>
<% **
The above code is raising the Null Pointer Exception Both at lines marked as 1---> and 2--->
its stack trace is
Please do help me as this is my Major Project and have very less Time in my hand .
Related Tutorials/Questions & Answers:
Advertisements
passing from 1 jsp to another - JSP-Servletpassing from 1
jsp to another Hi Sir,
What are the ways and means of
passing from 1
jsp page to
another page.what are the different types of methods? Hi Friend,
You can use tag,sedRedirect() method
How to forward the control from one jsp to another?How to forward the control
from one jsp to
another? Hi!
This is Prasad Jandrajupalli.
I have the 3
JSP's, but I want communicate with each... is not communicate with the Third
JSP.
I want forward the control
from first
jsp to second
calling one jsp from another jsp - JSP-Servletcalling
one jsp from another jsp Hi All,
In my web application... in two.jsp by using
jsp declarative tag. Now
from one.jsp
file I want to call... start
from where we call this two.jsp files method. i.e. in one.jsp
file at line
calling one jap page from another jsp pagecalling
one jap page
from another jsp page i created a button in
one jsp page i need to call
another jsp page as an action to that button. so how can i call.. plz any
one explain. its urgent
passing value from javascript to jsp - JSP-Servletpassing value
from javascript to jsp Hi...
Is there any way to get the value
from the javascript and print it on the current
jsp page
or print an
array onto the current
jsp page using javascript Hi Friend,
We
passing data from one jframe to anotherpassing data
from one jframe to another I have two JFrame,built by using the GUI Editor netbeans 6.9.i have to pass a data
from a Jtextfield in the first Jframe to
another JLabel in the other JFrame.Can you please help me,how
how to change password into one jsp to another jsphow to change password into
one jsp to
another jsp i have two jsps in
one jsp i give
one password and confirm password, in
another jsp i want change my password compare with 1st
jsp how to write code please give me answer?
Passing array to jsp - JSP-Interview QuestionsPassing array to jsp Hi, I've a page with multiple check boxes, i can select multiple boxes at a time. On submit, i wish those all records to be populated in next screen. Pls suggest how can i achieve this. Thanks
File copy from one directory to another in javaFile copy
from one directory to
another in java I am trying to find very good code example for copying a
file from one directory to
another...?
Is there any size issue while copying the
file from one directory to
another Passing Parameters to Another JSP PagePassing Parameters to
Another JSP Page
By using the include action we can pass the parameters
to
another jsp page... in the
jsp post
from the html form or the
jsp page. ADS_TO_REPLACE_1
uploading a file at another system in lan using jspuploading a
file at
another system in lan using jsp Thanks for the code at "http://www.roseindia.net/
jsp/fileupload/Sinleupload.xhtml.shtml... to save or upload the
file at
another system in lan at location "http
passing data between the jsp pages ?passing data between the
jsp pages ? i developed a project... and displays the marks and i write
another jsp which will calculate the percentage of the marks.
from the previous
jsp page the data needs to pass.i use for that.when
jsp one to one mappingjsp one to
one mapping how to perform
one to
one mapping in
jsp....code of
one to
one mapping with .xml
file Passing parameters in JSP using forward.Passing parameters in
JSP using forward. If a page is forwarded to
another page using
jsp:forward, is it necessary that the page should be already created? Or will the compiler create
one?
Hi,
it necessary
Passing Parameter - JSP-ServletPassing Parameter I would like to ask how to pass a parameter
from javascript section into the
jsp section.It will be something like...;
answer<%; <---I'm stuck here
passing the var
pasing variables in jsp file - JSP-Servlet files share variables and how can
one pass local variables
from one jsp file to
another jsp file? Hi Friend,
To pass variables
from JSP file to
another JSP file ,do the following:
1) create
jsp page 'passVariable.jsp'and use
Passing Parameter - JSP-Servlet= ;
}
Use of Select Box in
JSP
Select items
from select box
>... Box in
JSP
Select items
from select box...
Passing Parameter Hi, it'me again. Below is the set of code that I
passing parameters - JSP-Servletpassing parameters hi
this is my
jsp page...();
st=con.createStatement();
rs=st.executeQuery("select *
from CHB...=rs.getString(
2);
String time1=rs.getString(3);
String date1=rs.getString(4
callig jsp file from javascript function - JSP-Servletcallig
jsp file from javascript function I want to call a
jsp file... to call either
jsp pge or html page
from one html form.
even u dont need to open... data, no button and no links.
Is it possible to call
jsp page
from static html
Passing Parameters - JSP-ServletPassing Parameters Hi
I have to pass parameter like such scenario. Please help me on emergent bases. I will be grateful.
First Page... is
For more information on
JSP visit to :
http://www.roseindia.net/
jsp passing values - JSP-Servletpassing values hi
this is my
jsp page... *
from CHB_DataInsertion where Status='Reserved'");
while(rs.next())
{
String hallno1=rs.getString(
2);
String time1=rs.getString(3);
String date1