Hi Randy,
Unfortunately I am not using a tool, but is it a manual effort. I add the
statements
for the EJB application to the web.xml file. It is not a lot of work as I only
have
to add 6 or 7 alias entries.
These alias entries are defined in the jsp's FORM tags. You could automate it
by letting the user define the alias tags in a file and then indeed merge the
files with the generated web.xml file.
Sophie
Randy Layman schreef:
> I was wondering what tool you are using to merge the generated
> web.xml file with your own? We might consider pre-building everything if we
> could get an automatic build in place that would merge these files.
>
> Randy
>
> > -----Original Message-----
> > From: Sophie [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, June 12, 2001 7:08 AM
> > To: [EMAIL PROTECTED]
> > Subject: Re: jspc and deployment
> >
> >
> > Hi Oskar,
> >
> > I am using the options:
> > -uriroot /$TOMCAT_HOME/webapps/AppName
> > -d /$TOMCAT_HOME/webapps/AppName/WEB-INF/classes
> > to set the directory where the results of
> > jspc should be placed
> > -webxml /OWN_DIR/webAppName.xml
> > -webapp /$TOMCAT_HOME/webapps/AppName
> > to specify the directory that contains the jsp's
> >
> > I remove the jsp's after running jspc from
> > /$TOMCAT_HOME/webapps/AppName.
> >
> > After running jspc, you should run javac to compile the
> > generated java-files to
> > class files.
> >
> > I update my own web.xml with the results of /$OWN_DIR/webAppName.xml,
> > and then everything runs fine.
> >
> > Hope this help,
> >
> > Sophie
> >
> > Oskar Zinger schreef:
> >
> > > What option did you use with jspc? I am encountering the
> > same problem.
> > > Thanks
> > > Oskar
> > >
> > > FRED wrote:
> > >
> > > > Hi Randy,
> > > >
> > > > Thank you for your reaction. I got it working. This will
> > save me a lot
> > > > of time and will make my application more scalable.
> > > >
> > > > Sophie
> > > >
> > > > Randy Layman schreef:
> > > >
> > > > > The answer is you can't. Even if you could get
> > it to generate the
> > > > > file names correctly, Tomcat still wouldn't use them.
> > What you need to do
> > > > > is to use jspc with the option that produces a web.xml
> > file. You then need
> > > > > to incorporate that with your web.xml file, compile the
> > .java files, and you
> > > > > will have a webapp made up of exclusively servlets (and
> > static content) - no
> > > > > more JSP to compile.
> > > > >
> > > > > Randy
> > > > >
> > > > > > -----Original Message-----
> > > > > > From: Joost en Sooophie [mailto:[EMAIL PROTECTED]]
> > > > > > Sent: Saturday, June 09, 2001 1:59 PM
> > > > > > To: [EMAIL PROTECTED]
> > > > > > Subject: jspc and deployment
> > > > > >
> > > > > >
> > > > > > Hi,
> > > > > >
> > > > > > My problem is the following:
> > > > > >
> > > > > > I am working on an EJB application. I want to
> > pre-compile all the
> > > > > > jsp-pages before making the application available on
> > the internet
> > > > > > (and someone clicking on the page, experiencing quite
> > some delay).
> > > > > >
> > > > > > When the jsp MyJSP.jsp is compiled with jspc in Tomcat, files
> > > > > > MyJSP.java
> > > > > > and MyJSP.class are placed in the /TOMCAT_HOME/work
> > directory. But
> > > > > > when I start the application on the internet, it
> > creates the files
> > > > > > xxxMy_yyyJSP.java
> > > > > > and xxxMy_yyyJSP.class in the /TOMCAT_HOME/work directory.
> > > > > >
> > > > > > How can I configure jspc, so that it creates the files
> > > > > > xxxMy_yyyJSP.java and
> > > > > > xxxMy_yyyJSP.class in the /TOMCAT_HOME/work directory?
> > > > > >
> > > > > > Any answer or information or documentation is much
> > appreciated.
> > > > > >
> > > > > > Sophie
> > > > > >
> > > > > >
> >