From: Mitchell K. <ki...@at...> - 2002-09-16 23:12:36
|
What I wanted to say was that (due to JspC is kind of mess to use) if I can make the JSPs compiled at server loading time, then I don't have to mess with build scripts and etc... In other words, less maintenance... That was all. But I 100% agree with your point as well. Mitchell ----- Original Message ----- From: "Jules Gosnell" <ju...@mo...> To: <jbo...@li...> Sent: Monday, September 16, 2002 3:20 PM Subject: Re: [JBoss-user] Pre-loading JSPs > Kim, Yong wrote: > > I see your point... but there is a benefit of doing that as well... I guess > > that's why WebLogic supports it... > > What are the benefits ? apart from the fact that, because JspC is a > mess, it's simpler ? Someone should just fix JspC. > > One further point in favour of pre-compilation (during development > cycle) - since your JSPs compile to servlets you can optimise Jasper > completely out of the equation - i.e. the web-container dispatches > directly to your servlet and does not go through Jasper on the way. This > must be a good thing. > > Jules > > > > Yes, I am pre-compiling the JSPs at the development time... however, there > > seems like there is no standard way of doing than using jasper.JspC ... > > It's just pain to use that... > > > > Mitchell > > > > -----Original Message----- > > From: Jules Gosnell [mailto:ju...@mo...] > > Sent: Monday, September 16, 2002 2:35 PM > > To: jbo...@li... > > Subject: Re: [JBoss-user] Pre-loading JSPs > > > > > > Interesting - I haven't seen this done before. > > > > I still think it is a bad idea - if you want to precompile - it should > > be done during the development phase. > > > > > > Jules > > > > > > Subramanian Ananthram wrote: > > > >>No it does not make that assumption, but forces the JSP page to compile at > >>startup. The jsp pages are converted to a servlet and then compiled. > >>I hope this clears your doubt. > >>Subu > >> > >> > >>>-----Original Message----- > >>>From: Kim, Yong [SMTP:Yong.Kim@Staples.com] > >>>Sent: Monday, September 16, 2002 11:47 AM > >>>To: 'jbo...@li...' > >>>Subject: RE: [JBoss-user] Pre-loading JSPs > >>> > >>>I may be wrong... but, I don't think it would be that simple. Correct me > >>>if > >>>I am wrong but the way presented is sort of backwards... isn't it? Isn't > >>>it > >>>basically saying that you need to hit the servlet (Header) to get to the > >>>JSP > >>>(header.jsp) page? What I wanted was hit the JSP as usual and the JSP has > >>>already been loaded... You know what I mean? In other words, your way > >>>assumes that the compiled JSP (servlet) already exist... right? > >>> > >>>Am I missing something here? > >>> > >>>Thanks, > >>>Mitchell > >>> > >>>-----Original Message----- > >>>From: Subramanian Ananthram [mailto:Sub...@am...] > >>>Sent: Monday, September 16, 2002 11:23 AM > >>>To: 'jbo...@li...' > >>>Subject: RE: [JBoss-user] Pre-loading JSPs > >>> > >>> > >>>You can do this by configuring the web.xml file. You will need to specify > >>>the jsp file name and the startup order. > >>> > >>> <servlet> > >>> <servlet-name>Header</servlet-name> > >>> <jsp-file>header.jsp</jsp-file> > >>> <load-on-startup>1</load-on-startup> > >>> </servlet> > >>> > >>>Regards, > >>>Subu > >>> > >>> > >>> > >>> > >>>>-----Original Message----- > >>>>From: Kim, Yong [SMTP:Yong.Kim@Staples.com] > >>>>Sent: Monday, September 16, 2002 9:47 AM > >>>>To: 'jbo...@li...' > >>>>Subject: [JBoss-user] Pre-loading JSPs > >>>> > >>>>Hi, > >>>>Is there any best way to accomplish this? I tried to use Jasper to do > >>>>this... but I don't like the solution. I would prefer something like > >>> > >>>all > >>> > >>> > >>>>the JSPs gets compiled when JBoss starts... Is there any way I can do > >>>>this? > >>>> > >>>>Thanks, > >>>>Mitchell > >>>> > >>>> > >>>>------------------------------------------------------- > >>>>This sf.net email is sponsored by:ThinkGeek > >>>>Welcome to geek heaven. > >>>>http://thinkgeek.com/sf > >>>>_______________________________________________ > >>>>JBoss-user mailing list > >>>>JBo...@li... > >>>>https://lists.sourceforge.net/lists/listinfo/jboss-user > >>> > >>> > >>>------------------------------------------------------- > >>>This sf.net email is sponsored by:ThinkGeek > >>>Welcome to geek heaven. > >>>http://thinkgeek.com/sf > >>>_______________________________________________ > >>>JBoss-user mailing list > >>>JBo...@li... > >>>https://lists.sourceforge.net/lists/listinfo/jboss-user > >>> > >>> > >>>------------------------------------------------------- > >>>This sf.net email is sponsored by:ThinkGeek > >>>Welcome to geek heaven. > >>>http://thinkgeek.com/sf > >>>_______________________________________________ > >>>JBoss-user mailing list > >>>JBo...@li... > >>>https://lists.sourceforge.net/lists/listinfo/jboss-user > >> > >> > >> > >>------------------------------------------------------- > >>This sf.net email is sponsored by:ThinkGeek > >>Welcome to geek heaven. > >>http://thinkgeek.com/sf > >>_______________________________________________ > >>JBoss-user mailing list > >>JBo...@li... > >>https://lists.sourceforge.net/lists/listinfo/jboss-user > > > > > > > > > > > > > > ------------------------------------------------------- > > This sf.net email is sponsored by:ThinkGeek > > Welcome to geek heaven. > > http://thinkgeek.com/sf > > _______________________________________________ > > JBoss-user mailing list > > JBo...@li... > > https://lists.sourceforge.net/lists/listinfo/jboss-user > > > > > > ------------------------------------------------------- > > This sf.net email is sponsored by:ThinkGeek > > Welcome to geek heaven. > > http://thinkgeek.com/sf > > _______________________________________________ > > JBoss-user mailing list > > JBo...@li... > > https://lists.sourceforge.net/lists/listinfo/jboss-user > > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > JBoss-user mailing list > JBo...@li... > https://lists.sourceforge.net/lists/listinfo/jboss-user |