Link to home
Start Free TrialLog in
Avatar of Jaysri
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.
Avatar of Mick Barry
Mick Barry
Flag of Australia image

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.
Avatar of Jaysri
Jaysri

ASKER

sounds acceptable..is that all there is to it? any details?
I think this may contain a JSP parser:

http://java.sun.com/webservices/jwsdp/index.jsp
you could have the look at the source code for any open source jsp container
> I think this may contain a JSP parser:

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
Avatar of Jaysri

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
Avatar of Mick Barry
Mick Barry
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Jaysri

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..
Avatar of Jaysri

ASKER

Thankyou very much, objects. i got my answer.
no worries :)