Java Mailing List Archive

http://www.gg3721.com/

Home » Struts Users Mailing List »

user Digest 22 Jul 2008 13:52:39 -0000 Issue 8153

user-digest-help

2008-07-22


Author LoginPost Reply

user Digest 22 Jul 2008 13:52:39 -0000 Issue 8153

Topics (messages 189153 through 189162):

Re: Setters not working
 189153 by: Mendrik.gmx.de
 189154 by: Mendrik.gmx.de
 189156 by: Lukasz Lenart
 189157 by: Mendrik.gmx.de

Re: Execute and wait interceptor and calling an action more than once
 189155 by: Jeromy Evans

<s:property> and <s:if> tag
 189158 by: Kibo
 189159 by: ManiKanta G
 189161 by: Kibo
 189162 by: ManiKanta G

Re: Dojo javascript errors with ajax theme. please help
 189160 by: Jeromy Evans

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_189153.ezm (zipped)
forgot the file .
--
GMX Kostenlose Spiele: Einfach online spielen und Spaß haben mit Pastry Passion!
http://games.entertainment.gmx.net/de/entertainment/games/free/puzzle/6169196

Attachment: user_189154.ezm (zipped)
Ok, never name your attachments error.txt. Lesson learnt. (Sorry for the spam)
Here inline:

HTTP Status 500 -

type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

java.lang.NullPointerException
 com.gulon.frontend.web.actions.user.RegisterAction.execute(RegisterAction.java:59)
 sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:39)
 sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:25)
 java.lang.reflect.Method.invoke (Method.java:597)
 org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection (AopUtils.java:310)
 org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint (ReflectiveMethodInvocation.java:182)
 org.springframework.aop.framework.ReflectiveMethodInvocation.proceed (ReflectiveMethodInvocation.java:149)
 org.springframework.transaction.interceptor.TransactionInterceptor.invoke (TransactionInterceptor.java:106)
 org.springframework.aop.framework.ReflectiveMethodInvocation.proceed (ReflectiveMethodInvocation.java:171)
 org.springframework.aop.framework.JdkDynamicAopProxy.invoke (JdkDynamicAopProxy.java:204)
 $Proxy11.execute(Unknown Source)
 sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:39)
 sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:25)
 java.lang.reflect.Method.invoke (Method.java:597)
 com.opensymphony.xwork2.DefaultActionInvocation.invokeAction (DefaultActionInvocation.java:434)
 com.opensymphony.xwork2.DefaultActionInvocation.invokeActionOnly (DefaultActionInvocation.java:273)
 com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocatio
 
 
Logs:

[INFO] 2008-07-22 11:08:06,796 - Initializing Spring root WebApplicationContext [org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/test]]
[INFO] 2008-07-22 11:08:06,796 - Root WebApplicationContext: initialization started [org.springframework.web.context.ContextLoader]
[INFO] 2008-07-22 11:08:06,921 - Refreshing org.springframework.web.context.support.XmlWebApplicationContext@(protected)]
[INFO] 2008-07-22 11:08:07,140 - Loading XML bean definitions from ServletContext resource [/WEB-INF/application-context.xml] [org.springframework.beans.factory.xml.XmlBeanDefinitionReader]
[INFO] 2008-07-22 11:08:07,515 - Loading XML bean definitions from class path resource [dao-application-context.xml] [org.springframework.beans.factory.xml.XmlBeanDefinitionReader]
[INFO] 2008-07-22 11:08:07,531 - Loading XML bean definitions from class path resource [datasource-application-context.xml] [org.springframework.beans.factory.xml.XmlBeanDefinitionReader]
[INFO] 2008-07-22 11:08:07,562 - Loading XML bean definitions from class path resource [gulon-application-context.xml] [org.springframework.beans.factory.xml.XmlBeanDefinitionReader]
[INFO] 2008-07-22 11:08:07,578 - Loading XML bean definitions from class path resource [security-application-context.xml] [org.springframework.beans.factory.xml.XmlBeanDefinitionReader]
[INFO] 2008-07-22 11:08:07,906 - Loading XML bean definitions from class path resource [service-application-context.xml] [org.springframework.beans.factory.xml.XmlBeanDefinitionReader]
[INFO] 2008-07-22 11:08:07,921 - Loading XML bean definitions from class path resource [transaction-application-context.xml] [org.springframework.beans.factory.xml.XmlBeanDefinitionReader]
[INFO] 2008-07-22 11:08:07,984 - Bean factory for application context [org.springframework.web.context.support.XmlWebApplicationContext@(protected)]
[INFO] 2008-07-22 11:08:08,187 - Loading properties file from class path resource [build.properties] [org.springframework.beans.factory.config.PropertyPlaceholderConfigurer]
[INFO] 2008-07-22 11:08:08,281 - Selecting AuthenticationEntryPoint for use in ExceptionTranslationFilter [org.springframework.security.config.HttpSecurityConfigPostProcessor]
[INFO] 2008-07-22 11:08:08,281 - Using main configured AuthenticationEntryPoint set to _mainEntryPoint [org.springframework.security.config.HttpSecurityConfigPostProcessor]
[INFO] 2008-07-22 11:08:08,281 - Using bean '_mainEntryPoint' as the entry point. [org.springframework.security.config.HttpSecurityConfigPostProcessor]
[INFO] 2008-07-22 11:08:08,390 - Bean 'jpaDialect' is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) [org.springframework.web.context.support.XmlWebApplicationContext]
[INFO] 2008-07-22 11:08:08,468 - MLog clients using log4j logging. [com.mchange.v2.log.MLog]
[INFO] 2008-07-22 11:08:08,765 - Initializing c3p0-0.9.1.2 [built 21-May-2007 15:04:56; debug? true; trace: 10] [com.mchange.v2.c3p0.C3P0Registry]
[INFO] 2008-07-22 11:08:08,906 - Bean 'defaultDataSource' is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) [org.springframework.web.context.support.XmlWebApplicationContext]
[INFO] 2008-07-22 11:08:09,031 - Bean 'org.springframework.orm.jpa.vendor.OpenJpaVendorAdapter#8530b8' is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) [org.springframework.web.context.support.XmlWebApplicationContext]
[INFO] 2008-07-22 11:08:09,078 - Building JPA container EntityManagerFactory for persistence unit 'gulonPersistence' [org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean]
[INFO] 2008-07-22 11:08:09,593 - Initializing c3p0 pool... com.mchange.v2.c3p0.ComboPooledDataSource [ acquireIncrement -> 3, acquireRetryAttempts -> 30, acquireRetryDelay -> 1000, autoCommitOnClose -> false, automaticTestTable -> null, breakAfterAcquireFailure -> false, checkoutTimeout -> 0, connectionCustomizerClassName -> null, connectionTesterClassName -> com.mchange.v2.c3p0.impl.DefaultConnectionTester, dataSourceName -> 1hge0zd7vkha05fzilt2x|6835fb, debugUnreturnedConnectionStackTraces -> false, description -> null, driverClass -> com.mysql.jdbc.Driver, factoryClassLocation -> null, forceIgnoreUnresolvedTransactions -> false, identityToken -> 1hge0zd7vkha05fzilt2x|6835fb, idleConnectionTestPeriod -> 0, initialPoolSize -> 3, jdbcUrl -> jdbc:mysql://localhost:3306/gulon, maxAdministrativeTaskTime -> 0, maxConnectionAge -> 0, maxIdleTime -> 0, maxIdleTimeExcessConnections -> 0, maxPoolSize -> 15, maxStatements -> 0, maxStatementsPerConnection -> 0, minPoolSize -> 3, numHel
perThreads -> 3, numThreadsAwaitingCheckoutDefaultUser -> 0, preferredTestQuery -> null, properties -> {c3p0.acquire_increment=5, user=******, c3p0.max_statements=0, password=******, c3p0.idle_test_period=100, c3p0.max_size=100, c3p0.min_size=10}, propertyCycle -> 0, testConnectionOnCheckin -> false, testConnectionOnCheckout -> false, unreturnedConnectionTimeout -> 0, usesTraditionalReflectiveProxies -> false ] [com.mchange.v2.c3p0.impl.AbstractPoolBackedDataSource]
[INFO] 2008-07-22 11:08:10,859 - Bean 'entityManagerFactory' is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) [org.springframework.web.context.support.XmlWebApplicationContext]
[INFO] 2008-07-22 11:08:10,859 - Bean 'entityManagerFactory' is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) [org.springframework.web.context.support.XmlWebApplicationContext]
[INFO] 2008-07-22 11:08:10,859 - Bean 'transactionManager' is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) [org.springframework.web.context.support.XmlWebApplicationContext]
[INFO] 2008-07-22 11:08:10,875 - Bean '(inner bean)' is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) [org.springframework.web.context.support.XmlWebApplicationContext]
[INFO] 2008-07-22 11:08:10,875 - Bean '(inner bean)' is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) [org.springframework.web.context.support.XmlWebApplicationContext]
[INFO] 2008-07-22 11:08:11,031 - Bean 'org.springframework.transaction.interceptor.TransactionAttributeSourceAdvisor#0' is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) [org.springframework.web.context.support.XmlWebApplicationContext]
[INFO] 2008-07-22 11:08:11,171 - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@(protected)
mework.security.providers.dao.DaoAuthenticationProvider#0,org.springframework.security.config.AuthenticationProviderBeanDefinitionParser$AuthenticationProviderCacheResolver#0,projectService,catalogueService,eventService,contextExporter,userService,org.springframework.aop.config.internalAutoProxyCreator,org.springframework.transaction.interceptor.TransactionAttributeSourceAdvisor#0,transactionManager,jpaDialect]; root of factory hierarchy [org.springframework.beans.factory.support.DefaultListableBeanFactory]
[INFO] 2008-07-22 11:08:11,609 - Validated configuration attributes [org.springframework.security.intercept.AbstractSecurityInterceptor]
[INFO] 2008-07-22 11:08:11,640 - Setting RememberMeServices on bean _basicAuthenticationFilter [org.springframework.security.config.RememberMeServicesInjectionBeanPostProcessor]
[INFO] 2008-07-22 11:08:11,656 - Checking sorted filter chain: [org.springframework.security.context.HttpSessionContextIntegrationFilter[ order=200; ], org.springframework.security.ui.SessionFixationProtectionFilter[ order=300; ], org.springframework.security.ui.logout.LogoutFilter[ order=400; ], org.springframework.security.ui.webapp.AuthenticationProcessingFilter[ order=800; ], org.springframework.security.ui.basicauth.BasicProcessingFilter[ order=1100; ], org.springframework.security.wrapper.SecurityContextHolderAwareRequestFilter[ order=1200; ], org.springframework.security.ui.rememberme.RememberMeProcessingFilter[ order=1300; ], org.springframework.security.providers.anonymous.AnonymousProcessingFilter[ order=1400; ], org.springframework.security.ui.ExceptionTranslationFilter[ order=1500; ], org.springframework.security.intercept.web.FilterSecurityInterceptor@(protected)]
[INFO] 2008-07-22 11:08:11,656 - Filter chain... [org.springframework.security.config.FilterChainProxyPostProcessor]
[INFO] 2008-07-22 11:08:11,656 - [0] - org.springframework.security.context.HttpSessionContextIntegrationFilter[ order=200; ] [org.springframework.security.config.FilterChainProxyPostProcessor]
[INFO] 2008-07-22 11:08:11,656 - [1] - org.springframework.security.ui.SessionFixationProtectionFilter[ order=300; ] [org.springframework.security.config.FilterChainProxyPostProcessor]
[INFO] 2008-07-22 11:08:11,656 - [2] - org.springframework.security.ui.logout.LogoutFilter[ order=400; ] [org.springframework.security.config.FilterChainProxyPostProcessor]
[INFO] 2008-07-22 11:08:11,656 - [3] - org.springframework.security.ui.webapp.AuthenticationProcessingFilter[ order=800; ] [org.springframework.security.config.FilterChainProxyPostProcessor]
[INFO] 2008-07-22 11:08:11,656 - [4] - org.springframework.security.ui.basicauth.BasicProcessingFilter[ order=1100; ] [org.springframework.security.config.FilterChainProxyPostProcessor]
[INFO] 2008-07-22 11:08:11,656 - [5] - org.springframework.security.wrapper.SecurityContextHolderAwareRequestFilter[ order=1200; ] [org.springframework.security.config.FilterChainProxyPostProcessor]
[INFO] 2008-07-22 11:08:11,671 - [6] - org.springframework.security.ui.rememberme.RememberMeProcessingFilter[ order=1300; ] [org.springframework.security.config.FilterChainProxyPostProcessor]
[INFO] 2008-07-22 11:08:11,671 - [7] - org.springframework.security.providers.anonymous.AnonymousProcessingFilter[ order=1400; ] [org.springframework.security.config.FilterChainProxyPostProcessor]
[INFO] 2008-07-22 11:08:11,671 - [8] - org.springframework.security.ui.ExceptionTranslationFilter[ order=1500; ] [org.springframework.security.config.FilterChainProxyPostProcessor]
[INFO] 2008-07-22 11:08:11,671 - [9] - org.springframework.security.intercept.web.FilterSecurityInterceptor@(protected)]
[INFO] 2008-07-22 11:08:11,671 - Checking whether login URL '/login.action' is accessible with your configuration [org.springframework.security.config.FilterChainProxyPostProcessor]
[INFO] 2008-07-22 11:08:11,671 - FilterChainProxy: FilterChainProxy[ UrlMatcher = org.springframework.security.util.AntUrlPathMatcher[requiresLowerCase='true']; Filter Chains: {/**=[org.springframework.security.context.HttpSessionContextIntegrationFilter[ order=200; ], org.springframework.security.ui.SessionFixationProtectionFilter[ order=300; ], org.springframework.security.ui.logout.LogoutFilter[ order=400; ], org.springframework.security.ui.webapp.AuthenticationProcessingFilter[ order=800; ], org.springframework.security.ui.basicauth.BasicProcessingFilter[ order=1100; ], org.springframework.security.wrapper.SecurityContextHolderAwareRequestFilter[ order=1200; ], org.springframework.security.ui.rememberme.RememberMeProcessingFilter[ order=1300; ], org.springframework.security.providers.anonymous.AnonymousProcessingFilter[ order=1400; ], org.springframework.security.ui.ExceptionTranslationFilter[ order=1500; ], org.springframework.security.intercept.web.FilterSecurityInterce
ptor@(protected)]
[INFO] 2008-07-22 11:08:11,687 - Root WebApplicationContext: initialization completed in 4891 ms [org.springframework.web.context.ContextLoader]
[INFO] 2008-07-22 11:08:11,703 - Set web app root system property: 'webapp.root' = [C:\workspace\test\out\] [org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/test]]
[INFO] 2008-07-22 11:08:11,703 - Initializing log4j from [C:\workspace\test\out\WEB-INF\classes\log4j.properties] [org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/test]]
[INFO] 2008-07-22 11:08:12,125 - Parsing configuration file [struts-default.xml] [com.opensymphony.xwork2.config.providers.XmlConfigurationProvider]
[INFO] 2008-07-22 11:08:12,328 - Parsing configuration file [struts-plugin.xml] [com.opensymphony.xwork2.config.providers.XmlConfigurationProvider]
[INFO] 2008-07-22 11:08:12,343 - Parsing configuration file [struts.xml] [com.opensymphony.xwork2.config.providers.XmlConfigurationProvider]
[INFO] 2008-07-22 11:08:12,359 - Loading global messages from messages [org.apache.struts2.config.BeanSelectionProvider]
[INFO] 2008-07-22 11:08:12,468 - Initializing Struts-Spring integration... [org.apache.struts2.spring.StrutsSpringObjectFactory]
[INFO] 2008-07-22 11:08:12,468 - Setting autowire strategy to name [com.opensymphony.xwork2.spring.SpringObjectFactory]
[INFO] 2008-07-22 11:08:12,468 - ... initialized Struts-Spring integration successfully [org.apache.struts2.spring.StrutsSpringObjectFactory]

web.xml

<?xml version="1.0" encoding="UTF-8"?>
<!-- Web application deployment descriptor for Gulon -->
<web-app version="2.4"
     xmlns="http://java.sun.com/xml/ns/j2ee"
     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
     xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">

  <display-name>Gulon - Enterprise data management</display-name>

  <context-param>
    <param-name>log4jConfigLocation</param-name>
    <param-value>WEB-INF/classes/log4j.properties</param-value>
  </context-param>

  <context-param>
    <param-name>contextConfigLocation</param-name>
    <param-value>WEB-INF/application-context.xml</param-value>
  </context-param>

  <context-param>
    <param-name>log4j</param-name>
    <param-value>log4j.properties</param-value>
  </context-param>

  <listener>
    <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
  </listener>
  <listener>
    <listener-class>org.springframework.web.context.request.RequestContextListener</listener-class>
  </listener>
  <listener>
    <listener-class>org.springframework.web.util.Log4jConfigListener</listener-class>
  </listener>
  <!--listener>
    <listener-class>com.gulon.frontend.test.ConnectionTest</listener-class>
  </listener-->

  <filter>
    <filter-name>CharacterEncodingFilter</filter-name>
    <filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class>
    <init-param>
       <param-name>encoding</param-name>
       <param-value>UTF-8</param-value>
    </init-param>
    <init-param>
       <param-name>forceEncoding</param-name>
       <param-value>true</param-value>
    </init-param>
  </filter>

  <filter>
    <filter-name>springSecurityFilterChain</filter-name>
    <filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class>
  </filter>

  <filter>
    <filter-name>struts</filter-name>
    <filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-class>
  </filter>

  <filter>
    <filter-name>ResponseHeaderFilter</filter-name>
    <filter-class>com.gulon.frontend.web.filter.ResponseHeaderFilter</filter-class>
    <init-param>
       <param-name>Cache-Control</param-name>
       <param-value>no-store</param-value>
    </init-param>
    <init-param>
       <param-name>Pragma</param-name>
       <param-value>no-cache</param-value>
    </init-param>
    <init-param>
       <param-name>Expires</param-name>
       <param-value>0</param-value>
    </init-param>
  </filter>

  <filter-mapping>
    <filter-name>ResponseHeaderFilter</filter-name>
    <url-pattern>/*</url-pattern>
  </filter-mapping>

  <filter-mapping>
    <filter-name>CharacterEncodingFilter</filter-name>
    <url-pattern>/*</url-pattern>
  </filter-mapping>

  <filter-mapping>
    <filter-name>springSecurityFilterChain</filter-name>
    <url-pattern>/*</url-pattern>
  </filter-mapping>

  <filter-mapping>
    <filter-name>struts</filter-name>
    <url-pattern>*.action</url-pattern>
  </filter-mapping>

  <welcome-file-list>
    <welcome-file>/WEB-INF/jsp/index.jsp</welcome-file>
  </welcome-file-list>

</web-app>

-------- Original-Nachricht --------
> Datum: Tue, 22 Jul 2008 09:56:05 +0200
> Von: Mendrik@(protected)
> An: "Struts Users Mailing List" <user@(protected)>
> Betreff: Re: Setters not working

> I copied the most relevant pieces into the attached file.
>
> Thanks for your time,
> Andreas!
>
> -------- Original-Nachricht --------
> > Datum: Tue, 22 Jul 2008 09:26:36 +0200
> > Von: "Lukasz Lenart" <lukasz.lenart@(protected)>
> > An: "Struts Users Mailing List" <user@(protected)>
> > Betreff: Re: Setters not working
>
> > Hi,
> >
> > Could you paste here some examples of your code and config?
> >
> >
> > Regards
> > --
> > Lukasz
> > http://www.lenart.org.pl/
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@(protected)
> > For additional commands, e-mail: user-help@(protected)
>
> --
> Ist Ihr Browser Vista-kompatibel? Jetzt die neuesten
> Browser-Versionen downloaden: http://www.gmx.net/de/go/browser

--
GMX startet ShortView.de. Hier findest Du Leute mit Deinen Interessen!
Jetzt dabei sein: http://www.shortview.de/wasistshortview.php?mc=sv_ext_mf@(protected)

Attachment: user_189156.ezm (zipped)
Hi,

Everything looks ok, try to configure also your actions with Spring
[1], I had some simmliary problem when I enabled transaction handling
with Spring, Spring could not inject dependencies because of multiple
class names or something.

[1] http://struts.apache.org/2.1.2/docs/spring-plugin.html


Regards
--
Lukasz
http://www.lenart.org.pl/

Attachment: user_189157.ezm (zipped)
When I disable my transaction manager...the setters suddenly work again.
That's a good point to start digging.
Thanks and dziekuje :)

-------- Original-Nachricht --------
> Datum: Tue, 22 Jul 2008 10:43:36 +0200
> Von: "Lukasz Lenart" <lukasz.lenart@(protected)>
> An: "Struts Users Mailing List" <user@(protected)>
> Betreff: Re: Setters not working

> Hi,
>
> Everything looks ok, try to configure also your actions with Spring
> [1], I had some simmliary problem when I enabled transaction handling
> with Spring, Spring could not inject dependencies because of multiple
> class names or something.
>
> [1] http://struts.apache.org/2.1.2/docs/spring-plugin.html
>
>
> Regards
> --
> Lukasz
> http://www.lenart.org.pl/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)

--
Psssst! Schon vom neuen GMX MultiMessenger gehört?
Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger

Attachment: user_189155.ezm (zipped)
Burak Doğruöz wrote:
> I don't think that it can be done with an ajax approach. With ajax or not,
> concurrent requests for the same action name returns first action's result.
>
> I tried this simple scenario with an action which outputs its query
> parameter. I also added a thread.sleep in execute method to gain extra time
> to call the same action more than once.
>
> When i triggered the same action with different parameters in 2 separate
> browsers, first one redirected to the wait page as expected. At that point i
> triggered the second copy. When they both returned from wait page, both
> output were first action's parameter.
>
> I think ajax/div approach would show the same behaviour with the above.
>
>  
If you're using ajax, forget the wait page and redirection paradigm.

One async request maps to one action instance in one thread. There's no
interference or coupling between action instances at all in S2 unless
you introduce the coupling yourself
(or use the exec&wait interceptor).

The "waiting page" would instead be a client-side controlled indicator
displayed while waiting for the async response. It's a common pattern
intended for exactly what you're trying to do when javascript is available.





Attachment: user_189158.ezm (zipped)

Hi konference

I am already helpless.
How can I test the property in <s:if tag?

-----------------------------------------------------
<s:iterator id="comp" value="%{components}">
       
       <s:property value="%{sort}" />            
                     
       <s:if test='%{#sort eq "PRODUCT"}'>
          OK
       </s:if>
       
</s:iterator>

----------------------------------
Thanks a lot.

-----
Tomas Jurman
Czech Republic
--
Sent from the Struts - User mailing list archive at Nabble.com.


Attachment: user_189159.ezm (zipped)
<s:property /> is like out.println(). It is useful for printing
(outputs) some value, but not to store a value.

To store a value in to the value stack (coz this is S2), you may use
<s:set name="" value="" /> where the name attribute indicates the name
of the variable and the value indicates the value to be store. You may
use another attribute 'scope' to tell the scope of the variable. Ref
http://struts.apache.org/2.x/docs/set.html

Ex:

<s:set name="flag" value="true" />

<s:if test="#flag">
  <%-- Write your code here --%>
</s:if>

Here as the 'flag' variable is stored in the value stack, to access this
variable you will need to use the variable prefixed with #, like
#variableName

In some cases <s:push /> is useful. Please go through the doc for
<s:push /> which is used to push the current element into the top of the
value stack.

hope this helps.

ManiKanta



Kibo wrote:
> Hi konference
>
> I am already helpless.
> How can I test the property in <s:if tag?
>
> -----------------------------------------------------
> <s:iterator id="comp" value="%{components}">
>        
>         <s:property value="%{sort}" />            
>                      
>         <s:if test='%{#sort eq "PRODUCT"}'>
>           OK
>         </s:if>
>        
> </s:iterator>
>
> ----------------------------------
> Thanks a lot.
>
> -----
> Tomas Jurman
> Czech Republic
>  



********** DISCLAIMER **********
Information contained and transmitted by this E-MAIL is proprietary to
Sify Limited and is intended for use only by the individual or entity to
which it is addressed, and may contain information that is privileged,
confidential or exempt from disclosure under applicable law. If this is a
forwarded message, the content of this E-MAIL may not have been sent with
the authority of the Company. If you are not the intended recipient, an
agent of the intended recipient or a person responsible for delivering the
information to the named recipient, you are notified that any use,
distribution, transmission, printing, copying or dissemination of this
information in any way or in any manner is strictly prohibited. If you have
received this communication in error, please delete this mail & notify us
immediately at admin@(protected)

Attachment: user_189161.ezm (zipped)

Hi ManiKanta G

Thank for you replay. It help me.

But, the problem was in wrong return dateType.
The code below work correct.
-----------------------------------------------
<s:iterator value="%{page}">
     
       <s:property value="label" />
                               
       <s:if test="%{label eq 'item2'}">
          OK
       </s:if>
           
</s:iterator>
--------------------------------------

The failure was that property return another dateType and it equals with
String value.
<s:if test='%{#sort eq "PRODUCT"}'>

The property sort is enum - ComponentName sort;
Solve was etc:
<s:iterator id="comp" value="%{components}">
       
       <s:set name="sort" value="%{sort + ''}" />
                   
       <s:if test="%{#sort+'' eq 'PRODUCT'}">
          OK
       </s:if>
       
    </s:iterator>
--------------------------------------------------

Thanks a lot





ManiKanta G wrote:
>
> <s:property /> is like out.println(). It is useful for printing
> (outputs) some value, but not to store a value.
>
> To store a value in to the value stack (coz this is S2), you may use
> <s:set name="" value="" /> where the name attribute indicates the name
> of the variable and the value indicates the value to be store. You may
> use another attribute 'scope' to tell the scope of the variable. Ref
> http://struts.apache.org/2.x/docs/set.html
>
> Ex:
>
> <s:set name="flag" value="true" />
>
> <s:if test="#flag">
>   <%-- Write your code here --%>
> </s:if>
>
> Here as the 'flag' variable is stored in the value stack, to access this
> variable you will need to use the variable prefixed with #, like
> #variableName
>
> In some cases <s:push /> is useful. Please go through the doc for
> <s:push /> which is used to push the current element into the top of the
> value stack.
>
> hope this helps.
>
> ManiKanta
>
>
>
> Kibo wrote:
>> Hi konference
>>
>> I am already helpless.
>> How can I test the property in <s:if tag?
>>
>> -----------------------------------------------------
>> <s:iterator id="comp" value="%{components}">
>>        
>>         <s:property value="%{sort}" />            
>>                      
>>         <s:if test='%{#sort eq "PRODUCT"}'>
>>           OK
>>         </s:if>
>>        
>> </s:iterator>
>>
>> ----------------------------------
>> Thanks a lot.
>>
>> -----
>> Tomas Jurman
>> Czech Republic
>>  
>
>
>
> ********** DISCLAIMER **********
> Information contained and transmitted by this E-MAIL is proprietary to
> Sify Limited and is intended for use only by the individual or entity to
> which it is addressed, and may contain information that is privileged,
> confidential or exempt from disclosure under applicable law. If this is a
> forwarded message, the content of this E-MAIL may not have been sent with
> the authority of the Company. If you are not the intended recipient, an
> agent of the intended recipient or a person responsible for delivering
> the
> information to the named recipient, you are notified that any use,
> distribution, transmission, printing, copying or dissemination of this
> information in any way or in any manner is strictly prohibited. If you
> have
> received this communication in error, please delete this mail & notify us
> immediately at admin@(protected)
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
>


-----
Tomas Jurman
Czech Republic
--
Sent from the Struts - User mailing list archive at Nabble.com.


Attachment: user_189162.ezm (zipped)
Hi,

I think 'sort' value is available from action class. If yes, when it is
directly available from action, you do not need to use <s:set />. U can
use the value from action itself.

ManiKanta


Kibo wrote:
> Hi ManiKanta G
>
> Thank for you replay. It help me.
>
> But, the problem was in wrong return dateType.
> The code below work correct.
> -----------------------------------------------
> <s:iterator value="%{page}">
>      
>         <s:property value="label" />
>                                  
>         <s:if test="%{label eq 'item2'}">
>           OK
>         </s:if>
>              
> </s:iterator>
> --------------------------------------
>
> The failure was that property return another dateType and it equals with
> String value.
> <s:if test='%{#sort eq "PRODUCT"}'>
>
> The property sort is enum - ComponentName sort;
> Solve was etc:
> <s:iterator id="comp" value="%{components}">
>        
>         <s:set name="sort" value="%{sort + ''}" />
>                    
>         <s:if test="%{#sort+'' eq 'PRODUCT'}">
>           OK
>         </s:if>
>        
>      </s:iterator>
> --------------------------------------------------
>
> Thanks a lot
>
>
>
>
>
> ManiKanta G wrote:
>  
>> <s:property /> is like out.println(). It is useful for printing
>> (outputs) some value, but not to store a value.
>>
>> To store a value in to the value stack (coz this is S2), you may use
>> <s:set name="" value="" /> where the name attribute indicates the name
>> of the variable and the value indicates the value to be store. You may
>> use another attribute 'scope' to tell the scope of the variable. Ref
>> http://struts.apache.org/2.x/docs/set.html
>>
>> Ex:
>>
>> <s:set name="flag" value="true" />
>>
>> <s:if test="#flag">
>>   <%-- Write your code here --%>
>> </s:if>
>>
>> Here as the 'flag' variable is stored in the value stack, to access this
>> variable you will need to use the variable prefixed with #, like
>> #variableName
>>
>> In some cases <s:push /> is useful. Please go through the doc for
>> <s:push /> which is used to push the current element into the top of the
>> value stack.
>>
>> hope this helps.
>>
>> ManiKanta
>>
>>
>>
>> Kibo wrote:
>>  
>>> Hi konference
>>>
>>> I am already helpless.
>>> How can I test the property in <s:if tag?
>>>
>>> -----------------------------------------------------
>>> <s:iterator id="comp" value="%{components}">
>>>        
>>>         <s:property value="%{sort}" />            
>>>                      
>>>         <s:if test='%{#sort eq "PRODUCT"}'>
>>>           OK
>>>         </s:if>
>>>        
>>> </s:iterator>
>>>
>>> ----------------------------------
>>> Thanks a lot.
>>>
>>> -----
>>> Tomas Jurman
>>> Czech Republic
>>>  
>>>    
>>
>> ********** DISCLAIMER **********
>> Information contained and transmitted by this E-MAIL is proprietary to
>> Sify Limited and is intended for use only by the individual or entity to
>> which it is addressed, and may contain information that is privileged,
>> confidential or exempt from disclosure under applicable law. If this is a
>> forwarded message, the content of this E-MAIL may not have been sent with
>> the authority of the Company. If you are not the intended recipient, an
>> agent of the intended recipient or a person responsible for delivering
>> the
>> information to the named recipient, you are notified that any use,
>> distribution, transmission, printing, copying or dissemination of this
>> information in any way or in any manner is strictly prohibited. If you
>> have
>> received this communication in error, please delete this mail & notify us
>> immediately at admin@(protected)
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>> For additional commands, e-mail: user-help@(protected)
>>
>>
>>
>>  
>
>
> -----
> Tomas Jurman
> Czech Republic
>  


Attachment: user_189160.ezm (zipped)
Pranav wrote:
> Hi,
>
> I am using <s:head theme="ajax"/> in my jsp files. I have included everything as per struts2 docs. But when I launch the page in FireFox, they show me 404 errors for several javascript files.
> Example are:
> ../struts/dojo/src/i18n/calendar/nls/en-us/gregorian.js
> ../struts/dojo/src/i18n/calendar/nls/en/gregorianExtras.js
> ../struts/dojo/src/i18n/calendar/nls/en-us/gregorianExtras.js
> ../struts/dojo/src/widget/nls/en/TimePicker.js
> ../struts/dojo/src/widget/nls/en-us/TimePicker.js
> ../mcpages/struts/dojo/src/widget/nls/en/DropdownTimePicker.js
> ../struts/dojo/src/widget/nls/en-us/DropdownTimePicker.js
>
> When I opened the struts2-core-2.0.11.jar file that my project is using, I did not find these files at all. I am not using any of these components like date-time picker or calendar objects but for some reason dojo plugin tries to GET these files. This gives a lot of problem in our pre-prod system where firewalls and proxies are installed. Can someone please help me get rid of these errors? What will I have to do? I will really appreciate help from experts.
>
> Thanks
> Pranav
>
>
>  

In Struts 2.0.x, the files are bundled in the jar under
org/apache/struts/static or somewhere nearby.

The are served by the struts filter only if the filter path enables it
(eg. /*) and if the property struts.serve.static=true (default true).

In a production system, it's a very good idea to extract the files and
serve them directly from Apache or your container as there'll be a
significant performance improvement (very significant if apache serves
them).

I'm not sure why it would be loading the timepicker and date picker if
you're not using them - check the html to see why there's a Requires
statement.

In a production system, a good idea to create a custom dojo profile (in
this case, for example, to remove locale files). It makes a massive
performance improvement by reducing the large number of GETs.

http://cwiki.apache.org/S2WIKI/creating-a-custom-dojo-profile-for-struts-20x.html

Hope that helps.
Jeromy Evans
©2008 gg3721.com - Jax Systems, LLC, U.S.A.