aspose file tools*
The moose likes JSP and the fly likes Help in inculde a jsp Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Help in inculde a jsp" Watch "Help in inculde a jsp" New topic
Author

Help in inculde a jsp

Soumya Rout
Ranch Hand

Joined: Aug 06, 2009
Posts: 49

Heloo,
In my app i want to include a jsp depending upon the user type. I have used following code . But its showing NullpointerException.





Please help me out..


Thanks in advance..
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60057
    
  65

Java in a JSP is a poor practice. You should update your knowledge of JSP.

In any case, a null pointer exception means that there's a null reference. You need to find it.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Girish Wakure
Greenhorn

Joined: Apr 14, 2010
Posts: 28
can you give 'full error stack'?
ravindra patil
Ranch Hand

Joined: Sep 01, 2006
Posts: 214
Hi,

i think

usrtyp is getting null value ...


akhter wahab
Ranch Hand

Joined: Mar 02, 2009
Posts: 151

use <jsp:include> tag.... this might take absolute path of the page...........


Start Earning Online||Start Earning Using Java
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Help in inculde a jsp
 
Similar Threads
Failed to display login link once user has logged out
How to bind data to a Spring form input tag
how to iterate a arraylist and print values in table using logic:iterate
Multiple forms in a single JSP page
Online Shopping