Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Help in inculde a jsp

 
Soumya Rout
Ranch Hand
Posts: 49
Java Java ME Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 65218
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

 
Girish Wakure
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can you give 'full error stack'?
 
ravindra patil
Ranch Hand
Posts: 234
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

i think

usrtyp is getting null value ...


 
akhter wahab
Ranch Hand
Posts: 151
Java MyEclipse IDE Python
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
use <jsp:include> tag.... this might take absolute path of the page...........
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic