Re: [Actionframework-users] configuration questions
Status: Inactive
Brought to you by:
ptoman
From: Craig L. <cr...@be...> - 2002-08-07 16:23:25
|
On Fri, 2002-08-02 at 13:02, Petr Toman wrote: > Grrr, it seems my previous mails have disappeared... :( Sorry for delay. np. thanks for answering, sorry for the delay in getting back myself, i had almost given up on the list. > > I want to use ActionServlet to handle ALL the webpages on a specific > > vhost, much like one would do with php or jsp. One problem I'm > > having is with the 'is-new-session' attribute of the template tag. > > When I put that attribute in, it seems like the marked template is > > ALWAYS displayed, regardless of what the actual template name I typed > > in was. However, excluding that attribute results in a > > NullPointerException being thrown. I'm going through the code now to > > try and figure out why this might be happening, but I thought I'd > > also ask. >=20 > is-new-session attr is flag for the template to be shown upon a new > session. I don't understand which template is always displayed for you - > the one with 'is-new-session'? As for the exception, could you post a > full stacktrace please? the correct template is being shown, but what i was looking for was more of a general purpose template library. i had hoped to be able to simply request a template (from the browser), have actionservlet apply its rules, find nothing special, then display the template i had requested.=20 but it seems that the only template offered (when no form.action rules are satisfied at least) is the is-new-session one, regardless of what the URL requests. i have managed to figure out what i need to do by over-riding ActionServlet and implementing a couple methods, most of the work is being done in handle() and newSession(). i can try and repro the exception, but the problem is really related to what the documentation makes clear; i had no is-new-session and the isNewSession() method was not over-ridden. it was happening in the reqeust.setContentType() method, because the default ActionReturnData didn't specify a contenttype to use. > Btw, what's the problem with Tomcat? You should be able to create > examples/as_examples.war (by running 'ant war') and deploy it into > Tomcat's webapps directory. tomcat is just such a configuration nightmare compared to jserv. i still haven't had the courage to figure out how to make tomcat run for a separate virtual server. i just get frustrated when 'latest and greatest' so frequently seems to translate into 'insanely complicated configuration you now HAVE to deal with'. i still get tomcat errors with the url alias doesn't match the webapps directory name. it just seems like someone decided how they liked to organize their web stuff and its just been forced into the structure for tomcat. anyway, i'm making headway; i can develop at least and if i decided to move back to jserv when it comes time to 'release' what i'm working on, so be it. > I run my AS-based app in Apache/JServ 1.1.2 with no problems good news, thanks. --=20 CraigL->Thx(); Be Developer ID: 5852 |