Hi,
I am new to this struts family. Can anyone tell me as how I should post my queries to this group. Thanks in advance. Gnrk --- "Craig R. McClanahan" <[EMAIL PROTECTED]> wrote: > > > On Mon, 1 Jul 2002, Martin Cooper wrote: > > > Date: Mon, 1 Jul 2002 16:51:38 -0700 > > From: Martin Cooper <[EMAIL PROTECTED]> > > Reply-To: Struts Developers List > <[EMAIL PROTECTED]> > > To: 'Struts Developers List' > <[EMAIL PROTECTED]>, > > "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]> > > Subject: RE: Path-mapped action and Struts 1.1 > beta > > > > > > > > > -----Original Message----- > > > From: Ted Husted [mailto:[EMAIL PROTECTED]] > > > Sent: Monday, July 01, 2002 3:46 PM > > > To: Struts Developers List > > > Subject: Re: Path-mapped action and Struts 1.1 > beta > > > > > > > > > "Craig R. McClanahan" wrote: > > > > No ... and (this time at least) not because of > lack of > > > time. It is not at > > > > all obvious how to rig path mapping to the > controller to > > > work together > > > > with the basic assumption of sub-applications > that there is > > > a prefix for > > > > that subapp. All I can think of is requiring > you to map > > > the controller > > > > once per subapp, which is both ugly and will > require a > > > bunch of changes to > > > > the existing code that assumes there is only > one mapping to > > > the controller > > > > servlet. > > > > > > > > Ideas, anyone? > > > > > > Underlying problem with modules and prefix > mapping: > > > > > > Controller is inserting module name before > "module-relative" > > > path. This > > > happens for all URIs, not just actions. So with > > > prefix-mapping, we'd not > > > only have /do/module1/action but > /do/module/page.jsp. > > > > > > Killer kludge of the week: > > > > > > Use unknown action feature to trim servlet > prefix from page requests. > > > When controller can't find the "page.jsp" > action, it forward to a > > > standard unknown action that removes the > servlet-mapping > > > prefix ("/do"), > > > and forwards again, this time to > /module/page.jsp. > > > > Well, this suggests an interesting alternative to > using a prefix for the > > default sub-app, knowing that the fact that no > such sub-app is defined will > > cause the request to be sent to the default > sub-app anyway... ;-) > > > > Note that servlet containers follow exactly this > kind of rule -- if the > container cannot match your request URI against the > context path of any > known web application, it gives the request to the > default webapp (the one > with a zero-length context path). > > > -- > > Martin Cooper > > > > Craig > > > > > > > > =:0) Just kidding =:0) > > > > > > -- Ted Husted, Husted dot Com, Fairport NY US > > > -- Java Web Development with Struts > > > -- Tel: +1 585 737-3463 > > > -- Web: http://husted.com/about/services > > > > > > -- > > > To unsubscribe, e-mail: > > <mailto:[EMAIL PROTECTED]> > > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> > > > > > > > > -- > > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> > > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> > > > > > > > -- > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> > __________________________________________________ Do You Yahoo!? Sign up for SBC Yahoo! Dial - First Month Free http://sbc.yahoo.com -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>