Java Mailing List Archive

http://www.gg3721.com/

Home » Struts Users Mailing List »

user Digest 2 Apr 2008 16:04:53 -0000 Issue 7956

user-digest-help

2008-04-02


Author LoginPost Reply

user Digest 2 Apr 2008 16:04:53 -0000 Issue 7956

Topics (messages 184901 through 184922):

Re: ajax - how to remove my form after the user clicked submit.
 184901 by: Yayo

struts.configuration custom configuration object not being loaded
 184902 by: nnd

Optiontransferselect list issue
 184903 by: ryangr
 184907 by: Jeromy Evans
 184921 by: ryangr

Re: Struts constants
 184904 by: Jeromy Evans

Re: Inheritence of validator annotations
 184905 by: Jeromy Evans

Re: New to Struts
 184906 by: pavanbh

Re: Struts2 and JavaScript localization
 184908 by: Filippov, Andrey

Help with tutorial
 184909 by: Roland Dong
 184910 by: Lukasz Lenart

struts.xml
 184911 by: Adam Hardy

Struts 2.1 TabbedPanel scenario
 184912 by: Shoaib Gauhar

Re: Strange behavior: Trying to implement saveToken() in display actions.
 184913 by: Doug Lochart
 184918 by: Martin Gainty

Eclipse with struts
 184914 by: Sam Wun
 184917 by: Dave Newton
 184919 by: Sam Wun

[S2] checkboxes in each row of table - set values in action
 184915 by: lbastil

Security @ Struts2, using Acegy or Inspector
 184916 by: Frans Thamura

Re: Use Myeclipse
 184920 by: Jose Cardoso

application folder name in webapps folder in tomcat.
 184922 by: Raghuveer

Administrivia:

---------------------------------------------------------------------
To post to the list, e-mail: user@(protected)
To unsubscribe, e-mail: user-digest-unsubscribe@(protected)
For additional commands, e-mail: user-digest-help@(protected)

----------------------------------------------------------------------

Attachment: user_184901.ezm (zipped)
in teh callback of your ajax call add
document.getElementById("divOfYourFormID").innerHTML = "new content"
your action must have forwarded you to the "new content" a text with a
message like "everything's fine!" ^g^

On Tue, Apr 1, 2008 at 11:23 PM, xianwinwin <xianwinwin@(protected):

>
> Hi there,
>
> I created an ajax capability to my form where the user clicks the 'add
> note'
> button -a textarea is shown with a submit button (the textarea is shown
> just
> below the [add note] button) the form works great.
>
> I wonder:
>
> 1. When the user clicks submit and the process is over - how can I
> 'pushback' the form (or to remove the text area from the page)?
>
> 2. say the user doesn't want to add any note, how can I, with the same
> button [add note], remove the textarea from the screen.
>
> THANK YOU!!!
>
> --
> View this message in context:
> http://www.nabble.com/ajax---how-to-remove-my-form-after-the-user-clicked-submit.-tp16425710p16425710.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>


--
"Sit tibi terra levis"

http://yayocaturas.blogspot.com/

Attachment: user_184902.ezm (zipped)

We have created a custom struts config class which extends
org.apache.struts2.config.DefaultSettings, but struts cannot load it. We are
trying to load it by setting the struts.configuration to our custom class
name in WEB-INF/classes/struts.properties. This is what we see in our logs:

ERROR [main] Settings - Settings: Could not instantiate the
struts.configuration object, substituting the default implementation.
java.lang.NullPointerException
 at org.apache.struts2.config.Settings.getDefaultInstance (Settings.java:298)
 at org.apache.struts2.config.Settings.getInstance (Settings.java:109)
 at
org.apache.struts2.config.LegacyPropertiesConfigurationProvider.register (LegacyPropertiesConfigurationProvider.java:67)
 at
com.opensymphony.xwork2.config.impl.DefaultConfiguration.reload (DefaultConfiguration.java:131)
 at
com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration (ConfigurationManager.java:52)
 at
org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration (Dispatcher.java:395)
 at org.apache.struts2.dispatcher.Dispatcher.init (Dispatcher.java:452)
 at
org.apache.struts2.dispatcher.FilterDispatcher.init (FilterDispatcher.java:201)
 at
org.apache.catalina.core.ApplicationFilterConfig.getFilter (ApplicationFilterConfig.java:221)

We have stepped through the Settings class and it seems that the
ObjectFactory.getObjectFactory() call is returning null for some reason. Any
ideas on what is going on here? We are using the struts-spring plugin as
well if that helps any.

Thanks
--
Sent from the Struts - User mailing list archive at Nabble.com.


Attachment: user_184903.ezm (zipped)

I have the following for code in my JSP:

<s:optiontransferselect
             name="user.groups"
             list="user.groups"
             listKey="id"
             listValue="title"
             multiple="true"
             doubleList="groups"
             doubleName="groups"
             doubleListKey="id"
             doubleMultiple="true"
             doubleListValue="title"
             allowSelectAll="false"
             allowUpDownOnLeft="false"
             allowUpDownOnRight="false"
             />

In my action I have a "groups" variable that is an extended ArrayList and a
user variable that contains an extended ArrayList also named "groups". Both
"groups" variables are of the same type GroupList that is my own custom
type, although it's really just a simple extension of ArrayList.

With that being said...I can populate the list "groups" just fine, but when
I try to use "user.groups" to get the other list it throws an exception that
says: "The requested list key 'user.groups' could not be resolved as a
collection/array/map/enumeration/iterator type." What am I doing wrong? It's
probably pretty obvious, but this hasn't exactly been a good week for
concentration so far. ;)
--
Sent from the Struts - User mailing list archive at Nabble.com.


Attachment: user_184907.ezm (zipped)
ryangr wrote:

> With that being said...I can populate the list "groups" just fine, but when
> I try to use "user.groups" to get the other list it throws an exception that
> says: "The requested list key 'user.groups' could not be resolved as a
> collection/array/map/enumeration/iterator type." What am I doing wrong? It's
> probably pretty obvious, but this hasn't exactly been a good week for
> concentration so far. ;)
>  

Are you just missing the getter for user? Struts2 has to call
getUser().getGroups().


> I have the following for code in my JSP:
>
> <s:optiontransferselect
>              name="user.groups"
>              list="user.groups"

I never have these two attributes pointing to the same property. It may
work, but it's the first place I'd look for type conversion problems.
My list attribute always points to a List with key and value entries for
the select and the name attribute always points to a String[] that will
contain the selected key values.





Attachment: user_184921.ezm (zipped)

> Are you just missing the getter for user? Struts2 has to call
> getUser().getGroups().

The action has getters and setters for both user and groups, and the user
object has a getter/setter for its groups attribute.

> I never have these two attributes pointing to the same property. It may
> work, but it's the first place I'd look for type conversion problems.
> My list attribute always points to a List with key and value entries for
> the select and the name attribute always points to a String[] that will
> contain the selected key values.

Thanks for the pointer on that, I was wondering what the difference between
them was; however, I don't think that is quite the issue in this case (yet).

Taking your advice on having a String[] for the name attribute, I can do an
<s:updownselect list="groups" name="groupKeys" /> and that collection
displays its data, but when I have <s:updownselect list="user.groups"
name="groupKeys" /> the JSP throws the same exception as the
<s:optiontransferselect> snippet that is causing headaches.

Apr 2, 2008 10:33:18 AM org.apache.catalina.core.ApplicationDispatcher
invoke
SEVERE: Servlet.service() for servlet jsp threw exception
tag 'updownselect', field 'list': The requested list key 'user.groups' could
not be resolved as a collection/array/map/enumeration/iterator type.
Example: people or people.{name} - [unknown location]

It is baffling me at this point because they are the same data type, and
getters/setters exist for all the related objects... *scratches head*

-Ryan


Jeromy Evans - Blue Sky Minds wrote:
>
> ryangr wrote:
>
>> With that being said...I can populate the list "groups" just fine, but
>> when
>> I try to use "user.groups" to get the other list it throws an exception
>> that
>> says: "The requested list key 'user.groups' could not be resolved as a
>> collection/array/map/enumeration/iterator type." What am I doing wrong?
>> It's
>> probably pretty obvious, but this hasn't exactly been a good week for
>> concentration so far. ;)
>>  
>
> Are you just missing the getter for user? Struts2 has to call
> getUser().getGroups().
>
>
>> I have the following for code in my JSP:
>>
>> <s:optiontransferselect
>>              name="user.groups"
>>              list="user.groups"
>
> I never have these two attributes pointing to the same property. It may
> work, but it's the first place I'd look for type conversion problems.
> My list attribute always points to a List with key and value entries for
> the select and the name attribute always points to a String[] that will
> contain the selected key values.
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
>

--
Sent from the Struts - User mailing list archive at Nabble.com.


Attachment: user_184904.ezm (zipped)
Matthew Seaborn wrote:
> What I meant was if the following is defined in the struts.xml
>
>         <constant name="struts.url.includeParams" value="none" />
>
> How does that make it to the URLTag#setIncludeParams method and how can make our own constants?
>
>  

Didn't I answer that? Repeated below again.

---
If you want the value of a constant, use @Inject on a setter. This is
available only to objects instantiated by the Struts2 Container (actions
or beans in the config)

Example:

import com.opensymphony.xwork2.inject.Inject;

@Inject("struts.url.includeParams")
public void setIncludeParams(String value) {}

You can create new constants as struts.xml.
---
To access them elsewhere you'll have to get a reference to the
com.opensymphony.xwork2.inject.Container instance which may be available
from your DI framework (Guice/Spring). I'm not sure how much luck you'll
have with that.

Attachment: user_184905.ezm (zipped)
Allen, Daniel wrote:
> Hi, all.
>
> I have a superclass where almost all of the subclasses will require
> several validations for a particular field, but one subclass will use
> some but not all of those validations. I know that you can add
> @SkipValidation to avoid all validators, but is there something that you
> can use to mark a set() method as not using any of the validators on
> overridden superclass methods?
>
>
> Thanks,
> ~Dan Allen
>
>  

I don't think such an annotation exists. It sounds like a useful
enhancement.

Do you know whether the algorithm gives precedence to the first
encountered occurrence (subclass), the last encountered (superclass) or
merges all occurrences? I suspect it is the last case but don't recall
exactly. If that's the case it's not a trivial fix.


Attachment: user_184906.ezm (zipped)

Thanks.
I will look at the framework and try some examples.
If any doubt i will ask for help.plz help me

Nils-Helge Garli wrote:
>
> There is no shortcut to learning a new framework. I suggest buying a
> couple of books and taking your time reading the documentation and
> trying out the examples that are available. Search engines is also a
> good way to find relevant information. Anything you need to get
> started, both for Struts 1 and Struts 2, should be available at
> http://struts.apache.org/
>
> Nils-H
>
> On Tue, Apr 1, 2008 at 11:59 AM, pavanbh <pavanbh2006@(protected):
>>
>> Hi All,
>>
>> I am new to struts and wana to learn it.Any help or suggestion in this
>> regard is much appriciated.
>> please help me
>>
>>
>>
>>
>> Thanks,
>> Pavan
>>
>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/New-to-Struts-tp14313460p16417500.html
>>
>> Sent from the Struts - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>>
>>
>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>> For additional commands, e-mail: user-help@(protected)
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
>

--
Sent from the Struts - User mailing list archive at Nabble.com.


Attachment: user_184908.ezm (zipped)
Thanx a lot! It works..

-----Original Message-----
From: Chris Pratt [mailto:thechrispratt@(protected)]
Sent: Tuesday, April 01, 2008 8:04 PM
To: Struts Users Mailing List
Subject: Re: Struts2 and JavaScript localization

You'd have to put that expression in a tag that can process it. Try
something like:

wds : new Array('<s:property
value="%{getText('bscal_day1')}"/>',"tue","wen","thu","fri","sat","sun")
,

(*Chris*)


On Tue, Apr 1, 2008 at 6:40 AM, Filippov, Andrey
<andrey.filippov@(protected):
> Hello everybody,
>
>
>
>
>
> I have a javascript dropdown calendar on one of my struts2 jsp. I
have
> bi-lingual application. So I need to read bundle files to switch
> language. Please, does someone know how to use these files in
> javascript.
>
>
>
> Here is my js snippet:
>
>
>
> <script language="JavaScript" type="text/JavaScript">
>
> window.onload = function(){bscal.init()}
>
> var bscal = {
>
>   left : 0,
>
>   top : 0,
>
>   width: 0,
>
>   height: 0,
>
>   format: "%d.%m.%Y",
>
>
>
>   wds : new
>
Array("%{getText('bscal_day1')}","tue","wen","thu","fri","sat","sun"),
>
> ...
>
>
>
> The way like this "%{getText('bscal_day1')} (like on jsp) does not
work.
>
>
>
> I appreciate your help.
>
>
>
> Best regards, Filippov Andrey
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)



Attachment: user_184909.ezm (zipped)
Hello,

I have been following your tutorial Struts 2 + Spring 2 + JPA + AJAX
http://struts.apache.org/2.x/docs/struts-2-spring-2-jpa-ajax.html.

However, I have spent nearly 10 hours without
figuring out why I keep getting this error after I followed all the steps in
"Doing it yourself" in eclipse.


What happend is I right clicked on quickstart project in eclipse and
then --> run on server (tomcat) then this is what I see in browser:

HTTP Status 404 - /quickstart/


Then I changed "run on server" to run jboss 4.2 then got this:


05:02:46,296 INFO [DefaultListableBeanFactory] Destroying singletons
in org.springframework.beans.factory.support.DefaultListableBeanFactory@(protected):
defining beans [org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor#0,personService,entityManagerFactory,dataSource,transactionManager,org.springframework.aop.config.internalAutoProxyCreator,org.springframework.transaction.config.internalTransactionAdvisor,personAction];
root of factory hierarchy
05:02:46,328 ERROR [ContextLoader] Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'personService': Injection of persistence
methods failed; nested exception is
org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'entityManagerFactory' defined in
ServletContext resource [/WEB-INF/applicationContext.xml]: Invocation
of init method failed; nested exception is
org.hibernate.AnnotationException: java.lang.NoSuchMethodException:
org.hibernate.validator.ClassValidator.<init>(java.lang.Class,
java.util.ResourceBundle, org.hibernate.validator.MessageInterpolator,
java.util.Map, org.hibernate.annotations.common.reflection.ReflectionManager)
 at org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.postProcessPropertyValues (PersistenceAnnotationBeanPostProcessor.java:323)
 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean (AbstractAutowireCapableBeanFactory.java:966)
 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean (AbstractAutowireCapableBeanFactory.java:462)
 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:404)
 at java.security.AccessController.doPrivileged(Native Method)
 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean (AbstractAutowireCapableBeanFactory.java:375)
 at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:263)
 at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton (DefaultSingletonBeanRegistry.java:170)
 

I am bit lost feel like almost there but this last step screws me.

Can anyone shed some light on this?

Thanks

Attachment: user_184910.ezm (zipped)
Hi,

> org.hibernate.AnnotationException: java.lang.NoSuchMethodException:

As for me, such fragment says that you maybe made some miss typo with
method name, in class or in Spring xml file


Regards
--
Lukasz

http://www.linkedin.com/in/lukaszlenart

Attachment: user_184911.ezm (zipped)
Can I have a second struts.xml in my test directory, and if so, how do I
configure it?

I'm testing some stuff using HttpUnit which launches the whole webapp in my
tests. Having a test-only struts.xml will keep the test mappings out of the real
webapp, allow me to drop stuff I don't need for the tests, and make the tests
faster.


Thanks
Adam

Attachment: user_184912.ezm (zipped)

Hello,

Here is the scenrio. I have two action classes. ClassA and ClassB. There is
no relationship among these classes. You might say that if there is no
relationship then why i have to put them in one single jsp. Well its a
client's requirement.

In a single jsp there are two tabs. Tab1ForClassA and Tab2ForClassB.

Each tab has fields concerned to their classes as defined above. Tab1 ->
ClassA and Tab2 -> ClassB.

Can we do it? I have tried this but what happens is that when i submit the
data on Tab1, Tab2's data becomes empty.

So, any ideas will be highly appreciated. Furthermore, i am quite new to
tabbed panel and would require clear tips and ideas.

Thanks in advance,

Shoaib Ahmad Gauhar

--
Sent from the Struts - User mailing list archive at Nabble.com.


Attachment: user_184913.ezm (zipped)
I am just learning Struts. I think I may have forgotten some
information that you might need in order to provide any help. I am
using Struts 1.3.8, JDK 1.6, running on Tomcat 5.5.

If my problem is SO SIMPLE and hence why I have heard silence then I
am sorry but this is my first app and I so far what I have done looks
like it should work.

Does anyone have any ideas?

regards,

Doug Lochart

On Tue, Apr 1, 2008 at 2:02 PM, Doug Lochart <dlochart@(protected):
> I am trying to implement a pattern so that I can use struts tokens to
> help prevent double submission. I seem to be getting a strange
> sequence of events that I don't quite follow. Here is what I want to
> do at a high level
>
> displayCreateAccount -- forwards to --> CreateAccount.jsp (with form
> action defined as /createAccount)
> createAccount -- forwards to --> displayCreateAccountStep2 -- forwards
> to --> CreateAccountStep2.jsp
>
> The actions that start with 'display' merely set the struts token (e.g
> saveToken( request ); )
> Then it forwards it along to a jsp.
>
> The actions that start with 'Create' check to see if the token is
> valid then it processes the form submission and then
> forwards it to another display action which will then set the next
> toke for the next display of a JSP.
>
> I have checked and rechecked all of my configs but I do not see a
> mistake. I have also rebuilt the entire war
> and cleaned out EVERYTHING in Tomcat but I get the same result. When
> I hit the first displayCreateAccount action
> it properly forwards control to the jsp page that is then presented.
> When the form on the jsp page is submitted
> the displayCreateAccountStep2 action is found (see log below) in the
> mapping YET the original displayCreateAccount is executed. I have
> turned on
> debug of org.apache.struts. Here is my struts-config.xml and a
> snippet of the logs showing what is happening.
>
> I am curious as to why this is happening. I really want to understand
> what I am doing wrong or why it is working this way.
> Please let me know if I need to supply any more supporting documents.
>
> thanks
>
> Doug
>
> snippet from struts-config.xml
>
> ------------
>
>   <global-forwards>
>      <forward name="logon" path="/logon.do"/>
>      <forward name="logoff" path="/logoff.do"/>
>      <forward name="doubleSubmit" path="display.double.submit"/>
>   </global-forwards>
>
>   <action-mappings>
>
>      <action path="/displayCreateAccount"
>           type="capesafe.web.action.DisplayCreateAccountAction"
>           name="accountSetupForm"
>           scope="request"
>           cancellable="true"
>           validate="false">
>       <forward name="display1" path="display.create.account.1"/>
>      </action>
>
>      <action path="/createAccount"
>           type="capesafe.web.action.CreateAccountAction"
>           name="accountSetupForm"
>           scope="request"
>           cancellable="true"
>           input="display.create.account.1">
>       <forward name="success" path="/displayCreateAccountStep2"/>
>       <forward name="failure" path="/WEB-INF/common/FailedLogon.jsp"/>
>       <forward name="cancel" path="/WEB-INF/common/CancelLogon.jsp"/>
>      </action>
>
>      <action path="/displayCreateAccountStep2"
>           type="capesafe.web.action.DisplayCreateAccountActionStep2"
>           name="accountSetupForm"
>           scope="request"
>           cancellable="true"
>           validate="false">
>       <forward name="displayStep2" path="display.create.account.2"/>
>      </action>
>
>      <action path="/createAccountStep2"
>           type="capesafe.web.action.CreateAccountActionStep2"
>           name="accountSetupFormStep2"
>           scope="request"
>           cancellable="true"
>           input="display.create.account.2">
>       <forward name="success" path="display.create.account.3"/>
>       <forward name="failure" path="/WEB-INF/common/FailedLogon.jsp"/>
>       <forward name="cancel" path="/WEB-INF/common/CancelLogon.jsp"/>
>      </action>
>   </action-mappings>
>
> -----------------
> snippet from log
> ------------------
>
> 42274 2008-04-01 13:38:12,979 DEBUG ModuleUtils - Get module name for
> path /displayCreateAccount.do
> 42274 2008-04-01 13:38:12,979 DEBUG ModuleUtils - Module name found: default
> 42274 2008-04-01 13:38:12,979 INFO ComposableRequestProcessor -
> Initializing composable request processor for module prefix ''
> 42274 2008-04-01 13:38:12,979 DEBUG ComposableRequestProcessor -
> setActionContextClassName: no className specified
> 42296 2008-04-01 13:38:13,001 DEBUG ComposableRequestProcessor -
> Using processing chain for this request
> 42296 2008-04-01 13:38:13,001 DEBUG ActionCommandBase - Executing
> org.apache.struts.chain.commands.ExceptionCatcher
> 42296 2008-04-01 13:38:13,001 DEBUG ActionCommandBase - Executing
> org.apache.struts.chain.commands.servlet.SelectLocale
> 42296 2008-04-01 13:38:13,001 DEBUG AbstractSelectLocale - retrieve config...
> 42298 2008-04-01 13:38:13,003 DEBUG AbstractSelectLocale - set
> context locale to en_US
> 42299 2008-04-01 13:38:13,004 DEBUG ActionCommandBase - Executing
> org.apache.struts.chain.commands.servlet.SetOriginalURI
> 42299 2008-04-01 13:38:13,004 DEBUG ActionCommandBase - Executing
> org.apache.struts.chain.commands.servlet.RequestNoCache
> 42299 2008-04-01 13:38:13,004 DEBUG ActionCommandBase - Executing
> org.apache.struts.chain.commands.servlet.SetContentType
> 42299 2008-04-01 13:38:13,004 DEBUG ActionCommandBase - Executing
> org.apache.struts.chain.commands.RemoveCachedMessages
> 42300 2008-04-01 13:38:13,005 DEBUG ActionCommandBase - Executing
> org.apache.struts.chain.commands.servlet.SelectAction
> 42300 2008-04-01 13:38:13,005 DEBUG ActionCommandBase - Executing
> org.apache.struts.chain.commands.servlet.AuthorizeAction
> 42300 2008-04-01 13:38:13,005 DEBUG ActionCommandBase - Executing
> org.apache.struts.chain.commands.CreateActionForm
> 42300 2008-04-01 13:38:13,005 DEBUG CreateActionForm - Look up
> form-bean accountSetupForm
> 42303 2008-04-01 13:38:13,008 DEBUG ActionCommandBase - Executing
> org.apache.struts.chain.commands.servlet.PopulateActionForm
> 42304 2008-04-01 13:38:13,009 DEBUG ActionCommandBase - Executing
> org.apache.struts.chain.commands.servlet.ValidateActionForm
> 42304 2008-04-01 13:38:13,009 DEBUG ActionCommandBase - Executing
> org.apache.struts.chain.commands.servlet.SelectInput
> 42304 2008-04-01 13:38:13,009 DEBUG ActionCommandBase - Executing
> org.apache.struts.chain.commands.ExecuteCommand
> 42305 2008-04-01 13:38:13,010 DEBUG ActionCommandBase - Executing
> org.apache.struts.chain.commands.servlet.SelectForward
> 42305 2008-04-01 13:38:13,010 DEBUG ActionCommandBase - Executing
> org.apache.struts.chain.commands.SelectInclude
> 42305 2008-04-01 13:38:13,010 DEBUG ActionCommandBase - Executing
> org.apache.struts.chain.commands.servlet.PerformInclude
> 42305 2008-04-01 13:38:13,010 DEBUG ActionCommandBase - Executing
> org.apache.struts.chain.commands.servlet.CreateAction
> 42306 2008-04-01 13:38:13,011 INFO CreateAction - Initialize action
> of type: capesafe.web.action.DisplayCreateAccountAction
> 42309 2008-04-01 13:38:13,014 DEBUG AbstractCreateAction - setting
> action to capesafe.web.action.DisplayCreateAccountAction@(protected)
> 42309 2008-04-01 13:38:13,014 DEBUG ActionCommandBase - Executing
> org.apache.struts.chain.commands.servlet.ExecuteAction
> 42309 2008-04-01 13:38:13,014 DEBUG ActionCommandBase - Executing
> org.apache.struts.chain.commands.ExecuteForwardCommand
> 42310 2008-04-01 13:38:13,015 DEBUG I18nFactorySet - Can't open file
> '/WEB-INF/tiles-defs_en_US.xml'
> 42314 2008-04-01 13:38:13,019 DEBUG I18nFactorySet - Can't open file
> '/WEB-INF/tiles-defs_en.xml'
> 42316 2008-04-01 13:38:13,021 INFO TilesPreProcessor - Tiles process
> complete; forward to /WEB-INF/tiles/layout.jsp
> 42359 2008-04-01 13:38:13,064 DEBUG InsertTag - insert
> page='/WEB-INF/tiles/header.jsp'.
> 42518 2008-04-01 13:38:13,223 DEBUG InsertTag - insert
> page='/WEB-INF/tiles/menu.jsp'.
> 42540 2008-04-01 13:38:13,245 DEBUG InsertTag - insert
> page='/WEB-INF/common/CreateAccount.jsp'.
> 42748 2008-04-01 13:38:13,453 DEBUG InsertTag - insert
> page='/WEB-INF/tiles/footer.jsp'.
> 42902 2008-04-01 13:38:13,607 DEBUG TilesPreProcessor - Tiles
> processed, so clearing forward config from context.
> 42902 2008-04-01 13:38:13,607 DEBUG ActionCommandBase - Executing
> org.apache.struts.chain.commands.servlet.PerformForward
>
> < -- what follows is after I submit the form, this is where it gets odd -->
>
> 60247 2008-04-01 13:38:30,952 DEBUG ModuleUtils - Get module name for
> path /createAccount.do
> 60247 2008-04-01 13:38:30,952 DEBUG ModuleUtils - Module name found: default
> 60247 2008-04-01 13:38:30,952 DEBUG ComposableRequestProcessor -
> Using processing chain for this request
> 60247 2008-04-01 13:38:30,952 DEBUG ActionCommandBase - Executing
> org.apache.struts.chain.commands.ExceptionCatcher
> 60247 2008-04-01 13:38:30,952 DEBUG ActionCommandBase - Executing
> org.apache.struts.chain.commands.servlet.SelectLocale
> 60247 2008-04-01 13:38:30,952 DEBUG AbstractSelectLocale - retrieve config...
> 60248 2008-04-01 13:38:30,953 DEBUG AbstractSelectLocale - set
> context locale to en_US
> 60248 2008-04-01 13:38:30,953 DEBUG ActionCommandBase - Executing
> org.apache.struts.chain.commands.servlet.SetOriginalURI
> 60248 2008-04-01 13:38:30,953 DEBUG ActionCommandBase - Executing
> org.apache.struts.chain.commands.servlet.RequestNoCache
> 60248 2008-04-01 13:38:30,953 DEBUG ActionCommandBase - Executing
> org.apache.struts.chain.commands.servlet.SetContentType
> 60248 2008-04-01 13:38:30,953 DEBUG ActionCommandBase - Executing
> org.apache.struts.chain.commands.RemoveCachedMessages
> 60248 2008-04-01 13:38:30,953 DEBUG ActionCommandBase - Executing
> org.apache.struts.chain.commands.servlet.SelectAction
> 60248 2008-04-01 13:38:30,953 DEBUG ActionCommandBase - Executing
> org.apache.struts.chain.commands.servlet.AuthorizeAction
> 60248 2008-04-01 13:38:30,953 DEBUG ActionCommandBase - Executing
> org.apache.struts.chain.commands.CreateActionForm
> 60248 2008-04-01 13:38:30,953 DEBUG CreateActionForm - Look up
> form-bean accountSetupForm
> 60248 2008-04-01 13:38:30,953 DEBUG ActionCommandBase - Executing
> org.apache.struts.chain.commands.servlet.PopulateActionForm
> 60249 2008-04-01 13:38:30,954 DEBUG ActionCommandBase - Executing
> org.apache.struts.chain.commands.servlet.ValidateActionForm
> 60308 2008-04-01 13:38:31,013 DEBUG ActionCommandBase - Executing
> org.apache.struts.chain.commands.servlet.SelectInput
> 60308 2008-04-01 13:38:31,013 DEBUG ActionCommandBase - Executing
> org.apache.struts.chain.commands.ExecuteCommand
> 60308 2008-04-01 13:38:31,013 DEBUG ActionCommandBase - Executing
> org.apache.struts.chain.commands.servlet.SelectForward
> 60308 2008-04-01 13:38:31,013 DEBUG ActionCommandBase - Executing
> org.apache.struts.chain.commands.SelectInclude
> 60308 2008-04-01 13:38:31,013 DEBUG ActionCommandBase - Executing
> org.apache.struts.chain.commands.servlet.PerformInclude
> 60308 2008-04-01 13:38:31,013 DEBUG ActionCommandBase - Executing
> org.apache.struts.chain.commands.servlet.CreateAction
> 60308 2008-04-01 13:38:31,013 INFO CreateAction - Initialize action
> of type: capesafe.web.action.CreateAccountAction
> 60310 2008-04-01 13:38:31,015 DEBUG AbstractCreateAction - setting
> action to capesafe.web.action.CreateAccountAction@(protected)
> 60310 2008-04-01 13:38:31,015 DEBUG ActionCommandBase - Executing
> org.apache.struts.chain.commands.servlet.ExecuteAction
> 60311 2008-04-01 13:38:31,016 DEBUG ActionCommandBase - Executing
> org.apache.struts.chain.commands.ExecuteForwardCommand
> 60311 2008-04-01 13:38:31,016 DEBUG TilesPreProcessor - no uri
> computed, so pass to next command
>
> <!-- look at this ... it sees the displayCreateAccountStep action but
> it executes displayCreateAccount.do instead ???-->
> 60311 2008-04-01 13:38:31,016 DEBUG ActionCommandBase - Executing
> org.apache.struts.chain.commands.servlet.PerformForward
> 60312 2008-04-01 13:38:31,017 DEBUG PerformForward - Forwarding to
> /displayCreateAccountStep2
> 60312 2008-04-01 13:38:31,017 DEBUG ModuleUtils - Get module name for
> path /displayCreateAccount.do
> 60312 2008-04-01 13:38:31,017 DEBUG ModuleUtils - Module name found: default
> 60312 2008-04-01 13:38:31,017 DEBUG ComposableRequestProcessor -
> Using processing chain for this request
> 60312 2008-04-01 13:38:31,017 DEBUG ActionCommandBase - Executing
> org.apache.struts.chain.commands.ExceptionCatcher
> 60312 2008-04-01 13:38:31,017 DEBUG ActionCommandBase - Executing
> org.apache.struts.chain.commands.servlet.SelectLocale
> 60312 2008-04-01 13:38:31,017 DEBUG AbstractSelectLocale - retrieve config...
> 60312 2008-04-01 13:38:31,017 DEBUG AbstractSelectLocale - set
> context locale to en_US
> 60313 2008-04-01 13:38:31,018 DEBUG ActionCommandBase - Executing
> org.apache.struts.chain.commands.servlet.SetOriginalURI
> 60313 2008-04-01 13:38:31,018 DEBUG ActionCommandBase - Executing
> org.apache.struts.chain.commands.servlet.RequestNoCache
> 60313 2008-04-01 13:38:31,018 DEBUG ActionCommandBase - Executing
> org.apache.struts.chain.commands.servlet.SetContentType
> 60313 2008-04-01 13:38:31,018 DEBUG ActionCommandBase - Executing
> org.apache.struts.chain.commands.RemoveCachedMessages
> 60313 2008-04-01 13:38:31,018 DEBUG ActionCommandBase - Executing
> org.apache.struts.chain.commands.servlet.SelectAction
> 60313 2008-04-01 13:38:31,018 DEBUG ActionCommandBase - Executing
> org.apache.struts.chain.commands.servlet.AuthorizeAction
> 60313 2008-04-01 13:38:31,018 DEBUG ActionCommandBase - Executing
> org.apache.struts.chain.commands.CreateActionForm
> 60313 2008-04-01 13:38:31,018 DEBUG CreateActionForm - Look up
> form-bean accountSetupForm
> 60313 2008-04-01 13:38:31,018 DEBUG FormBeanConfig - Can reuse
> existing instance (non-dynamic)
> 60313 2008-04-01 13:38:31,018 DEBUG ActionCommandBase - Executing
> org.apache.struts.chain.commands.servlet.PopulateActionForm
> 60313 2008-04-01 13:38:31,018 DEBUG ActionCommandBase - Executing
> org.apache.struts.chain.commands.servlet.ValidateActionForm
> 60313 2008-04-01 13:38:31,018 DEBUG ActionCommandBase - Executing
> org.apache.struts.chain.commands.servlet.SelectInput
> 60313 2008-04-01 13:38:31,018 DEBUG ActionCommandBase - Executing
> org.apache.struts.chain.commands.ExecuteCommand
> 60313 2008-04-01 13:38:31,018 DEBUG ActionCommandBase - Executing
> org.apache.struts.chain.commands.servlet.SelectForward
> 60313 2008-04-01 13:38:31,018 DEBUG ActionCommandBase - Executing
> org.apache.struts.chain.commands.SelectInclude
> 60313 2008-04-01 13:38:31,018 DEBUG ActionCommandBase - Executing
> org.apache.struts.chain.commands.servlet.PerformInclude
> 60313 2008-04-01 13:38:31,018 DEBUG ActionCommandBase - Executing
> org.apache.struts.chain.commands.servlet.CreateAction
> 60313 2008-04-01 13:38:31,018 DEBUG AbstractCreateAction - setting
> action to capesafe.web.action.DisplayCreateAccountAction@(protected)
> 60313 2008-04-01 13:38:31,018 DEBUG ActionCommandBase - Executing
> org.apache.struts.chain.commands.servlet.ExecuteAction
> 60314 2008-04-01 13:38:31,019 DEBUG ActionCommandBase - Executing
> org.apache.struts.chain.commands.ExecuteForwardCommand
> 60314 2008-04-01 13:38:31,019 INFO TilesPreProcessor - Tiles process
> complete; forward to /WEB-INF/tiles/layout.jsp
> 60314 2008-04-01 13:38:31,019 DEBUG InsertTag - insert
> page='/WEB-INF/tiles/header.jsp'.
> 60483 2008-04-01 13:38:31,188 DEBUG InsertTag - insert
> page='/WEB-INF/tiles/menu.jsp'.
> 60494 2008-04-01 13:38:31,199 DEBUG InsertTag - insert
> page='/WEB-INF/common/CreateAccount.jsp'.
> 60524 2008-04-01 13:38:31,229 DEBUG InsertTag - insert
> page='/WEB-INF/tiles/footer.jsp'.
> 60566 2008-04-01 13:38:31,271 DEBUG TilesPreProcessor - Tiles
> processed, so clearing forward config from context.
> 60566 2008-04-01 13:38:31,271 DEBUG ActionCommandBase - Executing
> org.apache.struts.chain.commands.servlet.PerformForward
>
> --
> What profits a man if he gains the whole world yet loses his soul?
>



--
What profits a man if he gains the whole world yet loses his soul?

Attachment: user_184918.ezm (zipped)
Doug-

Is there any reason (other than political) why you are using 1.3.8 instead
of 2.0.11+
if your concerned about implement singleton servlet context then implement
your own FilterDispatcher e.g.

public class MyFilterDispatcher extends FilterDispatcher {

public void setFilterConfig(FilterConfig filterConfig) {

//so you can achieve this objective using ServletContextSingleton class
    ServletContextSingleton singleton =
ServletContextSingleton.getInstance();
    singleton.setServletContext(filterConfig.getServletContext());
?
Martin
----- Original Message -----
From: "Doug Lochart" <dlochart@(protected)>
To: <user@(protected)>
Sent: Wednesday, April 02, 2008 6:43 AM
Subject: Re: Strange behavior: Trying to implement saveToken() in display
actions.


> I am just learning Struts. I think I may have forgotten some
> information that you might need in order to provide any help. I am
> using Struts 1.3.8, JDK 1.6, running on Tomcat 5.5.
>
> If my problem is SO SIMPLE and hence why I have heard silence then I
> am sorry but this is my first app and I so far what I have done looks
> like it should work.
>
> Does anyone have any ideas?
>
> regards,
>
> Doug Lochart
>
> On Tue, Apr 1, 2008 at 2:02 PM, Doug Lochart <dlochart@(protected):
> > I am trying to implement a pattern so that I can use struts tokens to
> > help prevent double submission. I seem to be getting a strange
> > sequence of events that I don't quite follow. Here is what I want to
> > do at a high level
> >
> > displayCreateAccount -- forwards to --> CreateAccount.jsp (with form
> > action defined as /createAccount)
> > createAccount -- forwards to --> displayCreateAccountStep2 -- forwards
> > to --> CreateAccountStep2.jsp
> >
> > The actions that start with 'display' merely set the struts token (e.g
> > saveToken( request ); )
> > Then it forwards it along to a jsp.
> >
> > The actions that start with 'Create' check to see if the token is
> > valid then it processes the form submission and then
> > forwards it to another display action which will then set the next
> > toke for the next display of a JSP.
> >
> > I have checked and rechecked all of my configs but I do not see a
> > mistake. I have also rebuilt the entire war
> > and cleaned out EVERYTHING in Tomcat but I get the same result. When
> > I hit the first displayCreateAccount action
> > it properly forwards control to the jsp page that is then presented.
> > When the form on the jsp page is submitted
> > the displayCreateAccountStep2 action is found (see log below) in the
> > mapping YET the original displayCreateAccount is executed. I have
> > turned on
> > debug of org.apache.struts. Here is my struts-config.xml and a
> > snippet of the logs showing what is happening.
> >
> > I am curious as to why this is happening. I really want to understand
> > what I am doing wrong or why it is working this way.
> > Please let me know if I need to supply any more supporting documents.
> >
> > thanks
> >
> > Doug
> >
> > snippet from struts-config.xml
> >
> > ------------
> >
> >   <global-forwards>
> >      <forward name="logon" path="/logon.do"/>
> >      <forward name="logoff" path="/logoff.do"/>
> >      <forward name="doubleSubmit" path="display.double.submit"/>
> >   </global-forwards>
> >
> >   <action-mappings>
> >
> >      <action path="/displayCreateAccount"
> >           type="capesafe.web.action.DisplayCreateAccountAction"
> >           name="accountSetupForm"
> >           scope="request"
> >           cancellable="true"
> >           validate="false">
> >       <forward name="display1" path="display.create.account.1"/>
> >      </action>
> >
> >      <action path="/createAccount"
> >           type="capesafe.web.action.CreateAccountAction"
> >           name="accountSetupForm"
> >           scope="request"
> >           cancellable="true"
> >           input="display.create.account.1">
> >       <forward name="success" path="/displayCreateAccountStep2"/>
> >       <forward name="failure"
path="/WEB-INF/common/FailedLogon.jsp"/>
> >       <forward name="cancel"
path="/WEB-INF/common/CancelLogon.jsp"/>
> >      </action>
> >
> >      <action path="/displayCreateAccountStep2"
> >
type="capesafe.web.action.DisplayCreateAccountActionStep2"
> >           name="accountSetupForm"
> >           scope="request"
> >           cancellable="true"
> >           validate="false">
> >       <forward name="displayStep2" path="display.create.account.2"/>
> >      </action>
> >
> >      <action path="/createAccountStep2"
> >           type="capesafe.web.action.CreateAccountActionStep2"
> >           name="accountSetupFormStep2"
> >           scope="request"
> >           cancellable="true"
> >           input="display.create.account.2">
> >       <forward name="success" path="display.create.account.3"/>
> >       <forward name="failure"
path="/WEB-INF/common/FailedLogon.jsp"/>
> >       <forward name="cancel"
path="/WEB-INF/common/CancelLogon.jsp"/>
> >      </action>
> >   </action-mappings>
> >
> > -----------------
> > snippet from log
> > ------------------
> >
> > 42274 2008-04-01 13:38:12,979 DEBUG ModuleUtils - Get module name for
> > path /displayCreateAccount.do
> > 42274 2008-04-01 13:38:12,979 DEBUG ModuleUtils - Module name found:
default
> > 42274 2008-04-01 13:38:12,979 INFO ComposableRequestProcessor -
> > Initializing composable request processor for module prefix ''
> > 42274 2008-04-01 13:38:12,979 DEBUG ComposableRequestProcessor -
> > setActionContextClassName: no className specified
> > 42296 2008-04-01 13:38:13,001 DEBUG ComposableRequestProcessor -
> > Using processing chain for this request
> > 42296 2008-04-01 13:38:13,001 DEBUG ActionCommandBase - Executing
> > org.apache.struts.chain.commands.ExceptionCatcher
> > 42296 2008-04-01 13:38:13,001 DEBUG ActionCommandBase - Executing
> > org.apache.struts.chain.commands.servlet.SelectLocale
> > 42296 2008-04-01 13:38:13,001 DEBUG AbstractSelectLocale - retrieve
config...
> > 42298 2008-04-01 13:38:13,003 DEBUG AbstractSelectLocale - set
> > context locale to en_US
> > 42299 2008-04-01 13:38:13,004 DEBUG ActionCommandBase - Executing
> > org.apache.struts.chain.commands.servlet.SetOriginalURI
> > 42299 2008-04-01 13:38:13,004 DEBUG ActionCommandBase - Executing
> > org.apache.struts.chain.commands.servlet.RequestNoCache
> > 42299 2008-04-01 13:38:13,004 DEBUG ActionCommandBase - Executing
> > org.apache.struts.chain.commands.servlet.SetContentType
> > 42299 2008-04-01 13:38:13,004 DEBUG ActionCommandBase - Executing
> > org.apache.struts.chain.commands.RemoveCachedMessages
> > 42300 2008-04-01 13:38:13,005 DEBUG ActionCommandBase - Executing
> > org.apache.struts.chain.commands.servlet.SelectAction
> > 42300 2008-04-01 13:38:13,005 DEBUG ActionCommandBase - Executing
> > org.apache.struts.chain.commands.servlet.AuthorizeAction
> > 42300 2008-04-01 13:38:13,005 DEBUG ActionCommandBase - Executing
> > org.apache.struts.chain.commands.CreateActionForm
> > 42300 2008-04-01 13:38:13,005 DEBUG CreateActionForm - Look up
> > form-bean accountSetupForm
> > 42303 2008-04-01 13:38:13,008 DEBUG ActionCommandBase - Executing
> > org.apache.struts.chain.commands.servlet.PopulateActionForm
> > 42304 2008-04-01 13:38:13,009 DEBUG ActionCommandBase - Executing
> > org.apache.struts.chain.commands.servlet.ValidateActionForm
> > 42304 2008-04-01 13:38:13,009 DEBUG ActionCommandBase - Executing
> > org.apache.struts.chain.commands.servlet.SelectInput
> > 42304 2008-04-01 13:38:13,009 DEBUG ActionCommandBase - Executing
> > org.apache.struts.chain.commands.ExecuteCommand
> > 42305 2008-04-01 13:38:13,010 DEBUG ActionCommandBase - Executing
> > org.apache.struts.chain.commands.servlet.SelectForward
> > 42305 2008-04-01 13:38:13,010 DEBUG ActionCommandBase - Executing
> > org.apache.struts.chain.commands.SelectInclude
> > 42305 2008-04-01 13:38:13,010 DEBUG ActionCommandBase - Executing
> > org.apache.struts.chain.commands.servlet.PerformInclude
> > 42305 2008-04-01 13:38:13,010 DEBUG ActionCommandBase - Executing
> > org.apache.struts.chain.commands.servlet.CreateAction
> > 42306 2008-04-01 13:38:13,011 INFO CreateAction - Initialize action
> > of type: capesafe.web.action.DisplayCreateAccountAction
> > 42309 2008-04-01 13:38:13,014 DEBUG AbstractCreateAction - setting
> > action to capesafe.web.action.DisplayCreateAccountAction@(protected)
> > 42309 2008-04-01 13:38:13,014 DEBUG ActionCommandBase - Executing
> > org.apache.struts.chain.commands.servlet.ExecuteAction
> > 42309 2008-04-01 13:38:13,014 DEBUG ActionCommandBase - Executing
> > org.apache.struts.chain.commands.ExecuteForwardCommand
> > 42310 2008-04-01 13:38:13,015 DEBUG I18nFactorySet - Can't open file
> > '/WEB-INF/tiles-defs_en_US.xml'
> > 42314 2008-04-01 13:38:13,019 DEBUG I18nFactorySet - Can't open file
> > '/WEB-INF/tiles-defs_en.xml'
> > 42316 2008-04-01 13:38:13,021 INFO TilesPreProcessor - Tiles process
> > complete; forward to /WEB-INF/tiles/layout.jsp
> > 42359 2008-04-01 13:38:13,064 DEBUG InsertTag - insert
> > page='/WEB-INF/tiles/header.jsp'.
> > 42518 2008-04-01 13:38:13,223 DEBUG InsertTag - insert
> > page='/WEB-INF/tiles/menu.jsp'.
> > 42540 2008-04-01 13:38:13,245 DEBUG InsertTag - insert
> > page='/WEB-INF/common/CreateAccount.jsp'.
> > 42748 2008-04-01 13:38:13,453 DEBUG InsertTag - insert
> > page='/WEB-INF/tiles/footer.jsp'.
> > 42902 2008-04-01 13:38:13,607 DEBUG TilesPreProcessor - Tiles
> > processed, so clearing forward config from context.
> > 42902 2008-04-01 13:38:13,607 DEBUG ActionCommandBase - Executing
> > org.apache.struts.chain.commands.servlet.PerformForward
> >
> > < -- what follows is after I submit the form, this is where it gets
odd -->
> >
> > 60247 2008-04-01 13:38:30,952 DEBUG ModuleUtils - Get module name for
> > path /createAccount.do
> > 60247 2008-04-01 13:38:30,952 DEBUG ModuleUtils - Module name found:
default
> > 60247 2008-04-01 13:38:30,952 DEBUG ComposableRequestProcessor -
> > Using processing chain for this request
> > 60247 2008-04-01 13:38:30,952 DEBUG ActionCommandBase - Executing
> > org.apache.struts.chain.commands.ExceptionCatcher
> > 60247 2008-04-01 13:38:30,952 DEBUG ActionCommandBase - Executing
> > org.apache.struts.chain.commands.servlet.SelectLocale
> > 60247 2008-04-01 13:38:30,952 DEBUG AbstractSelectLocale - retrieve
config...
> > 60248 2008-04-01 13:38:30,953 DEBUG AbstractSelectLocale - set
> > context locale to en_US
> > 60248 2008-04-01 13:38:30,953 DEBUG ActionCommandBase - Executing
> > org.apache.struts.chain.commands.servlet.SetOriginalURI
> > 60248 2008-04-01 13:38:30,953 DEBUG ActionCommandBase - Executing
> > org.apache.struts.chain.commands.servlet.RequestNoCache
> > 60248 2008-04-01 13:38:30,953 DEBUG ActionCommandBase - Executing
> > org.apache.struts.chain.commands.servlet.SetContentType
> > 60248 2008-04-01 13:38:30,953 DEBUG ActionCommandBase - Executing
> > org.apache.struts.chain.commands.RemoveCachedMessages
> > 60248 2008-04-01 13:38:30,953 DEBUG ActionCommandBase - Executing
> > org.apache.struts.chain.commands.servlet.SelectAction
> > 60248 2008-04-01 13:38:30,953 DEBUG ActionCommandBase - Executing
> > org.apache.struts.chain.commands.servlet.AuthorizeAction
> > 60248 2008-04-01 13:38:30,953 DEBUG ActionCommandBase - Executing
> > org.apache.struts.chain.commands.CreateActionForm
> > 60248 2008-04-01 13:38:30,953 DEBUG CreateActionForm - Look up
> > form-bean accountSetupForm
> > 60248 2008-04-01 13:38:30,953 DEBUG ActionCommandBase - Executing
> > org.apache.struts.chain.commands.servlet.PopulateActionForm
> > 60249 2008-04-01 13:38:30,954 DEBUG ActionCommandBase - Executing
> > org.apache.struts.chain.commands.servlet.ValidateActionForm
> > 60308 2008-04-01 13:38:31,013 DEBUG ActionCommandBase - Executing
> > org.apache.struts.chain.commands.servlet.SelectInput
> > 60308 2008-04-01 13:38:31,013 DEBUG ActionCommandBase - Executing
> > org.apache.struts.chain.commands.ExecuteCommand
> > 60308 2008-04-01 13:38:31,013 DEBUG ActionCommandBase - Executing
> > org.apache.struts.chain.commands.servlet.SelectForward
> > 60308 2008-04-01 13:38:31,013 DEBUG ActionCommandBase - Executing
> > org.apache.struts.chain.commands.SelectInclude
> > 60308 2008-04-01 13:38:31,013 DEBUG ActionCommandBase - Executing
> > org.apache.struts.chain.commands.servlet.PerformInclude
> > 60308 2008-04-01 13:38:31,013 DEBUG ActionCommandBase - Executing
> > org.apache.struts.chain.commands.servlet.CreateAction
> > 60308 2008-04-01 13:38:31,013 INFO CreateAction - Initialize action
> > of type: capesafe.web.action.CreateAccountAction
> > 60310 2008-04-01 13:38:31,015 DEBUG AbstractCreateAction - setting
> > action to capesafe.web.action.CreateAccountAction@(protected)
> > 60310 2008-04-01 13:38:31,015 DEBUG ActionCommandBase - Executing
> > org.apache.struts.chain.commands.servlet.ExecuteAction
> > 60311 2008-04-01 13:38:31,016 DEBUG ActionCommandBase - Executing
> > org.apache.struts.chain.commands.ExecuteForwardCommand
> > 60311 2008-04-01 13:38:31,016 DEBUG TilesPreProcessor - no uri
> > computed, so pass to next command
> >
> > <!-- look at this ... it sees the displayCreateAccountStep action but
> > it executes displayCreateAccount.do instead ???-->
> > 60311 2008-04-01 13:38:31,016 DEBUG ActionCommandBase - Executing
> > org.apache.struts.chain.commands.servlet.PerformForward
> > 60312 2008-04-01 13:38:31,017 DEBUG PerformForward - Forwarding to
> > /displayCreateAccountStep2
> > 60312 2008-04-01 13:38:31,017 DEBUG ModuleUtils - Get module name for
> > path /displayCreateAccount.do
> > 60312 2008-04-01 13:38:31,017 DEBUG ModuleUtils - Module name found:
default
> > 60312 2008-04-01 13:38:31,017 DEBUG ComposableRequestProcessor -
> > Using processing chain for this request
> > 60312 2008-04-01 13:38:31,017 DEBUG ActionCommandBase - Executing
> > org.apache.struts.chain.commands.ExceptionCatcher
> > 60312 2008-04-01 13:38:31,017 DEBUG ActionCommandBase - Executing
> > org.apache.struts.chain.commands.servlet.SelectLocale
> > 60312 2008-04-01 13:38:31,017 DEBUG AbstractSelectLocale - retrieve
config...
> > 60312 2008-04-01 13:38:31,017 DEBUG AbstractSelectLocale - set
> > context locale to en_US
> > 60313 2008-04-01 13:38:31,018 DEBUG ActionCommandBase - Executing
> > org.apache.struts.chain.commands.servlet.SetOriginalURI
> > 60313 2008-04-01 13:38:31,018 DEBUG ActionCommandBase - Executing
> > org.apache.struts.chain.commands.servlet.RequestNoCache
> > 60313 2008-04-01 13:38:31,018 DEBUG ActionCommandBase - Executing
> > org.apache.struts.chain.commands.servlet.SetContentType
> > 60313 2008-04-01 13:38:31,018 DEBUG ActionCommandBase - Executing
> > org.apache.struts.chain.commands.RemoveCachedMessages
> > 60313 2008-04-01 13:38:31,018 DEBUG ActionCommandBase - Executing
> > org.apache.struts.chain.commands.servlet.SelectAction
> > 60313 2008-04-01 13:38:31,018 DEBUG ActionCommandBase - Executing
> > org.apache.struts.chain.commands.servlet.AuthorizeAction
> > 60313 2008-04-01 13:38:31,018 DEBUG ActionCommandBase - Executing
> > org.apache.struts.chain.commands.CreateActionForm
> > 60313 2008-04-01 13:38:31,018 DEBUG CreateActionForm - Look up
> > form-bean accountSetupForm
> > 60313 2008-04-01 13:38:31,018 DEBUG FormBeanConfig - Can reuse
> > existing instance (non-dynamic)
> > 60313 2008-04-01 13:38:31,018 DEBUG ActionCommandBase - Executing
> > org.apache.struts.chain.commands.servlet.PopulateActionForm
> > 60313 2008-04-01 13:38:31,018 DEBUG ActionCommandBase - Executing
> > org.apache.struts.chain.commands.servlet.ValidateActionForm
> > 60313 2008-04-01 13:38:31,018 DEBUG ActionCommandBase - Executing
> > org.apache.struts.chain.commands.servlet.SelectInput
> > 60313 2008-04-01 13:38:31,018 DEBUG ActionCommandBase - Executing
> > org.apache.struts.chain.commands.ExecuteCommand
> > 60313 2008-04-01 13:38:31,018 DEBUG ActionCommandBase - Executing
> > org.apache.struts.chain.commands.servlet.SelectForward
> > 60313 2008-04-01 13:38:31,018 DEBUG ActionCommandBase - Executing
> > org.apache.struts.chain.commands.SelectInclude
> > 60313 2008-04-01 13:38:31,018 DEBUG ActionCommandBase - Executing
> > org.apache.struts.chain.commands.servlet.PerformInclude
> > 60313 2008-04-01 13:38:31,018 DEBUG ActionCommandBase - Executing
> > org.apache.struts.chain.commands.servlet.CreateAction
> > 60313 2008-04-01 13:38:31,018 DEBUG AbstractCreateAction - setting
> > action to capesafe.web.action.DisplayCreateAccountAction@(protected)
> > 60313 2008-04-01 13:38:31,018 DEBUG ActionCommandBase - Executing
> > org.apache.struts.chain.commands.servlet.ExecuteAction
> > 60314 2008-04-01 13:38:31,019 DEBUG ActionCommandBase - Executing
> > org.apache.struts.chain.commands.ExecuteForwardCommand
> > 60314 2008-04-01 13:38:31,019 INFO TilesPreProcessor - Tiles process
> > complete; forward to /WEB-INF/tiles/layout.jsp
> > 60314 2008-04-01 13:38:31,019 DEBUG InsertTag - insert
> > page='/WEB-INF/tiles/header.jsp'.
> > 60483 2008-04-01 13:38:31,188 DEBUG InsertTag - insert
> > page='/WEB-INF/tiles/menu.jsp'.
> > 60494 2008-04-01 13:38:31,199 DEBUG InsertTag - insert
> > page='/WEB-INF/common/CreateAccount.jsp'.
> > 60524 2008-04-01 13:38:31,229 DEBUG InsertTag - insert
> > page='/WEB-INF/tiles/footer.jsp'.
> > 60566 2008-04-01 13:38:31,271 DEBUG TilesPreProcessor - Tiles
> > processed, so clearing forward config from context.
> > 60566 2008-04-01 13:38:31,271 DEBUG ActionCommandBase - Executing
> > org.apache.struts.chain.commands.servlet.PerformForward
> >
> > --
> > What profits a man if he gains the whole world yet loses his soul?
> >
>
>
>
> --
> What profits a man if he gains the whole world yet loses his soul?
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>


Attachment: user_184914.ezm (zipped)
Hi,

I am new to Eclipse and Struts.
When I tried to follow the tutorial as shown in the following link:
http://www.laliluna.de/first-steps-using-struts-tutorial.html

my newly created project in Eclipse don't have Struts libraries in the list.
What should I do to import Struts in to Eclipse?

Thanks
S




   ____________________________________________________________________________________
You rock. That's why Blockbuster's offering you one month of Blockbuster Total Access, No Cost.
http://tc.deals.yahoo.com/tc/blockbuster/text5.com

Attachment: user_184917.ezm (zipped)
--- Sam Wun <samwun2@(protected):
> When I tried to follow the tutorial as shown in the following link:
> http://www.laliluna.de/first-steps-using-struts-tutorial.html
>
> my newly created project in Eclipse don't have Struts libraries in the
> list. What should I do to import Struts in to Eclipse?

Start by downloading Struts and importing the libraries you need into your
project, probably into WEB-INF/lib.

http://struts.apache.org/download.cgi#struts20111

Dave



Attachment: user_184919.ezm (zipped)


----- Original Message ----
From: Dave Newton <newton.dave@(protected)>
To: Struts Users Mailing List <user@(protected)>
Sent: Wednesday, April 2, 2008 11:46:06 PM
Subject: Re: Eclipse with struts

--- Sam Wun <samwun2@(protected):
> When I tried to follow the tutorial as shown in the following link:
> http://www.laliluna.de/first-steps-using-struts-tutorial.html
>
> my newly created project in Eclipse don't have Struts libraries in the
> list. What should I do to import Struts in to Eclipse?

>> Start by downloading Struts and importing the libraries you need into your
>> project, probably into WEB-INF/lib.
Do you meant unzip the struts-xxx.zip file into the WEB-INF/lib/ folder?
or use File->Import in Eclipse or Weblogic?

Thanks
Sam

>> http://struts.apache.org/download.cgi#struts20111

Dave



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)







   ____________________________________________________________________________________
You rock. That's why Blockbuster's offering you one month of Blockbuster Total Access, No Cost.
http://tc.deals.yahoo.com/tc/blockbuster/text5.com

Attachment: user_184915.ezm (zipped)

Hello,

I have the following problem:

in action i have a collection of class User
each class User have different attributes, one is: boolean permission

in JSP I use struts 2 iterator tag to iterate the User Objects.
For each User entry I create one row in table.
for displaying/changing the boolean permission value I use S2 checkbox tag

so far it works fine and show all data in collection of Users correct.

But how can I set changed checkbox values (the permission attribute) back to
action?

Any help appreciated, thank you.
basti
--
Sent from the Struts - User mailing list archive at Nabble.com.


Attachment: user_184916.ezm (zipped)
hi there

I want to filter any .action in my cimande project

and i want to give several database security to the action

i just think this will become ACL for Struts2

but...

I am also using Spring,

anyone can help me

is this better create my own interceptor (how to develop interceptor that
can access my POJO like action did) or using acegy security

any opinion welcome

Attachment: user_184920.ezm (zipped)


MyEclipse would solve your problem.

-----Original Message-----
From: Sam Wun [mailto:samwun2@(protected)]
Sent: 02 April 2008 14:17
To: Struts Users Mailing List
Subject: Re: Eclipse with struts



----- Original Message ----
From: Dave Newton <newton.dave@(protected)>
To: Struts Users Mailing List <user@(protected)>
Sent: Wednesday, April 2, 2008 11:46:06 PM
Subject: Re: Eclipse with struts

--- Sam Wun <samwun2@(protected):
> When I tried to follow the tutorial as shown in the following link:
> http://www.laliluna.de/first-steps-using-struts-tutorial.html
>
> my newly created project in Eclipse don't have Struts libraries in the

> list. What should I do to import Struts in to Eclipse?

>> Start by downloading Struts and importing the libraries you need into

>> your project, probably into WEB-INF/lib.
Do you meant unzip the struts-xxx.zip file into the WEB-INF/lib/ folder?
or use File->Import in Eclipse or Weblogic?

Thanks
Sam

>> http://struts.apache.org/download.cgi#struts20111

Dave



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)








________________________________________________________________________
____________
You rock. That's why Blockbuster's offering you one month of Blockbuster
Total Access, No Cost.
http://tc.deals.yahoo.com/tc/blockbuster/text5.com

*********************************************************************************
Working Together for a Better Tower Hamlets
Web site : http://www.towerhamlets.gov.uk

London Borough of Tower Hamlets E-Mail Disclaimer.

This communication and any attachments are intended for the addressee only and may be confidential. It may contain privileged and confidential information and if you are not the intended recipient, you must not copy, distribute or take any action in reliance on it. If you have received this E-Mail in error please notify us as soon as possible and delete this E-Mail and any attachments. This message has been checked for viruses, however we cannot guarantee that this message or any attachment is virus free or has not been intercepted or amended. The information contained in this E-Mail may be subject to public disclosure under the Freedom of Information Act 2000. Unless the information is legally exempt from disclosure, the Confidentiality of this E-Mail and your reply cannot be guaranteed.

If your request relates to a Freedom of Information enquiry, please resend this to foi@(protected)
************************************************************************************


Attachment: user_184922.ezm (zipped)


I have HelloServlet ,HelloServletContextListener in 3 different applications
in tomcat

<tomcat_home>webapps\AppHello1
<tomcat_home>webapps\AppHello2
<tomcat_home>webapps\AppHello3

How to identify in my listner class what is the folder/context name in my
server.

public void contextInitialized(ServletContextEvent ce) {
contextName = ce.getServletContext().getServletContextName();
}


This code is working only if i have
<display-name>AppHello1</display-name> in web.xml.
If there is no <display-name> in web.xml then above code in listner class is
returning null.

Is there facility to know application folder name in webapps folder in
tomcat.



©2008 gg3721.com - Jax Systems, LLC, U.S.A.