Java Mailing List Archive

http://www.gg3721.com/

Home » Struts Users Mailing List »

user Digest 14 Jul 2009 11:46:51 -0000 Issue 8750

user-digest-help

2009-07-14


Author LoginPost Reply

user Digest 14 Jul 2009 11:46:51 -0000 Issue 8750

Topics (messages 200690 through 200704):

Re: Migration from Struts1 to Struts2
 200690 by: Lasantha Pambagoda
 200697 by: Dave Newton
 200698 by: Lasantha Pambagoda
 200699 by: Lasantha Pambagoda
 200701 by: Wim De Smet
 200704 by: Lasantha Pambagoda

Re: exception :java.lang.NoClassDefFoundError: org/apache/commons/digester/RuleSet
 200691 by: Lukasz Lenart

JSON Plugin and S:Action
 200692 by: Chris Pratt

Update file problem..
 200693 by: hilal ceyhan

How to define style for onselect attribute of <s:a> tag
 200694 by: taj uddin
 200695 by: taj uddin
 200696 by: taj uddin

Re: Uploading large files
 200700 by: Daniele Development-ML

Ajax Validation has bug with <sx:tabbedpanel> tag when Form is "simple" theme
 200702 by: Yuan12345
 200703 by: Yuan12345

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_200690.ezm (zipped)
Dear Martin,

Thanks for your link, We have went through the document and here are
the description on each item described in document.

1) Turn off logging and devMode - Already done this.
2) Use the Java Templates - Since we are not using struts tags this is
not applicable (right now we are only using struts only fore
dispatching purpose, our jsp's only use plain "c:out" tags).
3) Do not use interceptors you do not need. - We are not using any
struts interceptors.
4) Use the correct HTTP headers (Cache-Control & Expires) - We are not
using browser caching for html generated from JSP.
5) Copy the static content from the Struts 2 jar when using the Ajax
theme (Dojo) or the Calendar tag - We are not using ajax theme or
calendar tag.
6) Create a freemarker.properties file in your WEB-INF/classes
directory - We are not using Freemarker
7) Enable Freemarker template caching - We are not using freemaker
8) When overriding a theme, copy all necessary templates to the theme
directory - We are not overriding themes.
9) Do not create sessions unless you need them - We are not creating
sessions using struts2.
10) When using Freemarker, try to use the Freemarker equivalent rather
than using the JSP tags - We are not using any Freemarker
functionalities.

As further explanation we are only using sturs2 only for dispatching
purposes, Our action classes are simple like this.

@Namespace(S2Constants.Namespace.PRIVATE)
@Results ( {
 @Result(name=S2Constants.Result.SUCCESS,
value=S2Constants.Jsp.MY_SUCCESS_JSP_FILE),
 @Result(name=S2Constants.Result.ERROR, value=S2Constants.Jsp.MY_ERROR_JSP_FILE)
})
public class MyAction implements ServletRequestAware {

 protected HttpServletRequest request;

 public void setServletRequest(HttpServletRequest request) {
   this.request = request;
 }

 public String execute() {
    return MyRequestHandler.execute(request);
  }
}

And out struts.xml file is like this.

<struts>

  <constant name="struts.enable.DynamicMethodInvocation" value="true" />
  <constant name="struts.devMode" value="false" />
</struts>

Finally here is the web.xml configurations


  <filter>
    <filter-name>struts2</filter-name>
    <filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-class>
   <init-param>
    <param-name>config</param-name>
    <param-value>struts-default.xml,struts-plugin.xml,resources/struts2/struts.xml</param-value>
   </init-param>
    <init-param>
      <param-name>actionPackages</param-name>
      <param-value>com.myapplication.core.web.action</param-value>
    </init-param>    
  </filter>


  <filter-mapping>
    <filter-name>struts2</filter-name>
    <url-pattern>*.action</url-pattern>
    <dispatcher>REQUEST</dispatcher>
     <dispatcher>FORWARD</dispatcher>
  </filter-mapping>


Additionally we have added two more servers in to our production
servers to avoid overloading. But still its getting overloaded time to
time. Same application before struts2 migration we managed to keep the
system in good health with two servers. (now we are having 4 servers
load balanced by hardware load balancer)

Really appreciate if anyone can help regarding this struts2 CPU
utilization issue.

Best Regards
Lasantha


On Mon, Jul 13, 2009 at 6:56 PM, Martin Gainty<mgainty@(protected):
>
> take a look at tuning tips described at
> http://cwiki.apache.org/WW/performance-tuning.html
>
> ping back for questions/concerns
> Martin
> ______________________________________________
> Verzicht und Vertraulichkeitanmerkung
>
> Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.
>
>
>
>
>
>
>> Date: Mon, 13 Jul 2009 06:31:34 -0700
>> From: tajuddin19@(protected)
>> Subject: Re: Migration from Struts1 to Struts2
>> To: user@(protected)
>>
>> I'm not sure but do pls check out by including the sitemesh-2.3.jar file and xwork-2.0.6.jar file in your library
>>
>> --- On Mon, 7/13/09, Lasantha Pambagoda <lpambagoda@(protected):
>>
>>
>> From: Lasantha Pambagoda <lpambagoda@(protected)>
>> Subject: Migration from Struts1 to Struts2
>> To: user@(protected)
>> Date: Monday, July 13, 2009, 6:33 AM
>>
>>
>> Hi,
>>
>> We have migrated struts1 application to struts2. But now once we
>> deployed the system the CPU is going 90% to 100% and system is getting
>> loaded. In JSP's we are not using struts specific tags or freemaker
>> templates. Our JSP files are just plain jsp files only with
>> requstScope variables.
>>
>> We are using following versions of struts and dependent libraries.
>>
>> struts2-core-2.1.6.jar
>> struts2-codebehind-plugin-2.1.6.jar
>> ognl-2.6.11.jar
>> freemarker-2.3.13.jar
>>
>> Please let me know if we can do any improvement with out switching
>> back to struts1
>>
>> Kind Regards
>> Lasantha
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>> For additional commands, e-mail: user-help@(protected)
>>
>>
>>
>>
>>
>
> _________________________________________________________________
> Bing™ finds low fares by predicting when to book. Try it now.
> http://www.bing.com/travel/deals/airline-ticket-deals.do?form=MTRHPG&publ=WLHMTAG&crea=TXT_MTRHPG_Travel_Travel_TravelDeals_1x1


Attachment: user_200697.ezm (zipped)
I may have missed it, but providing the server you're using would be
helpful.

Dave

Lasantha Pambagoda wrote:
> Dear Martin,
>
> Thanks for your link, We have went through the document and here are
> the description on each item described in document.
>
> 1) Turn off logging and devMode - Already done this.
> 2) Use the Java Templates - Since we are not using struts tags this is
> not applicable (right now we are only using struts only fore
> dispatching purpose, our jsp's only use plain "c:out" tags).
> 3) Do not use interceptors you do not need. - We are not using any
> struts interceptors.
> 4) Use the correct HTTP headers (Cache-Control & Expires) - We are not
> using browser caching for html generated from JSP.
> 5) Copy the static content from the Struts 2 jar when using the Ajax
> theme (Dojo) or the Calendar tag - We are not using ajax theme or
> calendar tag.
> 6) Create a freemarker.properties file in your WEB-INF/classes
> directory - We are not using Freemarker
> 7) Enable Freemarker template caching - We are not using freemaker
> 8) When overriding a theme, copy all necessary templates to the theme
> directory - We are not overriding themes.
> 9) Do not create sessions unless you need them - We are not creating
> sessions using struts2.
> 10) When using Freemarker, try to use the Freemarker equivalent rather
> than using the JSP tags - We are not using any Freemarker
> functionalities.
>
> As further explanation we are only using sturs2 only for dispatching
> purposes, Our action classes are simple like this.
>
> @Namespace(S2Constants.Namespace.PRIVATE)
> @Results ( {
>  @Result(name=S2Constants.Result.SUCCESS,
> value=S2Constants.Jsp.MY_SUCCESS_JSP_FILE),
>  @Result(name=S2Constants.Result.ERROR, value=S2Constants.Jsp.MY_ERROR_JSP_FILE)
> })
> public class MyAction implements ServletRequestAware {
>
>  protected HttpServletRequest request;
>
>  public void setServletRequest(HttpServletRequest request) {
>    this.request = request;
>  }
>
>  public String execute() {
>      return MyRequestHandler.execute(request);
>   }
> }
>
> And out struts.xml file is like this.
>
> <struts>
>
>   <constant name="struts.enable.DynamicMethodInvocation" value="true" />
>   <constant name="struts.devMode" value="false" />
> </struts>
>
> Finally here is the web.xml configurations
>
>
>   <filter>
>      <filter-name>struts2</filter-name>
>      <filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-class>
>    <init-param>
>     <param-name>config</param-name>
>     <param-value>struts-default.xml,struts-plugin.xml,resources/struts2/struts.xml</param-value>
>    </init-param>
>     <init-param>
>       <param-name>actionPackages</param-name>
>       <param-value>com.myapplication.core.web.action</param-value>
>     </init-param>    
>   </filter>
>
>
>   <filter-mapping>
>      <filter-name>struts2</filter-name>
>      <url-pattern>*.action</url-pattern>
>      <dispatcher>REQUEST</dispatcher>
>      <dispatcher>FORWARD</dispatcher>
>   </filter-mapping>
>
>
> Additionally we have added two more servers in to our production
> servers to avoid overloading. But still its getting overloaded time to
> time. Same application before struts2 migration we managed to keep the
> system in good health with two servers. (now we are having 4 servers
> load balanced by hardware load balancer)
>
> Really appreciate if anyone can help regarding this struts2 CPU
> utilization issue.
>
> Best Regards
> Lasantha
>
>
> On Mon, Jul 13, 2009 at 6:56 PM, Martin Gainty<mgainty@(protected):
>> take a look at tuning tips described at
>> http://cwiki.apache.org/WW/performance-tuning.html
>>
>> ping back for questions/concerns
>> Martin
>> ______________________________________________
>> Verzicht und Vertraulichkeitanmerkung
>>
>> Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.
>>
>>
>>
>>
>>
>>
>>> Date: Mon, 13 Jul 2009 06:31:34 -0700
>>> From: tajuddin19@(protected)
>>> Subject: Re: Migration from Struts1 to Struts2
>>> To: user@(protected)
>>>
>>> I'm not sure but do pls check out by including the sitemesh-2.3.jar file and xwork-2.0.6.jar file in your library
>>>
>>> --- On Mon, 7/13/09, Lasantha Pambagoda <lpambagoda@(protected):
>>>
>>>
>>> From: Lasantha Pambagoda <lpambagoda@(protected)>
>>> Subject: Migration from Struts1 to Struts2
>>> To: user@(protected)
>>> Date: Monday, July 13, 2009, 6:33 AM
>>>
>>>
>>> Hi,
>>>
>>> We have migrated struts1 application to struts2. But now once we
>>> deployed the system the CPU is going 90% to 100% and system is getting
>>> loaded. In JSP's we are not using struts specific tags or freemaker
>>> templates. Our JSP files are just plain jsp files only with
>>> requstScope variables.
>>>
>>> We are using following versions of struts and dependent libraries.
>>>
>>> struts2-core-2.1.6.jar
>>> struts2-codebehind-plugin-2.1.6.jar
>>> ognl-2.6.11.jar
>>> freemarker-2.3.13.jar
>>>
>>> Please let me know if we can do any improvement with out switching
>>> back to struts1
>>>
>>> Kind Regards
>>> Lasantha
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>>> For additional commands, e-mail: user-help@(protected)
>>>
>>>
>>>
>>>
>>>
>> _________________________________________________________________
>> Bing™ finds low fares by predicting when to book. Try it now.
>> http://www.bing.com/travel/deals/airline-ticket-deals.do?form=MTRHPG&publ=WLHMTAG&crea=TXT_MTRHPG_Travel_Travel_TravelDeals_1x1
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>


Attachment: user_200698.ezm (zipped)
Dear Dave,

We are using JBoss Application Server of 4.2.3 GA release.

Best Regards
Lasantha

On Tue, Jul 14, 2009 at 2:18 PM, Dave Newton<newton.dave@(protected):
> I may have missed it, but providing the server you're using would be
> helpful.
>
> Dave
>
> Lasantha Pambagoda wrote:
>>
>> Dear Martin,
>>
>> Thanks for your link, We have went through the document and here are
>> the description on each item described in document.
>>
>> 1) Turn off logging and devMode - Already done this.
>> 2) Use the Java Templates - Since we are not using struts tags this is
>> not applicable (right now we are only using struts only fore
>> dispatching purpose, our jsp's only use plain "c:out" tags).
>> 3) Do not use interceptors you do not need. - We are not using any
>> struts interceptors.
>> 4) Use the correct HTTP headers (Cache-Control & Expires) - We are not
>> using browser caching for html generated from JSP.
>> 5) Copy the static content from the Struts 2 jar when using the Ajax
>> theme (Dojo) or the Calendar tag - We are not using ajax theme or
>> calendar tag.
>> 6) Create a freemarker.properties file in your WEB-INF/classes
>> directory - We are not using Freemarker
>> 7) Enable Freemarker template caching - We are not using freemaker
>> 8) When overriding a theme, copy all necessary templates to the theme
>> directory - We are not overriding themes.
>> 9) Do not create sessions unless you need them - We are not creating
>> sessions using struts2.
>> 10) When using Freemarker, try to use the Freemarker equivalent rather
>> than using the JSP tags - We are not using any Freemarker
>> functionalities.
>>
>> As further explanation we are only using sturs2 only for dispatching
>> purposes, Our action classes are simple like this.
>>
>> @Namespace(S2Constants.Namespace.PRIVATE)
>> @Results ( {
>>        @(protected),
>> value=S2Constants.Jsp.MY_SUCCESS_JSP_FILE),
>>        @(protected),
>> value=S2Constants.Jsp.MY_ERROR_JSP_FILE)
>> })
>> public class MyAction implements ServletRequestAware {
>>
>>        protected HttpServletRequest request;
>>
>>        public void setServletRequest(HttpServletRequest request) {
>>                this.request = request;
>>        }
>>
>>        public String execute() {
>>        return MyRequestHandler.execute(request);
>>    }
>> }
>>
>> And out struts.xml file is like this.
>>
>> <struts>
>>
>>    <constant name="struts.enable.DynamicMethodInvocation" value="true" />
>>    <constant name="struts.devMode" value="false" />
>> </struts>
>>
>> Finally here is the web.xml configurations
>>
>>
>>    <filter>
>>        <filter-name>struts2</filter-name>
>>
>>  <filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-class>
>>                <init-param>
>>                  <param-name>config</param-name>
>>
>>  <param-value>struts-default.xml,struts-plugin.xml,resources/struts2/struts.xml</param-value>
>>                </init-param>
>>            <init-param>
>>                <param-name>actionPackages</param-name>
>>
>>  <param-value>com.myapplication.core.web.action</param-value>
>>            </init-param>
>>    </filter>
>>
>>
>>    <filter-mapping>
>>        <filter-name>struts2</filter-name>
>>        <url-pattern>*.action</url-pattern>
>>        <dispatcher>REQUEST</dispatcher>
>>                <dispatcher>FORWARD</dispatcher>
>>    </filter-mapping>
>>
>>
>> Additionally we have added two more servers in to our production
>> servers to avoid overloading. But still its getting overloaded time to
>> time. Same application before struts2 migration we managed to keep the
>> system in good health with two servers. (now we are having 4 servers
>> load balanced by hardware load balancer)
>>
>> Really appreciate if anyone can help regarding this struts2 CPU
>> utilization issue.
>>
>> Best Regards
>> Lasantha
>>
>>
>> On Mon, Jul 13, 2009 at 6:56 PM, Martin Gainty<mgainty@(protected):
>>>
>>> take a look at tuning tips described at
>>> http://cwiki.apache.org/WW/performance-tuning.html
>>>
>>> ping back for questions/concerns
>>> Martin
>>> ______________________________________________
>>> Verzicht und Vertraulichkeitanmerkung
>>>
>>> Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene
>>> Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte
>>> Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht
>>> dient lediglich dem Austausch von Informationen und entfaltet keine
>>> rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von
>>> E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.
>>>
>>>
>>>
>>>
>>>
>>>
>>>> Date: Mon, 13 Jul 2009 06:31:34 -0700
>>>> From: tajuddin19@(protected)
>>>> Subject: Re: Migration from Struts1 to Struts2
>>>> To: user@(protected)
>>>>
>>>> I'm not sure but do pls check out by including the sitemesh-2.3.jar file
>>>> and xwork-2.0.6.jar file in your library
>>>>
>>>> --- On Mon, 7/13/09, Lasantha Pambagoda <lpambagoda@(protected):
>>>>
>>>>
>>>> From: Lasantha Pambagoda <lpambagoda@(protected)>
>>>> Subject: Migration from Struts1 to Struts2
>>>> To: user@(protected)
>>>> Date: Monday, July 13, 2009, 6:33 AM
>>>>
>>>>
>>>> Hi,
>>>>
>>>> We have migrated struts1 application to struts2. But now once we
>>>> deployed the system the CPU is going 90% to 100% and system is getting
>>>> loaded. In JSP's we are not using struts specific tags or freemaker
>>>> templates. Our JSP files are just plain jsp files only with
>>>> requstScope variables.
>>>>
>>>> We are using following versions of struts and dependent libraries.
>>>>
>>>> struts2-core-2.1.6.jar
>>>> struts2-codebehind-plugin-2.1.6.jar
>>>> ognl-2.6.11.jar
>>>> freemarker-2.3.13.jar
>>>>
>>>> Please let me know if we can do any improvement with out switching
>>>> back to struts1
>>>>
>>>> Kind Regards
>>>> Lasantha
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>>>> For additional commands, e-mail: user-help@(protected)
>>>>
>>>>
>>>>
>>>>
>>>>
>>> _________________________________________________________________
>>> Bing™ finds low fares by predicting when to book. Try it now.
>>>
>>> http://www.bing.com/travel/deals/airline-ticket-deals.do?form=MTRHPG&publ=WLHMTAG&crea=TXT_MTRHPG_Travel_Travel_TravelDeals_1x1
>>
>> ---------------------------------------------------------------------
>> 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)
>
>


Attachment: user_200699.ezm (zipped)
Dear Dave,

We are using JBoss Application Server of 4.2.3 GA release.

Best Regards
Lasantha

On Tue, Jul 14, 2009 at 2:18 PM, Dave Newton<newton.dave@(protected):
> I may have missed it, but providing the server you're using would be
> helpful.
>
> Dave
>
> Lasantha Pambagoda wrote:
>>
>> Dear Martin,
>>
>> Thanks for your link, We have went through the document and here are
>> the description on each item described in document.
>>
>> 1) Turn off logging and devMode - Already done this.
>> 2) Use the Java Templates - Since we are not using struts tags this is
>> not applicable (right now we are only using struts only fore
>> dispatching purpose, our jsp's only use plain "c:out" tags).
>> 3) Do not use interceptors you do not need. - We are not using any
>> struts interceptors.
>> 4) Use the correct HTTP headers (Cache-Control & Expires) - We are not
>> using browser caching for html generated from JSP.
>> 5) Copy the static content from the Struts 2 jar when using the Ajax
>> theme (Dojo) or the Calendar tag - We are not using ajax theme or
>> calendar tag.
>> 6) Create a freemarker.properties file in your WEB-INF/classes
>> directory - We are not using Freemarker
>> 7) Enable Freemarker template caching - We are not using freemaker
>> 8) When overriding a theme, copy all necessary templates to the theme
>> directory - We are not overriding themes.
>> 9) Do not create sessions unless you need them - We are not creating
>> sessions using struts2.
>> 10) When using Freemarker, try to use the Freemarker equivalent rather
>> than using the JSP tags - We are not using any Freemarker
>> functionalities.
>>
>> As further explanation we are only using sturs2 only for dispatching
>> purposes, Our action classes are simple like this.
>>
>> @Namespace(S2Constants.Namespace.PRIVATE)
>> @Results ( {
>>        @(protected),
>> value=S2Constants.Jsp.MY_SUCCESS_JSP_FILE),
>>        @(protected),
>> value=S2Constants.Jsp.MY_ERROR_JSP_FILE)
>> })
>> public class MyAction implements ServletRequestAware {
>>
>>        protected HttpServletRequest request;
>>
>>        public void setServletRequest(HttpServletRequest request) {
>>                this.request = request;
>>        }
>>
>>        public String execute() {
>>        return MyRequestHandler.execute(request);
>>    }
>> }
>>
>> And out struts.xml file is like this.
>>
>> <struts>
>>
>>    <constant name="struts.enable.DynamicMethodInvocation" value="true" />
>>    <constant name="struts.devMode" value="false" />
>> </struts>
>>
>> Finally here is the web.xml configurations
>>
>>
>>    <filter>
>>        <filter-name>struts2</filter-name>
>>
>>  <filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-class>
>>                <init-param>
>>                  <param-name>config</param-name>
>>
>>  <param-value>struts-default.xml,struts-plugin.xml,resources/struts2/struts.xml</param-value>
>>                </init-param>
>>            <init-param>
>>                <param-name>actionPackages</param-name>
>>
>>  <param-value>com.myapplication.core.web.action</param-value>
>>            </init-param>
>>    </filter>
>>
>>
>>    <filter-mapping>
>>        <filter-name>struts2</filter-name>
>>        <url-pattern>*.action</url-pattern>
>>        <dispatcher>REQUEST</dispatcher>
>>                <dispatcher>FORWARD</dispatcher>
>>    </filter-mapping>
>>
>>
>> Additionally we have added two more servers in to our production
>> servers to avoid overloading. But still its getting overloaded time to
>> time. Same application before struts2 migration we managed to keep the
>> system in good health with two servers. (now we are having 4 servers
>> load balanced by hardware load balancer)
>>
>> Really appreciate if anyone can help regarding this struts2 CPU
>> utilization issue.
>>
>> Best Regards
>> Lasantha
>>
>>
>> On Mon, Jul 13, 2009 at 6:56 PM, Martin Gainty<mgainty@(protected):
>>>
>>> take a look at tuning tips described at
>>> http://cwiki.apache.org/WW/performance-tuning.html
>>>
>>> ping back for questions/concerns
>>> Martin
>>> ______________________________________________
>>> Verzicht und Vertraulichkeitanmerkung
>>>
>>> Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene
>>> Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte
>>> Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht
>>> dient lediglich dem Austausch von Informationen und entfaltet keine
>>> rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von
>>> E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.
>>>
>>>
>>>
>>>
>>>
>>>
>>>> Date: Mon, 13 Jul 2009 06:31:34 -0700
>>>> From: tajuddin19@(protected)
>>>> Subject: Re: Migration from Struts1 to Struts2
>>>> To: user@(protected)
>>>>
>>>> I'm not sure but do pls check out by including the sitemesh-2.3.jar file
>>>> and xwork-2.0.6.jar file in your library
>>>>
>>>> --- On Mon, 7/13/09, Lasantha Pambagoda <lpambagoda@(protected):
>>>>
>>>>
>>>> From: Lasantha Pambagoda <lpambagoda@(protected)>
>>>> Subject: Migration from Struts1 to Struts2
>>>> To: user@(protected)
>>>> Date: Monday, July 13, 2009, 6:33 AM
>>>>
>>>>
>>>> Hi,
>>>>
>>>> We have migrated struts1 application to struts2. But now once we
>>>> deployed the system the CPU is going 90% to 100% and system is getting
>>>> loaded. In JSP's we are not using struts specific tags or freemaker
>>>> templates. Our JSP files are just plain jsp files only with
>>>> requstScope variables.
>>>>
>>>> We are using following versions of struts and dependent libraries.
>>>>
>>>> struts2-core-2.1.6.jar
>>>> struts2-codebehind-plugin-2.1.6.jar
>>>> ognl-2.6.11.jar
>>>> freemarker-2.3.13.jar
>>>>
>>>> Please let me know if we can do any improvement with out switching
>>>> back to struts1
>>>>
>>>> Kind Regards
>>>> Lasantha
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>>>> For additional commands, e-mail: user-help@(protected)
>>>>
>>>>
>>>>
>>>>
>>>>
>>> _________________________________________________________________
>>> Bing™ finds low fares by predicting when to book. Try it now.
>>>
>>> http://www.bing.com/travel/deals/airline-ticket-deals.do?form=MTRHPG&publ=WLHMTAG&crea=TXT_MTRHPG_Travel_Travel_TravelDeals_1x1
>>
>> ---------------------------------------------------------------------
>> 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)
>
>


Attachment: user_200701.ezm (zipped)
Hi,

Lots of CPU activity could in some cases point to a memory problem
where the garbage collector is getting run a lot because the server is
very near memory exhaustion. Try monitoring memory usage and gc cycles
with the usual tools (jvisualvm, jstat) and work from there. I'm sure
there's a guide from sun somewhere on their site.

regards,
Wim

On Tue, Jul 14, 2009 at 12:30 PM, Lasantha
Pambagoda<lpambagoda@(protected):
> Dear Dave,
>
> We are using JBoss Application Server of  4.2.3 GA release.
>
> Best Regards
> Lasantha
>
> On Tue, Jul 14, 2009 at 2:18 PM, Dave Newton<newton.dave@(protected):
>> I may have missed it, but providing the server you're using would be
>> helpful.
>>
>> Dave
>>
>> Lasantha Pambagoda wrote:
>>>
>>> Dear Martin,
>>>
>>> Thanks for your link, We have went through the document and here are
>>> the description on each item described in document.
>>>
>>> 1) Turn off logging and devMode - Already done this.
>>> 2) Use the Java Templates - Since we are not using struts tags this is
>>> not applicable (right now we are only using struts only fore
>>> dispatching purpose, our jsp's only use plain "c:out" tags).
>>> 3) Do not use interceptors you do not need. - We are not using any
>>> struts interceptors.
>>> 4) Use the correct HTTP headers (Cache-Control & Expires) - We are not
>>> using browser caching for html generated from JSP.
>>> 5) Copy the static content from the Struts 2 jar when using the Ajax
>>> theme (Dojo) or the Calendar tag - We are not using ajax theme or
>>> calendar tag.
>>> 6) Create a freemarker.properties file in your WEB-INF/classes
>>> directory - We are not using Freemarker
>>> 7) Enable Freemarker template caching - We are not using freemaker
>>> 8) When overriding a theme, copy all necessary templates to the theme
>>> directory - We are not overriding themes.
>>> 9) Do not create sessions unless you need them - We are not creating
>>> sessions using struts2.
>>> 10) When using Freemarker, try to use the Freemarker equivalent rather
>>> than using the JSP tags - We are not using any Freemarker
>>> functionalities.
>>>
>>> As further explanation we are only using sturs2 only for dispatching
>>> purposes, Our action classes are simple like this.
>>>
>>> @Namespace(S2Constants.Namespace.PRIVATE)
>>> @Results ( {
>>>        @(protected),
>>> value=S2Constants.Jsp.MY_SUCCESS_JSP_FILE),
>>>        @(protected),
>>> value=S2Constants.Jsp.MY_ERROR_JSP_FILE)
>>> })
>>> public class MyAction implements ServletRequestAware {
>>>
>>>        protected HttpServletRequest request;
>>>
>>>        public void setServletRequest(HttpServletRequest request) {
>>>                this.request = request;
>>>        }
>>>
>>>        public String execute() {
>>>        return MyRequestHandler.execute(request);
>>>    }
>>> }
>>>
>>> And out struts.xml file is like this.
>>>
>>> <struts>
>>>
>>>    <constant name="struts.enable.DynamicMethodInvocation" value="true" />
>>>    <constant name="struts.devMode" value="false" />
>>> </struts>
>>>
>>> Finally here is the web.xml configurations
>>>
>>>
>>>    <filter>
>>>        <filter-name>struts2</filter-name>
>>>
>>>  <filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-class>
>>>                <init-param>
>>>                  <param-name>config</param-name>
>>>
>>>  <param-value>struts-default.xml,struts-plugin.xml,resources/struts2/struts.xml</param-value>
>>>                </init-param>
>>>            <init-param>
>>>                <param-name>actionPackages</param-name>
>>>
>>>  <param-value>com.myapplication.core.web.action</param-value>
>>>            </init-param>
>>>    </filter>
>>>
>>>
>>>    <filter-mapping>
>>>        <filter-name>struts2</filter-name>
>>>        <url-pattern>*.action</url-pattern>
>>>        <dispatcher>REQUEST</dispatcher>
>>>                <dispatcher>FORWARD</dispatcher>
>>>    </filter-mapping>
>>>
>>>
>>> Additionally we have added two more servers in to our production
>>> servers to avoid overloading. But still its getting overloaded time to
>>> time. Same application before struts2 migration we managed to keep the
>>> system in good health with two servers. (now we are having 4 servers
>>> load balanced by hardware load balancer)
>>>
>>> Really appreciate if anyone can help regarding this struts2 CPU
>>> utilization issue.
>>>
>>> Best Regards
>>> Lasantha
>>>
>>>
>>> On Mon, Jul 13, 2009 at 6:56 PM, Martin Gainty<mgainty@(protected):
>>>>
>>>> take a look at tuning tips described at
>>>> http://cwiki.apache.org/WW/performance-tuning.html
>>>>
>>>> ping back for questions/concerns
>>>> Martin
>>>> ______________________________________________
>>>> Verzicht und Vertraulichkeitanmerkung
>>>>
>>>> Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene
>>>> Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte
>>>> Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht
>>>> dient lediglich dem Austausch von Informationen und entfaltet keine
>>>> rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von
>>>> E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>> Date: Mon, 13 Jul 2009 06:31:34 -0700
>>>>> From: tajuddin19@(protected)
>>>>> Subject: Re: Migration from Struts1 to Struts2
>>>>> To: user@(protected)
>>>>>
>>>>> I'm not sure but do pls check out by including the sitemesh-2.3.jar file
>>>>> and xwork-2.0.6.jar file in your library
>>>>>
>>>>> --- On Mon, 7/13/09, Lasantha Pambagoda <lpambagoda@(protected):
>>>>>
>>>>>
>>>>> From: Lasantha Pambagoda <lpambagoda@(protected)>
>>>>> Subject: Migration from Struts1 to Struts2
>>>>> To: user@(protected)
>>>>> Date: Monday, July 13, 2009, 6:33 AM
>>>>>
>>>>>
>>>>> Hi,
>>>>>
>>>>> We have migrated struts1 application to struts2. But now once we
>>>>> deployed the system the CPU is going 90% to 100% and system is getting
>>>>> loaded. In JSP's we are not using struts specific tags or freemaker
>>>>> templates. Our JSP files are just plain jsp files only with
>>>>> requstScope variables.
>>>>>
>>>>> We are using following versions of struts and dependent libraries.
>>>>>
>>>>> struts2-core-2.1.6.jar
>>>>> struts2-codebehind-plugin-2.1.6.jar
>>>>> ognl-2.6.11.jar
>>>>> freemarker-2.3.13.jar
>>>>>
>>>>> Please let me know if we can do any improvement with out switching
>>>>> back to struts1
>>>>>
>>>>> Kind Regards
>>>>> Lasantha
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>>>>> For additional commands, e-mail: user-help@(protected)
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>> _________________________________________________________________
>>>> Bing™ finds low fares by predicting when to book. Try it now.
>>>>
>>>> http://www.bing.com/travel/deals/airline-ticket-deals.do?form=MTRHPG&publ=WLHMTAG&crea=TXT_MTRHPG_Travel_Travel_TravelDeals_1x1
>>>
>>> ---------------------------------------------------------------------
>>> 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)
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>


Attachment: user_200704.ezm (zipped)
Dear Wim,

We have been monitoring both memory and CPU usage, Interesting thing
is memory is normal and only CPU is coursing the problem after
migration.

Here are sample records of CUP usage and Memory Usage.

TIME      PID   CPU%   MEM%
06:03:12  26350  130.10 12.60
06:03:17  26350  135.80 12.60
06:03:23  26350  151.80 12.60
06:03:28  26350  137.80 12.60
06:03:34  26350  137.90 12.60
06:03:39  26350  132.00 12.60
06:03:45  26350  134.00 12.60
06:03:50  26350  119.90 12.60
06:03:56  26350  163.90 12.60
06:04:01  26350   64.00  12.60
06:04:24  26350  128.00 12.60
06:04:29  26350  124.00 12.60
06:04:35  26350  153.80 12.60
06:04:40  26350  138.00 12.60
06:04:46  26350  165.80 12.60
06:04:51  26350  139.80 12.60
06:04:57  26350  132.00 12.60
06:05:02  26350  129.70 12.60
06:05:08  26350  150.00 12.60
06:05:13  26350  143.70 12.60
06:05:19  26350  142.00 12.60

So its clear this is not due to excessive garbage collection. Any Idea ?

Kind Regards
Lasantha

On Tue, Jul 14, 2009 at 3:18 PM, Wim De Smet<kromagg@(protected):
> Hi,
>
> Lots of CPU activity could in some cases point to a memory problem
> where the garbage collector is getting run a lot because the server is
> very near memory exhaustion. Try monitoring memory usage and gc cycles
> with the usual tools  (jvisualvm, jstat) and work from there. I'm sure
> there's a guide from sun somewhere on their site.
>
> regards,
> Wim
>
> On Tue, Jul 14, 2009 at 12:30 PM, Lasantha
> Pambagoda<lpambagoda@(protected):
>> Dear Dave,
>>
>> We are using JBoss Application Server of  4.2.3 GA release.
>>
>> Best Regards
>> Lasantha
>>
>> On Tue, Jul 14, 2009 at 2:18 PM, Dave Newton<newton.dave@(protected):
>>> I may have missed it, but providing the server you're using would be
>>> helpful.
>>>
>>> Dave
>>>
>>> Lasantha Pambagoda wrote:
>>>>
>>>> Dear Martin,
>>>>
>>>> Thanks for your link, We have went through the document and here are
>>>> the description on each item described in document.
>>>>
>>>> 1) Turn off logging and devMode - Already done this.
>>>> 2) Use the Java Templates - Since we are not using struts tags this is
>>>> not applicable (right now we are only using struts only fore
>>>> dispatching purpose, our jsp's only use plain "c:out" tags).
>>>> 3) Do not use interceptors you do not need. - We are not using any
>>>> struts interceptors.
>>>> 4) Use the correct HTTP headers (Cache-Control & Expires) - We are not
>>>> using browser caching for html generated from JSP.
>>>> 5) Copy the static content from the Struts 2 jar when using the Ajax
>>>> theme (Dojo) or the Calendar tag - We are not using ajax theme or
>>>> calendar tag.
>>>> 6) Create a freemarker.properties file in your WEB-INF/classes
>>>> directory - We are not using Freemarker
>>>> 7) Enable Freemarker template caching - We are not using freemaker
>>>> 8) When overriding a theme, copy all necessary templates to the theme
>>>> directory - We are not overriding themes.
>>>> 9) Do not create sessions unless you need them - We are not creating
>>>> sessions using struts2.
>>>> 10) When using Freemarker, try to use the Freemarker equivalent rather
>>>> than using the JSP tags - We are not using any Freemarker
>>>> functionalities.
>>>>
>>>> As further explanation we are only using sturs2 only for dispatching
>>>> purposes, Our action classes are simple like this.
>>>>
>>>> @Namespace(S2Constants.Namespace.PRIVATE)
>>>> @Results ( {
>>>>        @(protected),
>>>> value=S2Constants.Jsp.MY_SUCCESS_JSP_FILE),
>>>>        @(protected),
>>>> value=S2Constants.Jsp.MY_ERROR_JSP_FILE)
>>>> })
>>>> public class MyAction implements ServletRequestAware {
>>>>
>>>>        protected HttpServletRequest request;
>>>>
>>>>        public void setServletRequest(HttpServletRequest request) {
>>>>                this.request = request;
>>>>        }
>>>>
>>>>        public String execute() {
>>>>        return MyRequestHandler.execute(request);
>>>>    }
>>>> }
>>>>
>>>> And out struts.xml file is like this.
>>>>
>>>> <struts>
>>>>
>>>>    <constant name="struts.enable.DynamicMethodInvocation" value="true" />
>>>>    <constant name="struts.devMode" value="false" />
>>>> </struts>
>>>>
>>>> Finally here is the web.xml configurations
>>>>
>>>>
>>>>    <filter>
>>>>        <filter-name>struts2</filter-name>
>>>>
>>>>  <filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-class>
>>>>                <init-param>
>>>>                  <param-name>config</param-name>
>>>>
>>>>  <param-value>struts-default.xml,struts-plugin.xml,resources/struts2/struts.xml</param-value>
>>>>                </init-param>
>>>>            <init-param>
>>>>                <param-name>actionPackages</param-name>
>>>>
>>>>  <param-value>com.myapplication.core.web.action</param-value>
>>>>            </init-param>
>>>>    </filter>
>>>>
>>>>
>>>>    <filter-mapping>
>>>>        <filter-name>struts2</filter-name>
>>>>        <url-pattern>*.action</url-pattern>
>>>>        <dispatcher>REQUEST</dispatcher>
>>>>                <dispatcher>FORWARD</dispatcher>
>>>>    </filter-mapping>
>>>>
>>>>
>>>> Additionally we have added two more servers in to our production
>>>> servers to avoid overloading. But still its getting overloaded time to
>>>> time. Same application before struts2 migration we managed to keep the
>>>> system in good health with two servers. (now we are having 4 servers
>>>> load balanced by hardware load balancer)
>>>>
>>>> Really appreciate if anyone can help regarding this struts2 CPU
>>>> utilization issue.
>>>>
>>>> Best Regards
>>>> Lasantha
>>>>
>>>>
>>>> On Mon, Jul 13, 2009 at 6:56 PM, Martin Gainty<mgainty@(protected):
>>>>>
>>>>> take a look at tuning tips described at
>>>>> http://cwiki.apache.org/WW/performance-tuning.html
>>>>>
>>>>> ping back for questions/concerns
>>>>> Martin
>>>>> ______________________________________________
>>>>> Verzicht und Vertraulichkeitanmerkung
>>>>>
>>>>> Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene
>>>>> Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte
>>>>> Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht
>>>>> dient lediglich dem Austausch von Informationen und entfaltet keine
>>>>> rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von
>>>>> E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>> Date: Mon, 13 Jul 2009 06:31:34 -0700
>>>>>> From: tajuddin19@(protected)
>>>>>> Subject: Re: Migration from Struts1 to Struts2
>>>>>> To: user@(protected)
>>>>>>
>>>>>> I'm not sure but do pls check out by including the sitemesh-2.3.jar file
>>>>>> and xwork-2.0.6.jar file in your library
>>>>>>
>>>>>> --- On Mon, 7/13/09, Lasantha Pambagoda <lpambagoda@(protected):
>>>>>>
>>>>>>
>>>>>> From: Lasantha Pambagoda <lpambagoda@(protected)>
>>>>>> Subject: Migration from Struts1 to Struts2
>>>>>> To: user@(protected)
>>>>>> Date: Monday, July 13, 2009, 6:33 AM
>>>>>>
>>>>>>
>>>>>> Hi,
>>>>>>
>>>>>> We have migrated struts1 application to struts2. But now once we
>>>>>> deployed the system the CPU is going 90% to 100% and system is getting
>>>>>> loaded. In JSP's we are not using struts specific tags or freemaker
>>>>>> templates. Our JSP files are just plain jsp files only with
>>>>>> requstScope variables.
>>>>>>
>>>>>> We are using following versions of struts and dependent libraries.
>>>>>>
>>>>>> struts2-core-2.1.6.jar
>>>>>> struts2-codebehind-plugin-2.1.6.jar
>>>>>> ognl-2.6.11.jar
>>>>>> freemarker-2.3.13.jar
>>>>>>
>>>>>> Please let me know if we can do any improvement with out switching
>>>>>> back to struts1
>>>>>>
>>>>>> Kind Regards
>>>>>> Lasantha
>>>>>>
>>>>>> ---------------------------------------------------------------------
>>>>>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>>>>>> For additional commands, e-mail: user-help@(protected)
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>> _________________________________________________________________
>>>>> Bing™ finds low fares by predicting when to book. Try it now.
>>>>>
>>>>> http://www.bing.com/travel/deals/airline-ticket-deals.do?form=MTRHPG&publ=WLHMTAG&crea=TXT_MTRHPG_Travel_Travel_TravelDeals_1x1
>>>>
>>>> ---------------------------------------------------------------------
>>>> 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)
>>>
>>>
>>
>> ---------------------------------------------------------------------
>> 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)
>
>


Attachment: user_200691.ezm (zipped)
2009/7/14 jayadevan <jayadevan.m@(protected)>:
> i am using struts 1 in my project . when i sart tomcat i got the following
> exception
> Jul 14, 2009 10:39:05 AM org.apache.catalina.core.ApplicationDispatcher
> invoke
> SEVERE: Allocate exception for servlet action
> java.lang.NoClassDefFoundError: org/apache/commons/digester/RuleSet
>        at java.lang.Class.getDeclaredConstructors0(Native Method)
>        at java.lang.Class.privateGetDeclaredConstructors(Unknown Source)
>        at java.lang.Class.getConstructor0(Unknown Source)
>        at java.lang.Class.newInstance0(Unknown Source)
>        at java.lang.Class.newInstance(Unknown Source)

I don't see any connection with Struts in logs, could you remove that
application and start Tomcat again? You're probably missing Digester
library needed by Tomcat.


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

Timothy Leary - "Women who seek to be equal with men lack ambition."
- http://www.brainyquote.com/quotes/authors/t/timothy_leary.html


Attachment: user_200692.ezm (zipped)
I'm having a problem using <s:action executeResult="true"> with an action
whose result type is json. It doesn't insert the results. My Action is
something like:

public class InitCalendarAction {
private List<List<String>> json;

/**
 * Get the JSON Object to be Serialized
 *
 * @return JSON Object
 */
public Object getJson () {
  return json;
} //getJson

/**
 * Prepare the Object to be Serialized using JSON
 *
 * @return "success";
 */
public String execute () {
  Category cat;
  Category[] daily = user.getPlan().getDailyCategories();
  Calendar cal = Calendar.getInstance();
  cal.set(Calendar.DATE,1);
  int first = cal.get(Calendar.DAY_OF_WEEK) - 1;
  List<String> row;
  json = new ArrayList<List<String>>();
  for(int day = 1;day <= cal.getMaximum(Calendar.DATE);day++) {
   row = new ArrayList<String>();
   row.add("true");
   cat = daily[(day + first) % 7];
   row.add(cat.name().toLowerCase());
   row.add(cat.name());
   json.add(row);
  }
  return "success";
} //execute

} //*InitCalendarAction

I have the action defined as:

  <action name="init-calendar" class="initCalendarAction">
   <result type="json">
    <param name="root">json</param>
   </result>
  </action>

In my JSP, I have:

  var hilights = "<s:action name='init-calendar' namespace='/'
executeResult='/'/>";

But instead of the expected:

  var hilights = "[ [ "true", "cardio", "Cardio"], [ "true", "upperbody",
"Upper Body"] ... ]";

I get:
  var hilights = "";

There are no errors in the logs and when I write out each row in the array,
everything is there as expected, but there's just no output. Any idea's
why?
(*Chris*)

Attachment: user_200693.ezm (zipped)
Hi everbody,
In my project i have a user informations.These information includes file in
database.
When i want to update user information i get an error about file update.If i
choose
new image file and then update it is not problem.But i don't choose new file
and then update
it's problem.

My user UpdateTemplate.jsp file
..
<s:file id="fileId" key="form.personForm.photographName" required="false"
name="form.personForm.file" label="FILE" disabled="false" size="30"
onchange="validate()" />
..

My UserForm.java
..
private PersonForm personForm = new PersonForm();
..

My PersonForm.java
..
  private Blob blobObject;
  private File file ;
  private String photographName;

public Person getPojoWithIds() throws IllegalAccessException,
InvocationTargetException, ParseException, FileNotFoundException,
IOException{
    Person person= new Person();

    BeanUtils.copyProperties(person, this);

    if(getBornDateString() != null){
       person.setBornDate(new
java.sql.Date(getBornDateString().getTime()));
    }
    Contact contact =new Contact();
    contact.setId(getContactForm().getId());
    person.setContact(contact);

    RowStatus rowStatus = new RowStatus();
    rowStatus.setId(getRowStatusForm().getId());
    person.setRowStatus(rowStatus);

    Language language = new Language();
    language.setId(getLanguageForm().getId());
    person.setLanguage(language);


    if(this.getFile()!=null){
       person.setBlobObject(Hibernate.createBlob(new
FileInputStream(this.getFile())));
    }

    return person;
  }

...

I get this error.
Error Message

C:\Documents and
Settings\hilal\Desktop\yeni\eclipse_win_ganymede\projeler\.metadata\.plugins\org.eclipse.wst.server.core\tmp4\work\Catalina\localhost\YazmanakWeb\upload__7267d08a_12277d9548c__8000_00000058.tmp
(The system cannot find the file specified)


i understand while i get information from database i can't get file so while
update <s:file> tag get a different value.I don't understand this situation.

Please help me about this problem.

Attachment: user_200694.ezm (zipped)
Hi All,

        In my application, the JSP page displays a list of items with hyperlinks. When i select one particular item, then that item/element should be rendered according to the style being defined.
Below is the code shown:

              <s:a href="javascript:submitFormMenu('/fps/admin/viewHome.action');">Home</s:a></li>
               <s:a href="javascript:openTOCHelp('/fps/manual/fpsadmin.htm');">User Manual</s:a>
                <s:a href="javascript:submitFormMenu('/fps/h/viewSupport.action');"  >Support</s:a>

The style which i am including is:
color: #ce122c; font-weight:bold;

I'm confused as how to use onselect attribute of <s:a> tag to render the html element with the given style when user clicks on a particular link or item.
If there is any other way, pls let me know ASAP.

Thanks,
Tajuddin






Attachment: user_200695.ezm (zipped)
Hi All,

        In my application, the JSP page displays a list of items with hyperlinks. When i select one particular item, then that item/element should be rendered according to the style being defined.
Below is the code shown:

              <s:a href="javascript:submitFormMenu('/fps/admin/viewHome.action');">Home</s:a></li>
               <s:a href="javascript:openTOCHelp('/fps/manual/fpsadmin.htm');">User Manual</s:a>
                <s:a href="javascript:submitFormMenu('/fps/h/viewSupport.action');"  >Support</s:a>

The style which i am including is:
color: #ce122c; font-weight:bold;

I'm confused as how to use onselect attribute of <s:a> tag to render the html element with the given style when user clicks on a particular link or item.
If there is any other way, pls let me know ASAP.

Thanks,
Tajuddin






Attachment: user_200696.ezm (zipped)
Hi All,

        In my application, the JSP page displays a list of items with hyperlinks. When i select one particular item, then that item/element should be rendered according to the style being defined.
Below is the code shown:

              <s:a href="javascript:submitFormMenu('/fps/admin/viewHome.action');">Home</s:a></li>
               <s:a href="javascript:openTOCHelp('/fps/manual/fpsadmin.htm');">User Manual</s:a>
                <s:a href="javascript:submitFormMenu('/fps/h/viewSupport.action');"  >Support</s:a>

The style which i am including is:
color: #ce122c; font-weight:bold;

I'm confused as how to use onselect attribute of <s:a> tag to render the html element with the given style when user clicks on a particular link or item.
If there is any other way, pls let me know ASAP.

Thanks,
Tajuddin






Attachment: user_200700.ezm (zipped)
Hello,
my process in getting to this was 1. looking for some API to stream
upload/download data directly into the HD, 2. found the Common File Upload
API, 3. Went to the FAQ section to see how I could integrate in my Struts
application ( http://commons.apache.org/fileupload/faq.html ), and read the
last point - from which I assumed Struts doesn't use this modality.

In addition, I didn't find any entry attached to Struts on the Web about
this, and also I couldn't find any entry about configuration options on the
upload/download modalities.

Now, I'm a bit confused from your last message, Wes, is Dale right about
multipart requests streamed into the HD directly?

I'll use your plugin, and I'll report my experience once done.

Thanks,

Daniele

On Mon, Jul 13, 2009 at 9:43 PM, Wes Wannemacher <wesw@(protected):

> On Mon, Jul 13, 2009 at 4:34 PM, Dale Newfield<dale@(protected):
> >
> >> I remember once I came across another possible solution, which allows
> the
> >> serialization of the file data as it is received from the server.
> >
> > I assume that the multipart request processor streams the content into a
> > file without first loading the entire thing into memory...if you know
> that
> > this is not the case, please point out the offending portion of code...
> >
> > -Dale
> >
>
> I am pretty sure you are right Dale, there was a JIRA that the choice
> was unavailable. The GAE doesn't allow you to write files anywhere on
> the filesystem, and there was no option to configure this behavior.
> That's one of the reasons I started a plugin. The choices are
> available in commons-fileupload, but we just weren't exposing them.
> I'm guessing the files are getting serialized (I think the threshold
> is way less than what he is talking about), he just didn't see them
> anywhere.
>
> -Wes
> --
> Wes Wannemacher
> Author - Struts 2 In Practice
> Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more
> http://www.manning.com/wannemacher
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>

Attachment: user_200702.ezm (zipped)

version:2.1.X
Ajax Validation has bug with <sx:tabbedpanel> tag when Form is "simple"
theme

when below jsp is submited,a alert box will be show with text:Could not
validate: XXXX

<s:form action="login" theme="simple" >

 <table >
 <caption><h3>User Login</h3></caption>
 
 <tr>
   <td><s:text name="input.account"/></td>
   <s:fielderror/>
   <td><s:textfield name="account" /></td>
 </tr>
 
 <tr>
   <td><s:text name="input.password"/></td>
   <s:fielderror/>
   <td><s:textfield name="password" /></td>
 </tr>
   
  <tr>
  <td>
  </td>
   <td >      
       <s:submit key="login.register" name="action:registerinput" />        
       <sx:submit key="input.submit" validate="true"
showLoadingText="false" />
       
     </td>
     
  </tr>
 </table>
 </sx:div>
 </sx:tabbedpanel>
 
 
 
</s:form>


But if i remove <sx:tabbedpanel> tag like following:

<s:form action="login" theme="simple" >
 
 <sx:tabbedpanel id="tab">
 <sx:div label="User Login" >
 <table >
 <caption><h3>User Login</h3></caption>
 
 <tr>
   <td><s:text name="input.account"/></td>
   <s:fielderror/>
   <td><s:textfield name="account" /></td>
 </tr>
 
 <tr>
   <td><s:text name="input.password"/></td>
   <s:fielderror/>
   <td><s:textfield name="password" /></td>
 </tr>
   
  <tr>
  <td>
  </td>
   <td >      
       <s:submit key="login.register" name="action:registerinput" />      
       <sx:submit key="input.submit" validate="true"
showLoadingText="false" />
       
     </td>
     
  </tr>
 </table>

 
 
 
</s:form>


The Ajax validation worked successful!


If I change the form theme to xhtml and still left <sx:tabbedpanel>

the validation worked succesful!

if I set form theme "simple" and remove <sx:tabbedpanel> but left<sx:div>

when jsp is submited,a alert box will be show with text:Could not validate:
XXXX


anybody can confirm this is a struts bug? or my setting issue?



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



Attachment: user_200703.ezm (zipped)

version:2.1.X
Ajax Validation has bug with <sx:tabbedpanel> tag when Form is "simple"
theme

when below jsp is submited,a alert box will be show with text:Could not
validate: XXXX

<s:form action="login" theme="simple" >
     <sx:tabbedpanel id="tab">
     <sx:div label="User Login" >
 <table >
 <caption><h3>User Login</h3></caption>
 
 <tr>
     <td><s:text name="input.account"/></td>
     <td><s:textfield name="account" /></td>
 </tr>
 
 <tr>
      <td><s:text name="input.password"/></td>    
      <td><s:textfield name="password" /></td>
 </tr>
   
  <tr>
    <td>
    </td>
      <td >      
          <s:submit key="login.register" name="action:registerinput" />        
          <sx:submit key="input.submit" validate="true"
showLoadingText="false" />        
        </td>
     
  </tr>
 </table>
 </sx:div>
 </sx:tabbedpanel>  
</s:form>


But if i remove <sx:tabbedpanel> tag like following:

<s:form action="login" theme="simple" >

 <table >
 <caption><h3>User Login</h3></caption>
 
 <tr>
     <td><s:text name="input.account"/></td>
     <td><s:textfield name="account" /></td>
 </tr>
 
 <tr>
      <td><s:text name="input.password"/></td>    
      <td><s:textfield name="password" /></td>
 </tr>
   
  <tr>
    <td>
    </td>
      <td >      
          <s:submit key="login.register" name="action:registerinput" />        
          <sx:submit key="input.submit" validate="true"
showLoadingText="false" />        
        </td>
     
  </tr>
 </table>

</s:form>

The Ajax validation worked successful!


If I change the form theme to xhtml and still left <sx:tabbedpanel>

the validation worked succesful!

if I set form theme "simple" and remove <sx:tabbedpanel> but still
left<sx:div>

when jsp is submited,a alert box will be show with text:Could not validate:
XXXX


anybody can confirm this is a struts bug? or my setting issue?


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


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