I think you would benefit much to move to a real MVC architecture. Go to
jakarta.apache.org and look at Struts. Read the docs, and use it. Its a
great tool, its free, its open-source, and it will allow you to "properly"
design good MVC development. You wont be submitting jsp pages back to
themselves anymore. :)


> -----Original Message-----
> From: Sunil Roy [mailto:[EMAIL PROTECTED]]
> Sent: Monday, October 02, 2000 12:56 PM
> To: [EMAIL PROTECTED]
> Subject: Problem Calling the Same JSP repeatedly
>
>
> Dear Jsp Gurus,
>
> I am having the following problem while trying to call a jsp file from
> within itself,
>
> repeatedly.
>
> The flow of the program is as follows:
>
> I am forwarding  some Attributes including a double dimension
> array ( of
> image nos. &
>
> their descriptions ) from a servlet "
> ConnectionPoolServlet.java " to a
> Jsp file " Display.jsp".
>
> The  Jsp "Display.jsp" is displaying only 10 images in the
> first page & then
> showing a
>
> link " NEXT".
>
> This link is again calling the same Jsp file " Display.jsp "
> for displaying
> the next
>
> 10 images.
>
> A part of the code of " Display.jsp " file is given below:
> **********************************************************
>
> <%@ import page = "ConnectionPoolServlet" session = "true" %>
>
> <html><body>
>
> <%--  Then comes the code for the display of the images &
> variables recieved
> from the
>
> servlet.    --%>
>
> <%--  The comes the code for putting the current array index
> & some other
> parameters'
> current values into the session object so that they can be
> accessed in the
> repeat call
>
> to this same JSP, from itself.  --%>
>
> <%--  Then the following statement is used to call this same
> Jsp again  --%>
>
> <a href = "<%= request.getURI() %>" >  NEXT  </a>
>
> </body></html>
>
>
> ********** "Display.jsp   ends  **************************
>
> When I click on NEXT  link , the same JSP , "Display.jsp" is
> called , but
> their is an
>
> error that :
>  " Class ConnectionPoolServlet not found in import "
>
>
> **************************************************************
> **************
> *****
> Then I tried an alternate method :
>
> I called another JSP " Next.jsp " for displaying the balance images.
> Here I am not imporing any class.
>
> But I am getting an error
>  " Null Pointer Exception " ,  even though everything is right.
>
> I am declaring the same variables again in " Next.jsp " &
> assigning to them
> the values
>
> recd. from the session object.
>
> Could somebody help?
>
> I need the help urgently.
> I will be grateful to anybody who helps, however small it may be.
>
> Thanks with anticipation.
>
> Bye
>
> Sunil Roy
>
>
>
>
>
>
>
> Sunil K. Roy
>
> ==============================================================
> =============
> To unsubscribe: mailto [EMAIL PROTECTED] with body:
> "signoff JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set
> JSP-INTEREST DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to