• Post Reply Bookmark Topic Watch Topic
  • New Topic

Few Queries

 
Malhar Barai
Author
Ranch Hand
Posts: 399
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

Few queries,

1. Can I have my JSP in a package...??
2. Is there any way I can block the implicit objects from working...??

TIA
MB
 
Adeel Ansari
Ranch Hand
Posts: 2874
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1 - dont understand wht do mean by putting jsp in package. if you mean like classes we define,

package com.dao;

class Employee{
...
..
}

then i dont know that. i think we can't.

2 - just try to set null there. like,

session = null;

infact, i haven't done it before.
 
Malhar Barai
Author
Ranch Hand
Posts: 399
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1st point exactly as adeel mentioned, can v hv a package..??

For the 2nd point, even I havent done it, but I just wanted to know if we could do it & how if its possible.

Thanx Anyway
 
Sonny Gill
Ranch Hand
Posts: 1211
IntelliJ IDE Mac
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Malhar Barai:
Hi All,

Few queries,

1. Can I have my JSP in a package...??
2. Is there any way I can block the implicit objects from working...??

TIA
MB


1. I dont think so, since there is no 'package' page directive. Why would you want to do it anyway. Usually JSP's get complied into Java files and are placed in a package by the application server. The package they get placed in is application server dependent. Check out the generated files for a JSP for your application server. In Tomcat, they are under TOMCAT_HOME/work folder by default.

2. I supposed you could do what Adeel says, but again why would you want to do it?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!