Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 468
  • Last Modified:

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.
0
Jaysri
Asked:
Jaysri
  • 7
  • 4
  • 2
1 Solution
 
objectsCommented:
you need to parse them, generate the appropriate servlet code, then compile and execute it.
0
 
objectsCommented:
you could also cache the servlet class files, to save recompiling everytime.
0
 
JaysriAuthor Commented:
sounds acceptable..is that all there is to it? any details?
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
CEHJCommented:
I think this may contain a JSP parser:

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

where?
0
 
CEHJCommented:
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
0
 
JaysriAuthor Commented:
i am trying to look at a jsp container source code as you suggested, objects.
0
 
objectsCommented:
tomcat would be the obvious one to look at.
0
 
JaysriAuthor Commented:
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..
0
 
JaysriAuthor Commented:
Thankyou very much, objects. i got my answer.
0
 
objectsCommented:
no worries :)
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 7
  • 4
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now