Jaysri
asked on
servlets
If you are writing a servlet container, how do you handle .jsp files. Also you should be able to compile and run them automatically.
you need to parse them, generate the appropriate servlet code, then compile and execute it.
you could also cache the servlet class files, to save recompiling everytime.
ASKER
sounds acceptable..is that all there is to it? any details?
you could have the look at the source code for any open source jsp container
> I think this may contain a JSP parser:
where?
where?
From http://www.webdevelopersjournal.com/articles/jsp_build.html
"The Sun Microsystems Java Server Web Development Kit (JSWDK) available from http://java.sun.com contains all you need to start developing JSPs and servlets, including a JSP parser and a simple HTTP server"
I assume this is now what the JSWDK is being called
"The Sun Microsystems Java Server Web Development Kit (JSWDK) available from http://java.sun.com contains all you need to start developing JSPs and servlets, including a JSP parser and a simple HTTP server"
I assume this is now what the JSWDK is being called
ASKER
i am trying to look at a jsp container source code as you suggested, objects.
tomcat would be the obvious one to look at.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
thats a very good link, objects. lot of info there. just me just waits for more ideas (from u) before i give u the pts..
ASKER
Thankyou very much, objects. i got my answer.
no worries :)