File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Help in inculde a jsp" Watch "Help in inculde a jsp" New topic

Help in inculde a jsp

Soumya Rout
Ranch Hand

Joined: Aug 06, 2009
Posts: 49

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

Joined: Jan 10, 2002
Posts: 63870

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] [About Bear] [Books by Bear]
Girish Wakure

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

Joined: Sep 01, 2006
Posts: 234

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:
subject: Help in inculde a jsp
It's not a secret anymore!