Im currently using Tomcat as my server. I use the jspc command that comes
with tomcat. If your using another server it probably has an equivilent
command.
If not write back and ill give details on how to run it without tomcat.

as for the xml... it gets generated by the jspc command it self. The only
pain in the ass about it is you have to take the entries it makes and merge
them into your existing web.xml. There is an extension ant task to do this..
or you can just do it manaually.

As nasty as all this sounds its actually pretty easy after you have done it
once... and it works... no source.. ( not even jsp ) needs to be sent to the
client!

JMG




----- Original Message -----
From: "James Childers" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, July 02, 2003 1:04 PM
Subject: RE: Are .jsp files required : more precise needs



Cool! So what generates your xml data? XDoclet? If so, where do you put your
XDoclet information?

-= J

> -----Original Message-----
> From: Jamie M. Guillemette
> [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, July 02, 2003 11:55 AM
> To: Struts Users Mailing List
> Subject: Re: Are .jsp files required : more precise needs
>
>
> James / Arnaud,
>
> We do this right now in our production environment and it works great.
>
> When you precompile the jsps they do get converted into servlets.
> a xml file is also created that contains mapping from the jsp
> url to the
> servlet. That way when you request
> the jsp file it will map it to the corresponding servlet.
> Just add these
> mapping into your web.xml.
> The jsp files will never be used after this point.. hence you
> can remove
> them from the deployement war / ear
>
>
> You can automate all of this via ant scripts so that it
> because an easy to
> use routine deployement process.
>
> JMG
>
>
>
>
> ----- Original Message -----
> From: "James Childers" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Wednesday, July 02, 2003 12:40 PM
> Subject: RE: Are .jsp files required : more precise needs
>
>
> This won't work. You can precompile the JSPs and distribute the .class
> files, but when the container tries to read the JSP it won't
> find it and
> will give a 404 to the user. Try it.
>
> Basically the only way to do what Arnaud wants is to go with
> a pure servlet
> solution: for every "JSP", create a servlet and the
> corresponding mapping in
> web.xml.
>
> Arnaud: If there is a problem with trusting your system
> administrator, you
> may consider finding a solution that doesn't involve technology, i.e.:
> speaking with him or his manager. This is a normal part of
> business: admins
> handle administration, developers handle development,
> designers design, etc.
>
> -= J
>
> > -----Original Message-----
> > From: Jamie M. Guillemette
> > [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, July 02, 2003 11:27 AM
> > To: Struts Users Mailing List
> > Subject: Re: Are .jsp files required : more precise needs
> >
> >
> > Dont know if you saw my previous post but your answer is to
> > distribute only
> > class files. Hence you need to precompile the jsps. By doing
> > this they will
> > automatically become servlets. ( this does not change how you
> > build your
> > app ) This way you client cant alter the code even if they
> wanted to.
> >
> > ----- Original Message -----
> > From: "BOULAY Arnaud" <[EMAIL PROTECTED]>
> > To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > Sent: Wednesday, July 02, 2003 12:12 PM
> > Subject: Re: Are .jsp files required : more precise needs
> >
> >
> > > Thanks for your previous answers !
> > > but I must be more precise :
> > >
> > > My "customer" is not a web navigator user but a corporate system
> > administrator in a factory across the world that must deploy
> > a webapp that
> > my development team gives to him.
> > >
> > > I'll give him a archive file (without .jsp files) and he
> > will deploy it on
> > a production server where there is only a JRE and a minimum
> > Tomcat conf.
> > >
> > > The webapp MUST NOT be change by anyone but my team.
> > >
> > > Thanks,
> > > Arnaud
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to