Dear friend(s),

Our project is a portal site, where the pages are in JSP and server used for
testing is Tomcat 3.00. JDK1.2.2 is used for compilation of JSP (i.e.,
tools.jar and javac.exe).  The first (default) page is the "New Cars" page
in which we're trying to initialise the relevant parameters.,i.e. "CAR" and
"APD00_01", within the page.  The code for session variable is:

<%      HttpSession ses         = null;
        ses             = request.getSession(true);
        if (ses==null)
        {
        %>
                <jsp:forward page="/jsp/won/APD00_01.jsp" />
        <%
        }
        else
        {
                ses.putValue("vehicle_code","CAR");
                ses.putValue("page_id","APD00_01");
        }
        String vehicle = (String) ses.getValue("vehicle_code");
        String pageID = (String) ses.getValue("page_id");
%>

and for  each of the top, left, right bottom parts of the page (below is
given for top only):

<jsp:include page="top.jsp" flush="true" />
                        <jsp:params>
                                <jsp:param name="vehicle_code" value="CAR"
/>
                                <jsp:param name="page_id" value="APD00_01"
/>
                        </jsp:params>
</jsp:include>

However, things are not working. On adding
"vehicle_code=CAR&page_id=APD00_01" in the URL, the desired result is
obtained. Here again, the history has to be cleared from  time to time  or
else, old cache seems to be accessed, at the whims of heaven-knows-what!
Incidentally, the first page contains static html, although beans and
database access  are used elsewhere.

As a deadline is there, you can imagine the tremendous pressure that we're
under and any help would be appreciated.

Regards,

Arnab

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html

Reply via email to