• 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 ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Rob Spoor
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
  • Scott Selikoff
Bartenders:
  • 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"%>
<netui:html>
<head>
<title>
Web Application Page
</title>
</head>
<body>
<table >
<tr>
<td ><H1> Sales Maintenance </H1>
</td>
<td> <pre> Logged in User : <font color="blue"><%=((String) session.getAttribute("username"))%> </font><pre>
</td>
</tr>
</table>

<table>
<tr>
<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>
</table>
</td>

<td align="right" nowrap>

<%! String sInvokeAction; %>

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

</tr>
</table>
</body>
</netui:html>

<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 ?
 
reply
    Bookmark Topic Watch Topic
  • New Topic