Re: WAS 6.1: There is no Action mapped for namespace / and action name j_security_check

2009-06-02 Thread Ron Chan
Steven Not familiar with your setup and if it works in tomcat and not WAS, even stranger. But for what it's worth here is my hack, I made a copy of StrutsPrepareAndExecuteFilter and in the doFilter where it said ActionMapping mapping = prepare.findActionMapping(request, response); if (mapping =

RE: 2.1.6 convention plugin problem

2009-06-02 Thread Ron Chan
is this a misconfig or a workaround? in 2.0.x the default behaviour for "/" is to go to the welcome file list there is no mention of a change in behaviour in any of these http://struts.apache.org/2.1.6/docs/version-notes-216.html http://struts.apache.org/2.1.6/docs/action-configuration.html http

Re: 2.1.6 convention plugin problem

2009-06-01 Thread Ron Chan
that kind of worked, I had to make some tweaks in struts.xml then in my HomeAction.java @ParentPackage("root") @Results({ @Result(name="SUCCESS", location="home.ftl") }) this is even better than an index.jsp that redirects Thanks Ron -- View this message in context: http://www.nabbl

RE: 2.1.6 convention plugin problem

2009-06-01 Thread Ron Chan
just to clarify this works http://myserver/myapp/whatever.action and to maps to WhateverAction.java and whatever.ftl so application is basically working but http://myserver/myapp/ does not work gives 404 with There is no Action mapped for namespace / and action name . the action name being e

RE: 2.1.6 convention plugin problem

2009-06-01 Thread Ron Chan
Martin Sorry, I have looked in those docs but can't see anything about this. I have got all the convention stuff up and running, that is not the problem, it is just when you are at the root url where you need it to go to the index.html or index.jsp to do a redirect to your start action is where

2.1.6 convention plugin problem

2009-06-01 Thread Ron Chan
in StrutsPrepareAndExecuteFilter in 2.1 doFilter contains ActionMapping mapping = prepare.findActionMapping(request, response); if (mapping == null) { boolean handled = execute.executeStaticResourceRequest(request, response); however, when using with convention plugin

REST plugin possible bug

2009-01-16 Thread Ron Chan
I have a simple Blah action to test the REST plugin /myapp/blah goes to index() in Blah as expected /myapp/blah/1 goes to show() and sets id to 1 as expected however setId() is run twice, I have a log.info("setting id"+id) there when I do /myapp/blah!show?id=1 setId() is only run once --

REST plugin question

2009-01-16 Thread Ron Chan
Does it allow for extended parameters? http://site/app/customers/69/product/123 or http://site/app/discussions/2009/01/12/some-topic -- View this message in context: http://www.nabble.com/REST-plugin-question-tp21496295p21496295.html Sent from the Struts - User mailing list archive at Nab

Re: Struts2 startup service/action

2008-10-10 Thread Ron Chan
I've not used Spring for a while so I can't answer your question directly. But all I'm trying to do is get access to something that would have been correctly initialized had I been under struts. i.e. my QuartzService example was already working under struts, I just wanted to make the scheduler

Re: Struts2 startup service/action

2008-09-30 Thread Ron Chan
0, 2008 at 2:16 AM, Ron Chan <[EMAIL PROTECTED]> wrote: > >> >> There's been a number of messages about this, and I've tried a number of >> different suggestions. After going round in circles for a few days, I >> eventually ended up with just a few line

Struts2 startup service/action

2008-09-30 Thread Ron Chan
There's been a number of messages about this, and I've tried a number of different suggestions. After going round in circles for a few days, I eventually ended up with just a few lines of code that seems to work. I basically extended the FilterDispatcher, added to the init() method and used the

Re: Tutorials about "struts2 + ibatis + SQLmap"

2007-10-11 Thread Ron Chan
try the struts2-ibatis version of appfuse light appfuse-light-struts2-ibatis-1.8.zip from https://appfuse-light.dev.java.net/ Emi Lu-2 wrote: > > Greetings, > > Would someone know some good tutorials about "struts 2.0.9 + ibatis2.3.0 > + SQLmap" > > . setup > . examples > > Thanks a lot

little s2 live app :)

2007-05-30 Thread Ron Chan
http://www.nicolatsboutique.com/shop/home/ took 3000 orders in the first week, peaking at 830 for one day and 85 in one hour on peak day, 10Gb outgoing traffic, 5000 visits, 53500 page views and never went down :) S2 bits used :- guice plugin RestfulActionMapper codebehind and zeroconfig annota

Re: datetimepicker not working in freemarker

2007-05-03 Thread Ron Chan
on the same page I have s.form s.hidden s.textfield s.submit and they all work fine Ron Chan wrote: > > getter error message > > s.datetimepicker not found > > > Musachy Barroso wrote: >> >> not working as in "I'm getting an error&quo

Re: datetimepicker not working in freemarker

2007-05-03 Thread Ron Chan
getter error message s.datetimepicker not found Musachy Barroso wrote: > > not working as in "I'm getting an error", or not working as in "nothing is > shown"? > > musachy > > On 5/3/07, Ron Chan <[EMAIL PROTECTED]> wrote: >> >>

datetimepicker not working in freemarker

2007-05-03 Thread Ron Chan
the datetimepicker does not work in freemarker in the using <@s. tag syntax the same page works fine in jsp anyone else experienced this? -- View this message in context: http://www.nabble.com/datetimepicker-not-working-in-freemarker-tf3688908.html#a10313044 Sent from the Struts - User mailing

[s2] sitemesh jsessionid

2007-04-02 Thread Ron Chan
When using sitemesh a session seems to be always created even when my application does not need it. Does anyone know how to get rid of the jsessionid that is generated, it is always picked up by the search engine robots. thanks -- View this message in context: http://www.nabble.com/-s2--sitem

[S2] guice plugin - ROCKS!

2007-03-12 Thread Ron Chan
Guice is used as the internal IOC within struts2 but that is recommended for use in applications But there is now a plugin which will use an external version of guice to do your depency injection http://docs.google.com/Doc?id=dd2fhx4z_5df5hw8 I just converted a mini app over the weekend from usi

[S2] Using Guice

2007-03-08 Thread Ron Chan
Guice is used as xwork's internal dependency injection container. If possible, how do I use Guice for DI in an application? Thanks Ron -- View this message in context: http://www.nabble.com/-S2--Using-Guice-tf3371417.html#a9381479 Sent from the Struts - User mailing list archive at Nabble.com

Re: [S2] [s2] autocompleter

2007-02-22 Thread Ron Chan
there“re several examples about that. > > Herrera > > > > Ron Chan wrote: >> >> where can I set the font of the dropdown list for the autocompleter? >> >> thanks >> Ron >> >> > > -- View this message in context: http://www

[s2] autocompleter

2007-02-22 Thread Ron Chan
where can I set the font of the dropdown list for the autocompleter? thanks Ron -- View this message in context: http://www.nabble.com/-s2--autocompleter-tf3271959.html#a9097345 Sent from the Struts - User mailing list archive at Nabble.com. --

[s2] codebehind/zero configuration and redirect

2007-02-02 Thread Ron Chan
i've put together a simple app to test the combination of codebehind/zero configuration and it seems to work quite well is there a way to use the redirect result without having to revert to putting in something in struts.xml? thanks Ron -- View this message in context: http://www.nabble.com/-

Re: [S2] User authentication best practice (2nd time...)

2007-01-31 Thread Ron Chan
http://www.acegisecurity.org/ is a popular os generic security layer http://appfuse.org/ is a "kickstart" app that has acegi, mvc, orm layer all pre-configured with a simple user management system; S2 is one of its many mvc options even if you don't use appfuse it is a good source to pick up ide

Re: s2 velocity error

2007-01-24 Thread Ron Chan
my bad... this is solved by adding velocity-tools-view Ron Chan wrote: > > i'm unable to use velocity result, tried in 2.0.3-snapshot and > 2.0.4-snapshot > > No mapping found for dependency > [type=org.apache.struts2.views.velocity.VelocityManager, name=

s2 velocity error

2007-01-24 Thread Ron Chan
i'm unable to use velocity result, tried in 2.0.3-snapshot and 2.0.4-snapshot No mapping found for dependency [type=org.apache.struts2.views.velocity.VelocityManager, name='default'] in public void org.apache.struts2.dispatcher.VelocityResult.setVelocityManager(org.apache.struts2.views.velocity.V

S2 v Stripes

2006-12-18 Thread Ron Chan
here's an interesting post about S2 http://www.oreillynet.com/onjava/blog/2006/12/struts_2_is_the_new_mini.html however it is being shot down in the comments by how much better Stripes is :( what say you to the statement "Try stripes out for a couple of days, and then you'll be asking 'What does

Struts2 : Codebehind and Zero Configuration

2006-12-11 Thread Ron Chan
I've been trying to get Codebehind http://struts.apache.org/2.x/docs/codebehind-plugin.html and Zero Configuration http://struts.apache.org/2.x/docs/zero-configuration.html to work found that I had to make a couple of changes if (resultsByExtension == null) { resultsByExtension = loadResultT