• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Tim Cooke
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Liutauras Vilda
  • Rob Spoor
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
  • Scott Selikoff
  • Piet Souris
  • Jj Roberts
  • fred rosenberger

jsp:include behaving improper in workshop application.

Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
<code snippet>

<%@ taglib uri="netui-tags-html.tld" prefix="netui"%>
Web Application Page
<table >
<td ><H1> Sales Maintenance </H1>
<td> <pre> Logged in User : <font color="blue"><%=((String) session.getAttribute("username"))%> </font><pre>

<td valign='top'>

<table bgcolor="skyblue">

<tr> <td> <A href="success.jsp?showPage=City.jsp">City Master </A> </td> </tr>
<tr> <td> <A href="success.jsp?showPage=Products.jsp"> Products Master </A> </td> </tr>
<tr> <td> <A href="success.jsp?showPage=Customer.jsp"> Customer Master </A> </td> </tr>
<tr> <td> <A href="success.jsp?showPage=Department.jsp"> Department Master </A> </td> </tr>
<tr> <td> <A href="success.jsp?showPage=Employee.jsp"> Employee Master </A> </td> </tr>
<tr> <td> <A href="success.jsp?showPage=Logoff.jsp"> Logout </A> </td> </tr>

<td align="right" nowrap>

<%! String sInvokeAction; %>

<font color="blue" >
System.out.println("Accessing the page");
sInvokeAction = "/loadJspPageAction.do?"+"jspfilename="+request.getParameter("showPage");
<jsp:include page="<%=sInvokeAction%>" />


<code snippet>

I expect this code , to show a menu list of masters to display on the left hand side & the selected master screen on the right side.

'loadJspPageAction' this action fetches the data of the selected master from the backend & forwards to the selected jsp which shows this fetched data

This code runs perfectly when I use struts with tomcat or even weblogic (with obvious changes in the netui tags).

But when I use it in workshop project , its showing me the master screen above all & below that it shows the menu.

Can anybody explain it why ?
Have anybody faced such kind of problem before ?
    Bookmark Topic Watch Topic
  • New Topic