About logic:messagesPresent

2009-06-08 Thread Sam Wun
Hi,

I have some problem using Struts with JSP.
I got an error here:

org.apache.jasper.JasperException: An exception occurred processing
JSP page /html/portlet/contact_us_portlet/input.jsp at line 35

32:
33: logic:messagesPresent
34: span class=es-error
35: bean:message key=error.userinput.invalid/
36: /span
37: /logic:messagesPresent
38:


I am writing a customer Contact form.

The Action form is written as below:

public class ContactUsForm extends ActionForm {

private String comment=;
private String name=;
private String phone=;
private String emailaddr=;
private String userinput=;

public String getName() { return this.name; };
public String getEmailaddr() { return this.emailaddr; };
public String getComment() { return this.comment; };
public String getPhone() { return this.phone; };
public String getUserinput() { return this.userinput; };

public void setUserinput() { this.userinput = ; };
public void setName(String name) { this.name = name; };
public void setEmailaddr(String emailaddr) { this.emailaddr = emailaddr; };
public void setComment(String comment) { this.comment = comment; };
public void setPhone(String phone) { this.phone = phone; };

public void reset(ActionMapping mapping, HttpServletRequest req) {
this.comment=;
this.name=;
this.phone=;
this.emailaddr=;
}

public ActionErrors validate(ActionMapping mapping,
HttpServletRequest req) {

ActionErrors errors = new ActionErrors();

if ((this.comment == null) || (this.comment.length()  1)
|| this.name == null || this.name.length()  1
|| this.phone == null || this.phone.length()  1
|| this.emailaddr == null || this.emailaddr.length()  1)
{
  errors.add(userinput, new ActionMessage(error.userinput.invalid));
}

return errors;
}
}

JSP part:
%@ include file=/html/portlet/contact_us_portlet/init.jsp %

bean:define id=name name=ContactUsForm property=name
type=java.lang.String /
bean:define id=emailaddr name=ContactUsForm property=emailaddr
type=java.lang.String /
bean:define id=phone name=ContactUsForm property=phone
type=java.lang.String /
bean:define id=comment name=ContactUsForm property=comment
type=java.lang.String /
bean:define id=userinput name=ContactUsForm property=userinput
type=java.lang.String /

logic:messagesPresent
span class=es-error
bean:message key=error.userinput.invalid/
/span
/logic:messagesPresent

p align=right
   a href=portlet:renderURL portletMode=help /Help/a
/p
p align=center
html:form action=/contact_us_portlet/input method=post
focus=cu_firstname

table class=stats
tr
  tdbean:message key=form.title.name//td
  tdinput name=cu_name size=20//td
/tr
tr
  tdbean:message key=form.title.email//td
  tdinput name=cu_email size=30//td
/tr
tr
  tdbean:message key=form.title.phone//td
  tdinput name=cu_phone size=30//td
/tr
tr
  tdbean:message key=form.title.input//td
  td
 html:textarea name=ContactUsForm property=comment rows=12
cols=40 /
  /td
/tr

/table
/p

p align=center
html:submitbean:message key=button.submit//html:submit
/html:form
/p

Is there anything wrong with my coding in the Action form and the JSP?
What have I missing?

Your help is very much appreciated.

Thanks

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



RE: Doubts about new project (Struts2 good way to do it?)

2009-06-08 Thread Francisco Exposito

Has anyone an example of jetspeed2 + struts2?

 Date: Fri, 5 Jun 2009 14:24:28 +0200
 Subject: Re: Doubts about new project (Struts2 good way to do it?)
 From: poulw...@gmail.com
 To: user@struts.apache.org
 
 Hi Francisco,
 free hosting for java can be a hard one to find,
 i don't know or heard of any.
 
 Best greetings,
 Paweł Wielgus.
 
 
 2009/6/5 Francisco Exposito fcoexpos...@hotmail.com:
 
  I've read that jetspeed2 documentation is poor... do you have an example 
  about jetspeed2 + struts2?
 
  Then, is it possible to create a project using:
 
  Struts2, Jetspeed2, Spring plugin, Hibernate and Sitemesh? or jetspeed is 
  not compatible with the other? And what about the performance? Could it be 
  ok using all that? And is it possible to use them in Tomcat or it is 
  necessary JBoss? I want to find a free hosting and if it is difficult to 
  find in TomI tcat... I don't want to think in JBoss...
 
  Regards,
  Francisco
 
  From: mgai...@hotmail.com
  To: user@struts.apache.org
  Subject: RE: Doubts about new project (Struts2 good way to do it?)
  Date: Thu, 4 Jun 2009 15:43:55 -0400
 
 
  Good Afternoon Francisco
  i have an opinion on the subject which i would be more than happy to share 
  with you
 
   1) User preferences: every user can configure its window and
  maintain its configuration after save preferences and log in again. The
  user can select options from a list and position them where he wants.
  ¿Maybe using portlets?¿Changing css dinamically depending on logged
  user?¿Any other option?
  MGJetSpeed..tried and true Principal assignment to User,Group
  http://portals.apache.org/jetspeed-2/
 
   2) Languages: every user can
  access in some languages. As I've tested, the language is configured
  with regional settings. But it is possible to select the language in
  the login page and maintain it during the session?
  MGsimple as setting request_locate to en requst_locale=es
  MGhttp://struts.apache.org/2.1.6/docs/how-do-we-change-locales.html
  
   3) Persistence layer: better Hibernate or iBatis? About performance?
  MGI think hibernate has more deploys be aware of lazy_init not creating 
  all dependent objects in object graph
  https://www.hibernate.org/162.html
  
   4) E-commerce: shop cart, what about security?
  MGSSL all the way..dont send cleartext for anything unless you want 
  mailicious eavesdropper intervention!
  http://tomcat.apache.org/tomcat-6.0-doc/ssl-howto.html
  MGi can give you SSL solutions for OAS, WL, Resin, JBOSS if you need it
  
   5) Sitemesh or Tiles? I've used tiles and it is ok, but the xml are too 
   long. About performance?
  MGSitemesh is the css handler that is preconfigured for Struts
  filter
  filter-namesitemesh/filter-name
  
  filter-classcom.opensymphony.module.sitemesh.filter.PageFilter/filter-class
  /filter
  filter-mapping
  filter-namesitemesh/filter-name
  url-pattern/*/url-pattern
  /filter-mapping
 
  MGif you like using VM macros coded thru SiteMesh then enable 
  VelocityPageFilter in web.xml
  filter
  filter-namesitemesh/filter-name
  
  filter-classorg.apache.struts2.sitemesh.VelocityPageFilter/filter-class
  /filter
  filter-mapping
  filter-namesitemesh/filter-name
  url-pattern/*/url-pattern
  /filter-mapping
 
  and for freemarker
  filter
  filter-namesitemesh/filter-name
  
  filter-classorg.apache.struts2.sitemesh.FreeMarkerPageFilter/filter-class
  /filter
  filter-mapping
 
  filter-namesitemesh/filter-name
 
  url-pattern/*/url-pattern
 
  /filter-mapping
 
 
  Saludos Cordiales desde EEUU!
  Martin
  GMT+5(esta semana)
  
  
  
   The options I've considered are:
  
   Tomcat, MySQL, Struts2 with Spring IOC and open in view filter, Sitemesh 
   or Tiles, Hibernate or iBatis, Portlets.
  
   Other option is use JSF. Which selection do you think would be better?
  
 
 
  Martin Gainty
  __
  Jogi és Bizalmassági kinyilatkoztatás/Verzicht und 
  Vertraulichkeitanmerkung/Note de déni et de confidentialité
   Ez az
  üzenet bizalmas.  Ha nem ön az akinek szánva volt, akkor kérjük, hogy
  jelentse azt nekünk vissza. Semmiféle továbbítása vagy másolatának
  készítése nem megengedett.  Ez az üzenet csak ismeret cserét szolgál és
  semmiféle jogi alkalmazhatósága sincs.  Mivel az electronikus üzenetek
  könnyen megváltoztathatóak, ezért minket semmi felelöség nem terhelhet
  ezen üzenet tartalma miatt.
 
  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 

Migration: webwork to struts2 help.

2009-06-08 Thread gwen harold autencio
Hi Guys,

Can i ask some help regarding migration from webwork to struts2 ?

Here's the error i'm getting after i made some changes for the migration..

 INFO org.apache.struts2.spring.StrutsSpringObjectFactory - Initializing 
Struts-Spring integration...
18192 [WrapperSimpleAppMain] ERROR 
org.apache.struts2.spring.StrutsSpringObjectFactory - ** FATAL ERROR 
STARTING UP STRUTS-SPRING INTEGRATION **
Looks like the Spring listener was not configured for your web app! 
Nothing will work until WebApplicationContextUtils returns a valid 
ApplicationContext.
You might need to add the following to web.xml: 
    listener
    
listener-classorg.springframework.web.context.ContextLoaderListener/listener-class
    /listener
18388 [WrapperSimpleAppMain] ERROR org.mortbay.log - failed struts
java.lang.NullPointerException
    at 
org.codehaus.plexus.spring.Struts2PlexusInSpringObjectFactory.getClassInstance(Struts2PlexusInSpringObjectFactory.java:92)
    at 
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.verifyResultType(XmlConfigurationProvider.java:479)
    at 
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addResultTypes(XmlConfigurationProvider.java:450)
    at 
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addPackage(XmlConfigurationProvider.java:407)
    at 
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadPackages(XmlConfigurationProvider.java:239)
    at 
org.apache.struts2.config.StrutsXmlConfigurationProvider.loadPackages(StrutsXmlConfigurationProvider.java:111)
    at 
com.opensymphony.xwork2.config.impl.DefaultConfiguration.reload(DefaultConfiguration.java:152)
    at 
com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:52)
    at 
org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:395)
    at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:452)
    at 
org.apache.struts2.dispatcher.FilterDispatcher.init(FilterDispatcher.java:203)
    at org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:97)
    at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
    at 
org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:620)
    at org.mortbay.jetty.servlet.Context.startContext(Context.java:140)
    at 
org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1234)
    at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:517)
    at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:460)
    at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
    at 
org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
    at 
org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:156)
    at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
    at 
org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
    at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
    at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
    at org.mortbay.jetty.Server.doStart(Server.java:222)
    at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
    at org.mortbay.xml.XmlConfiguration.main(XmlConfiguration.java:985)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.mortbay.start.Main.invokeMain(Main.java:194)
    at org.mortbay.start.Main.start(Main.java:523)
    at org.mortbay.start.Main.main(Main.java:119)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at struts2-spring-plugin 
helporg.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java:240)
    at java.lang.Thread.run(Thread.java:595)
18393 [WrapperSimpleAppMain] ERROR org.mortbay.log - Failed startup of context 
org.mortbay.jetty.webapp.webappcont...@13a317a



  

Re: Migration: webwork to struts2 help.

2009-06-08 Thread Dave Newton

gwen harold autencio wrote:

 INFO org.apache.struts2.spring.StrutsSpringObjectFactory - Initializing 
Struts-Spring integration...
18192 [WrapperSimpleAppMain] ERROR 
org.apache.struts2.spring.StrutsSpringObjectFactory - ** FATAL ERROR 
STARTING UP STRUTS-SPRING INTEGRATION **
Looks like the Spring listener was not configured for your web app! 
Nothing will work until WebApplicationContextUtils returns a valid ApplicationContext.
You might need to add the following to web.xml: 
listener


listener-classorg.springframework.web.context.ContextLoaderListener/listener-class
/listener


If you're using Spring, do you have that?

If you're not, the Struts 2 Spring plugin from your app.

Dave

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: Doubts about new project (Struts2 good way to do it?)

2009-06-08 Thread Nils-Helge Garli Hegvik
Jetspeed2 - No, JSR168 portlets - Yes. You should be aware of the
features and limitations of portlets though. It might not necessarily
be what you're looking for. I suggest digging a bit deeper into the
topic if you're considering using it.

Nils-H

On Mon, Jun 8, 2009 at 9:05 AM, Francisco
Expositofcoexpos...@hotmail.com wrote:

 Has anyone an example of jetspeed2 + struts2?

 Date: Fri, 5 Jun 2009 14:24:28 +0200
 Subject: Re: Doubts about new project (Struts2 good way to do it?)
 From: poulw...@gmail.com
 To: user@struts.apache.org

 Hi Francisco,
 free hosting for java can be a hard one to find,
 i don't know or heard of any.

 Best greetings,
 Paweł Wielgus.


 2009/6/5 Francisco Exposito fcoexpos...@hotmail.com:
 
  I've read that jetspeed2 documentation is poor... do you have an example 
  about jetspeed2 + struts2?
 
  Then, is it possible to create a project using:
 
  Struts2, Jetspeed2, Spring plugin, Hibernate and Sitemesh? or jetspeed is 
  not compatible with the other? And what about the performance? Could it be 
  ok using all that? And is it possible to use them in Tomcat or it is 
  necessary JBoss? I want to find a free hosting and if it is difficult to 
  find in TomI tcat... I don't want to think in JBoss...
 
  Regards,
  Francisco
 
  From: mgai...@hotmail.com
  To: user@struts.apache.org
  Subject: RE: Doubts about new project (Struts2 good way to do it?)
  Date: Thu, 4 Jun 2009 15:43:55 -0400
 
 
  Good Afternoon Francisco
  i have an opinion on the subject which i would be more than happy to 
  share with you
 
   1) User preferences: every user can configure its window and
  maintain its configuration after save preferences and log in again. The
  user can select options from a list and position them where he wants.
  ¿Maybe using portlets?¿Changing css dinamically depending on logged
  user?¿Any other option?
  MGJetSpeed..tried and true Principal assignment to User,Group
  http://portals.apache.org/jetspeed-2/
 
   2) Languages: every user can
  access in some languages. As I've tested, the language is configured
  with regional settings. But it is possible to select the language in
  the login page and maintain it during the session?
  MGsimple as setting request_locate to en requst_locale=es
  MGhttp://struts.apache.org/2.1.6/docs/how-do-we-change-locales.html
  
   3) Persistence layer: better Hibernate or iBatis? About performance?
  MGI think hibernate has more deploys be aware of lazy_init not creating 
  all dependent objects in object graph
  https://www.hibernate.org/162.html
  
   4) E-commerce: shop cart, what about security?
  MGSSL all the way..dont send cleartext for anything unless you want 
  mailicious eavesdropper intervention!
  http://tomcat.apache.org/tomcat-6.0-doc/ssl-howto.html
  MGi can give you SSL solutions for OAS, WL, Resin, JBOSS if you need it
  
   5) Sitemesh or Tiles? I've used tiles and it is ok, but the xml are too 
   long. About performance?
  MGSitemesh is the css handler that is preconfigured for Struts
      filter
          filter-namesitemesh/filter-name
          
  filter-classcom.opensymphony.module.sitemesh.filter.PageFilter/filter-class
      /filter
      filter-mapping
          filter-namesitemesh/filter-name
          url-pattern/*/url-pattern
      /filter-mapping
 
  MGif you like using VM macros coded thru SiteMesh then enable 
  VelocityPageFilter in web.xml
          filter
              filter-namesitemesh/filter-name
              
  filter-classorg.apache.struts2.sitemesh.VelocityPageFilter/filter-class
          /filter
          filter-mapping
              filter-namesitemesh/filter-name
              url-pattern/*/url-pattern
          /filter-mapping
 
  and for freemarker
      filter
          filter-namesitemesh/filter-name
          
  filter-classorg.apache.struts2.sitemesh.FreeMarkerPageFilter/filter-class
      /filter
          filter-mapping
 
              filter-namesitemesh/filter-name
 
              url-pattern/*/url-pattern
 
          /filter-mapping
 
 
  Saludos Cordiales desde EEUU!
  Martin
  GMT+5(esta semana)
  
  
  
   The options I've considered are:
  
   Tomcat, MySQL, Struts2 with Spring IOC and open in view filter, 
   Sitemesh or Tiles, Hibernate or iBatis, Portlets.
  
   Other option is use JSF. Which selection do you think would be better?
  
 
 
  Martin Gainty
  __
  Jogi és Bizalmassági kinyilatkoztatás/Verzicht und 
  Vertraulichkeitanmerkung/Note de déni et de confidentialité
   Ez az
  üzenet bizalmas.  Ha nem ön az akinek szánva volt, akkor kérjük, hogy
  jelentse azt nekünk vissza. Semmiféle továbbítása vagy másolatának
  készítése nem megengedett.  Ez az üzenet csak ismeret cserét szolgál és
  semmiféle jogi alkalmazhatósága sincs.  Mivel az electronikus üzenetek
  könnyen megváltoztathatóak, ezért minket semmi felelöség nem terhelhet
  ezen üzenet tartalma miatt.
 
  Diese Nachricht ist vertraulich. Sollten Sie nicht der 

RE: Migration: webwork to struts2 help.

2009-06-08 Thread Martin Gainty

http://cwiki.apache.org/WW/spring.html

!-- config contextLoaderListener to extract spring config params --
web.xml
listener

listener-classorg.springframework.web.context.ContextLoaderListener/listener-class
/listener



Register your objects via the Spring configuration
!--spring manages com.my.BarClass as id =bar --



applicationContext.xml

?xml version=1.0 encoding=UTF-8?
!DOCTYPE beans PUBLIC -//SPRING//DTD BEAN//EN 
http://www.springframework.org/dtd/spring-beans.dtd;
beans default-autowire=autodetect
bean id=bar class=com.my.BarClass singleton=false/
...
/beans
!-- The singleton attribute is set to false, meaning that Spring will create a 
new Action class upon each request, as Struts 1 would do. --
!-- works well for stateful beans which carry new information for each 
request--

!-- struts.xml  maps URI - action - Spring bean --
!DOCTYPE struts PUBLIC
-//Apache Software Foundation//DTD Struts Configuration 2.0//EN
http://struts.apache.org/dtds/struts-2.0.dtd;
struts
include file=struts-default.xml/

package name=secure namespace=/secure extends=default
action name=bar class=bar
resultbar.ftl/result
/action
/package
/struts!--action name=bar maps class=Bar to bean id=bar which is a 
stateful Bean called BarClass whose params are extracted by spring 
ContextLoaderListener --

http://www.springsource.org/aboutspring
(replace all refs to Tapestry or JSF with Struts)

HTH
Martin Gainty 
__ 
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
 
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.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est 
interdite. Ce message sert à l'information seulement et n'aura pas n'importe 
quel effet légalement obligatoire. Étant donné que les email peuvent facilement 
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité 
pour le contenu fourni.




 Date: Mon, 8 Jun 2009 05:40:26 -0400
 From: newton.d...@yahoo.com
 To: user@struts.apache.org
 Subject: Re: Migration: webwork to struts2 help.
 
 gwen harold autencio wrote:
   INFO org.apache.struts2.spring.StrutsSpringObjectFactory - Initializing 
  Struts-Spring integration...
  18192 [WrapperSimpleAppMain] ERROR 
  org.apache.struts2.spring.StrutsSpringObjectFactory - ** FATAL 
  ERROR STARTING UP STRUTS-SPRING INTEGRATION **
  Looks like the Spring listener was not configured for your web app! 
  Nothing will work until WebApplicationContextUtils returns a valid 
  ApplicationContext.
  You might need to add the following to web.xml: 
  listener
  
  listener-classorg.springframework.web.context.ContextLoaderListener/listener-class
  /listener
 
 If you're using Spring, do you have that?
 
 If you're not, the Struts 2 Spring plugin from your app.
 
 Dave
 
 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org
 

_
Hotmail® has ever-growing storage! Don’t worry about storage limits. 
http://windowslive.com/Tutorial/Hotmail/Storage?ocid=TXT_TAGLM_WL_HM_Tutorial_Storage_062009

RE: Doubts about new project (Struts2 good way to do it?)

2009-06-08 Thread Francisco Exposito

Do you have a list of functionalities of JSR168 portlets? Or some url to find 
info or examples...

 Date: Mon, 8 Jun 2009 13:00:07 +0200
 Subject: Re: Doubts about new project (Struts2 good way to do it?)
 From: nil...@gmail.com
 To: user@struts.apache.org
 
 Jetspeed2 - No, JSR168 portlets - Yes. You should be aware of the
 features and limitations of portlets though. It might not necessarily
 be what you're looking for. I suggest digging a bit deeper into the
 topic if you're considering using it.
 
 Nils-H
 
 On Mon, Jun 8, 2009 at 9:05 AM, Francisco
 Expositofcoexpos...@hotmail.com wrote:
 
  Has anyone an example of jetspeed2 + struts2?
 
  Date: Fri, 5 Jun 2009 14:24:28 +0200
  Subject: Re: Doubts about new project (Struts2 good way to do it?)
  From: poulw...@gmail.com
  To: user@struts.apache.org
 
  Hi Francisco,
  free hosting for java can be a hard one to find,
  i don't know or heard of any.
 
  Best greetings,
  Paweł Wielgus.
 
 
  2009/6/5 Francisco Exposito fcoexpos...@hotmail.com:
  
   I've read that jetspeed2 documentation is poor... do you have an example 
   about jetspeed2 + struts2?
  
   Then, is it possible to create a project using:
  
   Struts2, Jetspeed2, Spring plugin, Hibernate and Sitemesh? or jetspeed 
   is not compatible with the other? And what about the performance? Could 
   it be ok using all that? And is it possible to use them in Tomcat or it 
   is necessary JBoss? I want to find a free hosting and if it is difficult 
   to find in TomI tcat... I don't want to think in JBoss...
  
   Regards,
   Francisco
  
   From: mgai...@hotmail.com
   To: user@struts.apache.org
   Subject: RE: Doubts about new project (Struts2 good way to do it?)
   Date: Thu, 4 Jun 2009 15:43:55 -0400
  
  
   Good Afternoon Francisco
   i have an opinion on the subject which i would be more than happy to 
   share with you
  
1) User preferences: every user can configure its window and
   maintain its configuration after save preferences and log in again. The
   user can select options from a list and position them where he wants.
   ¿Maybe using portlets?¿Changing css dinamically depending on logged
   user?¿Any other option?
   MGJetSpeed..tried and true Principal assignment to User,Group
   http://portals.apache.org/jetspeed-2/
  
2) Languages: every user can
   access in some languages. As I've tested, the language is configured
   with regional settings. But it is possible to select the language in
   the login page and maintain it during the session?
   MGsimple as setting request_locate to en requst_locale=es
   MGhttp://struts.apache.org/2.1.6/docs/how-do-we-change-locales.html
   
3) Persistence layer: better Hibernate or iBatis? About performance?
   MGI think hibernate has more deploys be aware of lazy_init not 
   creating all dependent objects in object graph
   https://www.hibernate.org/162.html
   
4) E-commerce: shop cart, what about security?
   MGSSL all the way..dont send cleartext for anything unless you want 
   mailicious eavesdropper intervention!
   http://tomcat.apache.org/tomcat-6.0-doc/ssl-howto.html
   MGi can give you SSL solutions for OAS, WL, Resin, JBOSS if you need it
   
5) Sitemesh or Tiles? I've used tiles and it is ok, but the xml are 
too long. About performance?
   MGSitemesh is the css handler that is preconfigured for Struts
   filter
   filter-namesitemesh/filter-name
   
   filter-classcom.opensymphony.module.sitemesh.filter.PageFilter/filter-class
   /filter
   filter-mapping
   filter-namesitemesh/filter-name
   url-pattern/*/url-pattern
   /filter-mapping
  
   MGif you like using VM macros coded thru SiteMesh then enable 
   VelocityPageFilter in web.xml
   filter
   filter-namesitemesh/filter-name
   
   filter-classorg.apache.struts2.sitemesh.VelocityPageFilter/filter-class
   /filter
   filter-mapping
   filter-namesitemesh/filter-name
   url-pattern/*/url-pattern
   /filter-mapping
  
   and for freemarker
   filter
   filter-namesitemesh/filter-name
   
   filter-classorg.apache.struts2.sitemesh.FreeMarkerPageFilter/filter-class
   /filter
   filter-mapping
  
   filter-namesitemesh/filter-name
  
   url-pattern/*/url-pattern
  
   /filter-mapping
  
  
   Saludos Cordiales desde EEUU!
   Martin
   GMT+5(esta semana)
   
   
   
The options I've considered are:
   
Tomcat, MySQL, Struts2 with Spring IOC and open in view filter, 
Sitemesh or Tiles, Hibernate or iBatis, Portlets.
   
Other option is use JSF. Which selection do you think would be better?
   
  
  
   Martin Gainty
   __
   Jogi és Bizalmassági kinyilatkoztatás/Verzicht und 
   Vertraulichkeitanmerkung/Note de déni et de confidentialité
Ez az
   üzenet bizalmas.  Ha nem ön az akinek szánva volt, 

Re: Doubts about new project (Struts2 good way to do it?)

2009-06-08 Thread Nils-Helge Garli Hegvik
 could you elaborate on how JetSpeed is not JSR-168 compliant?

 thanks,
 Martin Gainty

You have to start actually reading the posts you're replying to. I
said nowhere that JetSpeed is not JSR-168 compliant. And please, keep
discussions on the list.

Nils-H



 Date: Mon, 8 Jun 2009 13:00:07 +0200
 Subject: Re: Doubts about new project (Struts2 good way to do it?)
 From: nil...@gmail.com
 To: user@struts.apache.org

 Jetspeed2 - No, JSR168 portlets - Yes. You should be aware of the
 features and limitations of portlets though. It might not necessarily
 be what you're looking for. I suggest digging a bit deeper into the
 topic if you're considering using it.

 Nils-H

 On Mon, Jun 8, 2009 at 9:05 AM, Francisco
 Expositofcoexpos...@hotmail.com wrote:
 
  Has anyone an example of jetspeed2 + struts2?
 
  Date: Fri, 5 Jun 2009 14:24:28 +0200
  Subject: Re: Doubts about new project (Struts2 good way to do it?)
  From: poulw...@gmail.com
  To: user@struts.apache.org
 
  Hi Francisco,
  free hosting for java can be a hard one to find,
  i don't know or heard of any.
 
  Best greetings,
  Paweł Wielgus.
 
 
  2009/6/5 Francisco Exposito fcoexpos...@hotmail.com:
  
   I've read that jetspeed2 documentation is poor... do you have an
   example about jetspeed2 + struts2?
  
   Then, is it possible to create a project using:
  
   Struts2, Jetspeed2, Spring plugin, Hibernate and Sitemesh? or
   jetspeed is not compatible with the other? And what about the 
   performance?
   Could it be ok using all that? And is it possible to use them in Tomcat 
   or
   it is necessary JBoss? I want to find a free hosting and if it is 
   difficult
   to find in TomI tcat... I don't want to think in JBoss...
  
   Regards,
   Francisco
  
   From: mgai...@hotmail.com
   To: user@struts.apache.org
   Subject: RE: Doubts about new project (Struts2 good way to do it?)
   Date: Thu, 4 Jun 2009 15:43:55 -0400
  
  
   Good Afternoon Francisco
   i have an opinion on the subject which i would be more than happy to
   share with you
  
1) User preferences: every user can configure its window and
   maintain its configuration after save preferences and log in again.
   The
   user can select options from a list and position them where he
   wants.
   ¿Maybe using portlets?¿Changing css dinamically depending on logged
   user?¿Any other option?
   MGJetSpeed..tried and true Principal assignment to User,Group
   http://portals.apache.org/jetspeed-2/
  
2) Languages: every user can
   access in some languages. As I've tested, the language is configured
   with regional settings. But it is possible to select the language in
   the login page and maintain it during the session?
   MGsimple as setting request_locate to en requst_locale=es
   MGhttp://struts.apache.org/2.1.6/docs/how-do-we-change-locales.html
   
3) Persistence layer: better Hibernate or iBatis? About
performance?
   MGI think hibernate has more deploys be aware of lazy_init not
   creating all dependent objects in object graph
   https://www.hibernate.org/162.html
   
4) E-commerce: shop cart, what about security?
   MGSSL all the way..dont send cleartext for anything unless you want
   mailicious eavesdropper intervention!
   http://tomcat.apache.org/tomcat-6.0-doc/ssl-howto.html
   MGi can give you SSL solutions for OAS, WL, Resin, JBOSS if you
   need it
   
5) Sitemesh or Tiles? I've used tiles and it is ok, but the xml
are too long. About performance?
   MGSitemesh is the css handler that is preconfigured for Struts
       filter
           filter-namesitemesh/filter-name
  
   filter-classcom.opensymphony.module.sitemesh.filter.PageFilter/filter-class
       /filter
       filter-mapping
           filter-namesitemesh/filter-name
           url-pattern/*/url-pattern
       /filter-mapping
  
   MGif you like using VM macros coded thru SiteMesh then enable
   VelocityPageFilter in web.xml
           filter
               filter-namesitemesh/filter-name
  
   filter-classorg.apache.struts2.sitemesh.VelocityPageFilter/filter-class
           /filter
           filter-mapping
               filter-namesitemesh/filter-name
               url-pattern/*/url-pattern
           /filter-mapping
  
   and for freemarker
       filter
           filter-namesitemesh/filter-name
  
   filter-classorg.apache.struts2.sitemesh.FreeMarkerPageFilter/filter-class
       /filter
           filter-mapping
  
               filter-namesitemesh/filter-name
  
               url-pattern/*/url-pattern
  
           /filter-mapping
  
  
   Saludos Cordiales desde EEUU!
   Martin
   GMT+5(esta semana)
   
   
   
The options I've considered are:
   
Tomcat, MySQL, Struts2 with Spring IOC and open in view filter,
Sitemesh or Tiles, Hibernate or iBatis, Portlets.
   
Other option is use JSF. Which selection do you think would be
better?
   
  
  
   Martin Gainty
   __
   Jogi és Bizalmassági 

Re: Doubts about new project (Struts2 good way to do it?)

2009-06-08 Thread Dave Newton

Francisco Exposito wrote:

Do you have a list of functionalities of JSR168 portlets? Or some url to find 
info or examples...


http://tinyurl.com/kl69x4

Dave

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: Training

2009-06-08 Thread stanlick
I suspected this sort of training dialog was just beneath the surface.  The
sad matter of fact is both Wes and Martin are spot on from each of their
perspectives.  Wes works his tail off (I know because I have been reviewing
his new book) and Martin is a master technologist in business.  So who makes
the better argument?  Actually, I think they are both right on and this is
what scares me.

1) Quality training by a seasoned professional is expensive and time
consuming to design and develop - notice the word design.  Being prompted
through a PowerPoint presentation is only the tip of the iceberg and you
only know this is you have designed and developed training materials.  As
Wes points out, you first need to know the topic inside out (time, time,
time) and then be a great communicator.  I have seen my fair share of
seasoned pros on a topic who could not explain it to another human in twelve
months!  Next, you need good tools and the time to learn them.  Mastering an
effective graphics applications is no walk in the park yet illustrations are
effective and necessary.  When it comes to lab materials, their cumulative
nature throughout a course, and the degree of difficulty that neither runs
the class twelve hours a day nor leaves the students twiddling their thumbs
is an *art* not a *science*.  And the 201 level class that follows the 101
level must not only take all of this into account, but also leverage the
prerequisite course itself to minimize mental gear changing and maximize
content and context flow.

2) Now to Martin's argument.  Joe public looks around (pronounced Google)
and expects to find free or dirt cheap videos, presentations including
sample code, and emails where they can get free help.  I call this theme
you get what you pay for.  I have followed a couple JQuery training
avenues that fit this mold and after several hours jumping around, I can't
hit my ass with both hands!  The next JQuery freebie I click on suggests
techniques that are in direct opposition to yesterdays free lecture!  To
paint an anology let's suppose a Struts 2 newbie follows a freebie course at
Joe's Training Emporium where Joe has barely figured out how to code
himself.  But hey, his stuff contains jars enough to compile so he must be
an expert!  Between the kick-ass Flash graphics his brother-in-law put
together and an ass-load of sample code, you now have a web shopping site
with JSP files and Action classes that average 385 lines of code in each
execute() method -- but it works!  You ground your mental web around this
bag-of-ass design/code and are later asked to make a couple simple changes
to it.  Let me speed the analogy up a little so I am not late for work this
morning -- after several weeks of spinning and subsequently being fired
because you have been revealed as the hack you are, you decide (hey
unemployment causes you to do creative things) to actually drop a few bucks
on education, either through published material or a formal class.  You
realize their are tiers and dependency injection.  You see that rolling
hand-coded JDBC code is no longer in style and that while writing Java code
on a web page is possible, it comes back to bite your ass like a coiled up
cobra!

Great and effective training is expensive and time consuming.  My
step-father is a single proprietor plumber with one of those cool vans full
of tools and we often discuss his investment in his business. If he does not
dig deep into his own pocket to keep himself and his tool van sharply honed
for his customers, his competitor will put him out of business.  Does he
like spending money no training and tools?  He says its cheaper to pay his
dues to remain a professional than it would be to buy a freeezer and convert
over to an ice-cream and lollipop vendor.

You decide -- professional or a clown driving a musical van.

Peace,
Scott

On Sun, Jun 7, 2009 at 1:54 PM, Martin Gainty mgai...@hotmail.com wrote:


 font size=1you cannot guarantee something you have no control/font
 scott could you make sure that gets into brochure?

 vielen danke/thanks,
 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: Sun, 7 Jun 2009 14:38:22 -0400
  From: newton.d...@yahoo.com
  To: user@struts.apache.org
  Subject: Re: Training
 
  Martin Gainty wrote:
   wes-I cant speak for Motorola 64k code (MAC) as i have yet to coded
for that platform but it sounds challenging does Struts work on
 Motorola
 
  
 
  Old Macs used the 68K. Struts works on Java and in app containers, not
  on specific 

Re: Re [S2] development tool

2009-06-08 Thread Nils-Helge Garli Hegvik
I don't think anyone is _threatened_ by RAD tools. To be a threat,
they would have to be better than the alternatives And they're
not I have yet to see a RAD (as in point and click programming)
tool that is actually more productive taking the entire lifecycle of a
development project into consideration. The reason we're (I'm) so
against it is having those tools pushed down our throats by some
non-technology guy who just came home from a golf trip with someone
from their software partner (btw: I'm not referring to you ;)... I
would certainly welcome any tool that actually makes developing and
maintaining web applications easier.

Nils-H

On Fri, Jun 5, 2009 at 10:19 PM, duane5...@hotmail.com wrote:
 To the group:
 How threatened do you feel toward RAD tools? Do you feel that a RAD
 environment would take your 5 man team to a one-man team, or do you see
 (company-mentality) the 5 man team taking the company to market 5 times
 faster(overall SDLC) and seeing new projects( that appear out of reach)
 becoming a reality? Do you look at the company having a real competitive
 advantage, or do you see job cuts? I agree that, in this market, things look
 a little dim. How less-dim do things look(for the company) when budget
 constraints are loosened and projects start moving again?  I guess this is a
 question of: is your glass half-full or half empty?

 Think big!
 Duane

 --
 From: duane5...@hotmail.com
 Sent: Friday, June 05, 2009 2:07 PM
 To: struts-user user@struts.apache.org
 Subject: Re [S2] development tool

 I noticed the posting on training was not met with huge opposition for
 solicitation in the manner it was presented...
 My turn  :

 We've been toying with creating a development tool/methodology that
 encompases Struts, Spring, Hibernate, some code generation(not 1 screen at a
 time, but a replication of complete cataloged solution).  My question is:
 what model would the community best receive of the following:

 -license, $X.00 month per seat
 -free development license and non-commercial runtime, commercial runtime
 fee per cpu
 -combination of the first two(lesser per seat license combined with a
 runtime license)

 The core features of the tool are
 -20X faster development compared to current market alternatives
 -90% point and click development(business rules must be coded) which
 allows developers to focus on business, not assembling technologies and
 frameworks
 -new frameworks can be induced by modifying catalog. Once written, never
 write it again
 -Portal style look and feel, comes with role-base
 authentication/authorization out-of-the-box
 -custom tag libraries are advanced and easy to use, makes application
 integration(and long term maintenance) simpler
 -enables daily scrum sessions in an agile development environment
 -all major App Servers supported
 -all major Database supported
 -java version is production ready
 -C#/.Net version is due out in a few months 80% complete(looking for
 developers, send resume if you like to contribute)

 I'll demo the platform to anyone interested. Just write and express
 interest and we can do this online with Skype and GoToMeeting

 If you are interested in outsourcing. I have developers fluent with this
 tool that are looking for projects.
 Thanks for your consideration

 Duane



 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org



 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org



-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: Training

2009-06-08 Thread Wes Wannemacher
On Mon, Jun 8, 2009 at 8:51 AM, stanl...@gmail.com wrote:
[...]

 Great and effective training is expensive and time consuming.  My
 step-father is a single proprietor plumber with one of those cool vans full
 of tools and we often discuss his investment in his business. If he does not
 dig deep into his own pocket to keep himself and his tool van sharply honed
 for his customers, his competitor will put him out of business.  Does he
 like spending money no training and tools?  He says its cheaper to pay his
 dues to remain a professional than it would be to buy a freeezer and convert
 over to an ice-cream and lollipop vendor.

 You decide -- professional or a clown driving a musical van.


This analogy is one I often make... Compared to most industries, IT is
in its infancy. Plumbers, electricians, masons, etc. have unions. Not
that I'm pro-union, but the way these unions operate are different
than say the autoworkers union. For one, you can't just buy the van
and tools and expect to open up a plumbing business, these unions
protect their industry to the extent that you have to complete an
apprenticeship before being in the club that gets to bid on the jobs
that will put food on your table. Now, I could be completely wrong on
how it works, as this is my outside-view on it (I don't have any close
friends or family in one of these industries). But, the unions also
set pricing so that it is fair to the union members. You can probably
open the phone book and find a low-cost plumber, but its hard since
good plumbers (read - qualified to be in the union) want to retain
their status and ability to bid the big jobs, so they won't stab their
compatriots by undercutting them on price.

Most of these practices seem unfair, when you're on the outside
looking in, but in IT we spend quite a bit of time dealing with the
lack of governing body. I'm sure I'm not the only one who has had to
deal with some business owner's relative's mistakes. Heck, I even have
an uncle who fixes computers for a few neighbors and thinks I should
consult him on the book I'm writing. It's not that I think we should
start an exclusive club, but I work hard to avoid the situation where
I risk my reputation on a project/job that is doomed from the start.
Certifications became popular a while ago, but went out almost as
quick as they came in since it became easy to study for the test and
not learn the material. I would suggest that a college education is a
good start, but their are multiple problems there - 1) colleges can't
keep up with technology. When a student declares a major, there is
sort of an agreement that the list of classes he agrees to take, if
passed, will earn him a degree. 4 years later, how many new features
have been introduced to Java (all of our favorite language), and Java
is fairly stable in this respect. 2) Some of the best engineers I know
weren't CS majors, or did not finish. I never finished school, I've
been to 4 different schools and had 4 different majors but career and
family obligations have caused me to postpone finishing over and over
again. I've also worked with English and Music majors that were great
programmers, beating the pants off of some of the CS Masters' I've
worked with.

Anyhow, it's a tough problem that we won't likely solve on this list,
but I eagerly watch the industry as it evolves.

-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-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



RE: Training

2009-06-08 Thread Martin Gainty

 Date: Mon, 8 Jun 2009 07:51:29 -0500
 Subject: Re: Training
 From: stanl...@gmail.com
 To: user@struts.apache.org
 
 I suspected this sort of training dialog was just beneath the surface.  The
 sad matter of fact is both Wes and Martin are spot on from each of their
 perspectives.  Wes works his tail off (I know because I have been reviewing
 his new book) and Martin is a master technologist in business.  
MGlook at mysql ..best DB on the market but barely enough rev to keep lights on
MGwhat happened was the brilliant engineers at mysql gave away too much
MGwithout understanding you still need to make money..you need paying 
customers!

So who makes
 the better argument?  Actually, I think they are both right on and this is
 what scares me.
 
 1) Quality training by a seasoned professional is expensive and time
 consuming to design and develop - notice the word design.  Being prompted
 through a PowerPoint presentation is only the tip of the iceberg and you
 only know this is you have designed and developed training materials.  As
 Wes points out, you first need to know the topic inside out (time, time,
 time) and then be a great communicator.  I have seen my fair share of
 seasoned pros on a topic who could not explain it to another human in twelve
 months!  Next, you need good tools and the time to learn them.  Mastering an
 effective graphics applications is no walk in the park yet illustrations are
 effective and necessary.  When it comes to lab materials, their cumulative
 nature throughout a course, and the degree of difficulty that neither runs
 the class twelve hours a day nor leaves the students twiddling their thumbs
 is an *art* not a *science*.  
MGyou only know what students learned by getting feedback (chatting or HW)
MGin the public sector they use pop quizes but students are not fond of that
MGperhaps bruce can elaborate what feedback mechanism he uses?

And the 201 level class that follows the 101
 level must not only take all of this into account, but also leverage the
 prerequisite course itself to minimize mental gear changing and maximize
 content and context flow.
MGi present inheritance today i use it for designing GL to Subledger 
accounting 
MGor OrderHeader to Order LI design tommorrow i have validated they know the 
MGconcept of inheritance..onto to encapsulation..
MGthen i'll toss in a struts Action with namespace for a more concrete example

 2) Now to Martin's argument.  Joe public looks around (pronounced Google)
 and expects to find free or dirt cheap videos, presentations including
 sample code, and emails where they can get free help.  I call this theme
 you get what you pay for.  I have followed a couple JQuery training
 avenues that fit this mold and after several hours jumping around, I can't
 hit my ass with both hands!  The next JQuery freebie I click on suggests
 techniques that are in direct opposition to yesterdays free lecture!  To
 paint an anology let's suppose a Struts 2 newbie follows a freebie course at
 Joe's Training Emporium where Joe has barely figured out how to code
 himself.  But hey, his stuff contains jars enough to compile so he must be
 an expert!  Between the kick-ass Flash graphics his brother-in-law put
 together and an ass-load of sample code, you now have a web shopping site
 with JSP files and Action classes that average 385 lines of code in each
 execute() method -- but it works!  You ground your mental web around this
 bag-of-ass design/code and are later asked to make a couple simple changes
 to it.  Let me speed the analogy up a little so I am not late for work this
 morning -- after several weeks of spinning and subsequently being fired
 because you have been revealed as the hack you are, you decide (hey
 unemployment causes you to do creative things) to actually drop a few bucks
 on education, either through published material or a formal class.  You
 realize their are tiers and dependency injection.  You see that rolling
 hand-coded JDBC code is no longer in style and that while writing Java code
 on a web page is possible, it comes back to bite your ass like a coiled up
 cobra!
MGtaking a training class in tapestry when i know the only apps written are in 
OR
MGmaybe no
MGtaking a training class in JSF when i know the only apps written are around 
santa
MGclara..maybe not
MGtaking a Spring training class from one of the world's masters Juergen-sign 
me up!

MGjsp JDBC with no connection-pools or resource config is NOT for the light 
o'heart!
MGtrying to shoe-horn that into webapp server will be a real-challenge

 Great and effective training is expensive and time consuming.  My
 step-father is a single proprietor plumber with one of those cool vans full
 of tools and we often discuss his investment in his business. If he does not
 dig deep into his own pocket to keep himself and his tool van sharply honed
 for his customers, his competitor will put him out of business.  Does he
 like spending money no training and tools?  He says 

RE: Training

2009-06-08 Thread Martin Gainty

MGhopefully brief comment!

 Date: Mon, 8 Jun 2009 09:19:56 -0400
 Subject: Re: Training
 From: w...@wantii.com
 To: user@struts.apache.org
 
 On Mon, Jun 8, 2009 at 8:51 AM, stanl...@gmail.com wrote:
 [...]
 
  Great and effective training is expensive and time consuming.  My
  step-father is a single proprietor plumber with one of those cool vans full
  of tools and we often discuss his investment in his business. If he does not
  dig deep into his own pocket to keep himself and his tool van sharply honed
  for his customers, his competitor will put him out of business.  Does he
  like spending money no training and tools?  He says its cheaper to pay his
  dues to remain a professional than it would be to buy a freeezer and convert
  over to an ice-cream and lollipop vendor.
 
  You decide -- professional or a clown driving a musical van.
 
 
 This analogy is one I often make... Compared to most industries, IT is
 in its infancy. Plumbers, electricians, masons, etc. have unions. Not
 that I'm pro-union, but the way these unions operate are different
 than say the autoworkers union. For one, you can't just buy the van
 and tools and expect to open up a plumbing business, these unions
 protect their industry to the extent that you have to complete an
 apprenticeship before being in the club that gets to bid on the jobs
 that will put food on your table. Now, I could be completely wrong on
 how it works, as this is my outside-view on it (I don't have any close
 friends or family in one of these industries). But, the unions also
 set pricing so that it is fair to the union members. You can probably
 open the phone book and find a low-cost plumber, but its hard since
 good plumbers (read - qualified to be in the union) want to retain
 their status and ability to bid the big jobs, so they won't stab their
 compatriots by undercutting them on price.
MGa subcontractor to a subcontractor to a subcontractror
MG100 iterations later no wonder why the agency only pays min wage!
MGi've worked with folks who wiresharked your email thru their router
MGand advertise their cutrate service to your client BEFORE you have a chance!
 
 Most of these practices seem unfair,
MGproblem when leave the US border and copyrighted material becomes meaningless

 when you're on the outside
 looking in, but in IT we spend quite a bit of time dealing with the
 lack of governing body. 
MGtheir is the JCP who create the JSRs but they dont enforce

 I'm sure I'm not the only one who has had to
 deal with some business owner's relative's mistakes. Heck, I even have
 an uncle who fixes computers for a few neighbors and thinks I should
 consult him on the book I'm writing.
MGgetting feedback from the field always a good idea!

It's not that I think we should
 start an exclusive club, but I work hard to avoid the situation where
 I risk my reputation on a project/job that is doomed from the start.
MGtry working for someone where the prev contractor sabotages the doc/code

 Certifications became popular a while ago, but went out almost as
 quick as they came in since it became easy to study for the test and
 not learn the material. I would suggest that a college education is a
 good start, but their are multiple problems there - 1) colleges can't
 keep up with technology.
MGmy biggest gripe of the brick and mortar schools ..they barely cover J2EE
MGmost of the technology stacks involve heavy ide (DotNet)
MGand when they do venture to J2EE they teach 1.x versions including Struts

 When a student declares a major, there is
 sort of an agreement that the list of classes he agrees to take, if
 passed, will earn him a degree. 4 years later, how many new features
 have been introduced to Java (all of our favorite language), and Java
 is fairly stable in this respect. 
MGagree.. annotations and generic classes were the last 2 features i've seen

2) Some of the best engineers I know
 weren't CS majors, or did not finish. I never finished school, I've
 been to 4 different schools and had 4 different majors but career and
 family obligations have caused me to postpone finishing over and over
 again. I've also worked with English and Music majors that were great
 programmers, beating the pants off of some of the CS Masters' I've
 worked with.
MGyep.. dale and yourself comes to mind

 Anyhow, it's a tough problem that we won't likely solve on this list,
 but I eagerly watch the industry as it evolves.
MGcompetition is a good thing..but outright disloyalty needs to be mitigated

MGGood Analysis!
 -Wes
MGMG
 
 -- 
 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-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org
 

_
Windows Live™: Keep your life 

Interceptor - Conditional Redirect to alternate action

2009-06-08 Thread Mitchell, Steven
I need to put an interceptor after the cookie interceptor that will send
the user to a preference page if a preference cookie is missing rather
than let the desired action fire--like a guard condition. If I was using
a Filter I would just do a redirect. 

Eventually I will also add a Flash shared object as a back-up to the
cookie, so I'll need to put a Flash shared object interceptor in the
stack too. The redirector interceptor would check the cookie and flash
token values put set by the previous interceptors in the stack. If both
are missing, then a different action needs to fire.

Where can I find an example of an interceptor that conditionally
redirects the user to an alternate action? I'm having trouble
picturing how the plumbing would work and I think an example of this
kind would be a big help.

Steve Mitchell
http://www.ByteworksInc.com


--
NOTICE:  This electronic mail message and any attached files are confidential.  
The information is exclusively for the use of the individual or entity intended 
as the recipient.  If you are not the intended recipient, any use, copying, 
printing, reviewing, retention, disclosure, distribution or forwarding of the 
message or any attached file is not authorized and is strictly prohibited.  If 
you have received this electronic mail message in error, please advise the 
sender by reply electronic mail immediately and permanently delete the original 
transmission, any attachments and any copies of this message from your computer 
system. Thank you.

==


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: Interceptor - Conditional Redirect to alternate action

2009-06-08 Thread Wes Wannemacher
Could you use a global-result?

http://struts.apache.org/2.x/docs/result-configuration.html#ResultConfiguration-GlobalResults

I would just think up a unique name for the set of conditions that
should cause the redirect. Then, configure that string as a
global-result and write your interceptor to do the check and return
the string if the conditions are met and action.invoke otherwise.

-Wes

On Mon, Jun 8, 2009 at 10:09 AM, Mitchell,
Stevensteven.mitch...@umb.com wrote:
 I need to put an interceptor after the cookie interceptor that will send
 the user to a preference page if a preference cookie is missing rather
 than let the desired action fire--like a guard condition. If I was using
 a Filter I would just do a redirect.

 Eventually I will also add a Flash shared object as a back-up to the
 cookie, so I'll need to put a Flash shared object interceptor in the
 stack too. The redirector interceptor would check the cookie and flash
 token values put set by the previous interceptors in the stack. If both
 are missing, then a different action needs to fire.

 Where can I find an example of an interceptor that conditionally
 redirects the user to an alternate action? I'm having trouble
 picturing how the plumbing would work and I think an example of this
 kind would be a big help.

 Steve Mitchell
 http://www.ByteworksInc.com


 --
 NOTICE:  This electronic mail message and any attached files are 
 confidential.  The information is exclusively for the use of the individual 
 or entity intended as the recipient.  If you are not the intended recipient, 
 any use, copying, printing, reviewing, retention, disclosure, distribution or 
 forwarding of the message or any attached file is not authorized and is 
 strictly prohibited.  If you have received this electronic mail message in 
 error, please advise the sender by reply electronic mail immediately and 
 permanently delete the original transmission, any attachments and any copies 
 of this message from your computer system. Thank you.

 ==


 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org





-- 
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-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



RE: Interceptor - Conditional Redirect to alternate action

2009-06-08 Thread Mitchell, Steven
Oh, wow, that's incredibly simple.  I was making it too complicated in my mind, 
thinking I needed to tell the ActionInvocation class not to allow the original 
action to fire. 

I see now that the answer was right there in the API [Interceptor.intercept()] 
- Allows the Interceptor to... short-circuit the processing and just return a 
String return code.

-Original Message-
From: Wes Wannemacher [mailto:w...@wantii.com] 
Sent: Monday, June 08, 2009 9:14 AM
To: Struts Users Mailing List
Subject: Re: Interceptor - Conditional Redirect to alternate action

Could you use a global-result?

http://struts.apache.org/2.x/docs/result-configuration.html#ResultConfiguration-GlobalResults

I would just think up a unique name for the set of conditions that
should cause the redirect. Then, configure that string as a
global-result and write your interceptor to do the check and return
the string if the conditions are met and action.invoke otherwise.

-Wes

On Mon, Jun 8, 2009 at 10:09 AM, Mitchell,
Stevensteven.mitch...@umb.com wrote:
 I need to put an interceptor after the cookie interceptor that will send
 the user to a preference page if a preference cookie is missing rather
 than let the desired action fire--like a guard condition. If I was using
 a Filter I would just do a redirect.

 Eventually I will also add a Flash shared object as a back-up to the
 cookie, so I'll need to put a Flash shared object interceptor in the
 stack too. The redirector interceptor would check the cookie and flash
 token values put set by the previous interceptors in the stack. If both
 are missing, then a different action needs to fire.

 Where can I find an example of an interceptor that conditionally
 redirects the user to an alternate action? I'm having trouble
 picturing how the plumbing would work and I think an example of this
 kind would be a big help.

 Steve Mitchell
 http://www.ByteworksInc.com


 --
 NOTICE:  This electronic mail message and any attached files are 
 confidential.  The information is exclusively for the use of the individual 
 or entity intended as the recipient.  If you are not the intended recipient, 
 any use, copying, printing, reviewing, retention, disclosure, distribution or 
 forwarding of the message or any attached file is not authorized and is 
 strictly prohibited.  If you have received this electronic mail message in 
 error, please advise the sender by reply electronic mail immediately and 
 permanently delete the original transmission, any attachments and any copies 
 of this message from your computer system. Thank you.

 ==


 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org





-- 
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-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Problem with displayTag

2009-06-08 Thread Bhaarat Sharma
Hi guys,
I'm starting displaytag for the first time.

I have a simple Struts2 action that is returning a list.  The list contains
elements of Class Apple.

Following is the code I have:

s:set name=list value=testList scope=session /


display:table name=sessionScope.list pagesize=4
   display:column property=name title=Name /
   /display:table

This works ok, however, when I click 'next page' the page says 'Nothing
found to display.'

Does anyone know how to fix this?


Re: Return to previous page without javascript

2009-06-08 Thread Paweł Wielgus
Hi Stefano,

 have u got an example or a tutorial about how to return an url?
I think i was using something like #request.uri or #request.getURI(),
read more here:
http://cwiki.apache.org/WW/ognl-basics.html
or simply put it inside a page from action where You can implement
ServletAware or RequestAware.

 the ajax login with tiles is a little bit complex, i don't found any simple
 example online.

it's exactly the same as without tiles, simply put inside that tile a
form and submit it with ajax:
http://docs.jquery.com/Ajax

Tiles is just a composition of a site not functionality.



 how can i take the current url in a jsp?
read my first line.

Best greetings,
Paweł Wielgus.

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



jQuery Plugin

2009-06-08 Thread Johannes Geppert

Hello,

since last Friday i have lunched a new jQuery plugin for struts2 at Google
Code.
http://code.google.com/p/struts2-jquery/

It provides an AJAX Support for Links, Forms and Divs.
Support for Themes from jQuery Themeroller and some 
Widgets from jQuery UI like Tabs, Datepicker, Dialog
and Accordion.

It would be great if anyone has some response for me,
because its my first plugin fro struts2. 

Have fun with this

Johannes Geppert
http://www.jgeppert.com
-- 
View this message in context: 
http://www.nabble.com/jQuery-Plugin-tp23925854p23925854.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



struts2-jquery-plugin ThemeRoller (part deux)

2009-06-08 Thread Martin Gainty

trying to get some information on JQuery themeroller 
here is the main page for JQuery themeroller
script
type=text/javascript src=js/jquery-ui-1.7.2.custom.min.js/script
// Accordion
$(#accordion).accordion({ header: h3 });
// Tabs
$('#tabs').tabs();
// Dialog   
$('#dialog').dialog({
//Ok..cancel and hooks to JS functions defined above
});

// Dialog Link
$('#dialog_link').click(function(){
$('#dialog').dialog('open');
return false;
});

// Datepicker
$('#datepicker').datepicker({
inline: true
});

// Slider
$('#slider').slider({
range: true,
values: [17, 67]
});

// Progressbar
$(#progressbar).progressbar({
value: 20 
});

//hover states on the static widgets
$('#dialog_link, ul#icons li').hover(
function() { 
$(this).addClass('ui-state-hover'); }, 
function() { 
$(this).removeClass('ui-state-hover'); }
);

});
/script
  body//lots of forms and data tags which call javascript 
functions defined above
/body
how does the component illustration for Themeroller differ from standard Jquery?
is there a set of functions that are available in ThemeRoller which are not in 
JQueryMartin Gainty 
__ 
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
 
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.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est 
interdite. Ce message sert à l'information seulement et n'aura pas n'importe 
quel effet légalement obligatoire. Étant donné que les email peuvent facilement 
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité 
pour le contenu fourni.



_
Hotmail® has ever-growing storage! Don’t worry about storage limits. 
http://windowslive.com/Tutorial/Hotmail/Storage?ocid=TXT_TAGLM_WL_HM_Tutorial_Storage_062009

[S2] Issue with NamedVariablePatternMatcher and ActionConfigMatcher?

2009-06-08 Thread cilquirm


Hi all,

I've been spending time with Struts 2.1.6, and the
NamedVariablePatternMatcher, and I've come across a potential issue. 

The issue comes into play when defining a class such as this :

@Namespace(/content/{year}/{month})
public class ContentAction extends ActionSupport {

  private Integer year = null, month = null;
  private String article =  null;

  public void setYear(Integer y) { this.year = y; }
  public Integer getYear() { return this.year; }

  public void setMonth(Integer m) { this.month = m; }
  public Integer getMonth() { return this.month; }

  public void setArticle(String a) { this.article = a: }
  public String getArticle() { return this.article; }

  @Action(value = {article}, results = { @Result(name=success, location
= /WEB-INF/content/content.jsp ) } , params = { article, {article} } )
  public String execute() {
 // do some db stuff
 return SUCCESS;
  }

}

In this case, I'm trying to wildcard map all my content into a single
action, and be able to get the name of the content being matched.. 

Hence, 
http://webserver.com/myapp/content/2009/01/some-piece-of-content.action
should result in :

year - 2009
month - 1
article = some-piece-of-content
 
The problem it seems, is that while the NamespaceMatcher defers to the
NamedVariablePatternMatcher to parse out and map to parameters in the
Namespace configuration, the ActionConfigMatcher still believes it's using a
simple wildcard matcher, as it calls AbstractMatcher's convertParam, which
only checks for variable names of length ( i assume this is because it's
only looking for parameter names 1 through 9 )

I have a temporary hack where I replace AbstractMatcher with my own slightly
modified version which does it's replacement much like how
NamedVariablePatternMatcher does it ( like a simplistic state-machine )

I would open up a ticket on this but I wanted to understand if i was
possibly doing something wrong, or if I had missed another angle at it, or
better still, if there was already thinking and work done behind this.

Thanks in advance for any help you might be able to provide,

-a
-- 
View this message in context: 
http://www.nabble.com/-S2--Issue-with-NamedVariablePatternMatcher-and-ActionConfigMatcher--tp23930585p23930585.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: struts2-jquery-plugin ThemeRoller (part deux)

2009-06-08 Thread Musachy Barroso
the jquery list would be the place to ask.

musachy

On Mon, Jun 8, 2009 at 11:58 AM, Martin Gaintymgai...@hotmail.com wrote:

 trying to get some information on JQuery themeroller
 here is the main page for JQuery themeroller
 script
 type=text/javascript src=js/jquery-ui-1.7.2.custom.min.js/script
                                // Accordion
                                $(#accordion).accordion({ header: h3 });
                                // Tabs
                                $('#tabs').tabs();
                                // Dialog
                                $('#dialog').dialog({
 //Ok..cancel and hooks to JS functions defined above
                                });

                                // Dialog Link
                                $('#dialog_link').click(function(){
                                        $('#dialog').dialog('open');
                                        return false;
                                });

                                // Datepicker
                                $('#datepicker').datepicker({
                                        inline: true
                                });

                                // Slider
                                $('#slider').slider({
                                        range: true,
                                        values: [17, 67]
                                });

                                // Progressbar
                                $(#progressbar).progressbar({
                                        value: 20
                                });

                                //hover states on the static widgets
                                $('#dialog_link, ul#icons li').hover(
                                        function() { 
 $(this).addClass('ui-state-hover'); },
                                        function() { 
 $(this).removeClass('ui-state-hover'); }
                                );

                        });
                /script
          body        //lots of forms and data tags which call javascript 
 functions defined above
        /body
 how does the component illustration for Themeroller differ from standard 
 Jquery?
 is there a set of functions that are available in ThemeRoller which are not 
 in JQueryMartin Gainty
 __
 Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité

 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.
 Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
 destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
 l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci 
 est interdite. Ce message sert à l'information seulement et n'aura pas 
 n'importe quel effet légalement obligatoire. Étant donné que les email 
 peuvent facilement être sujets à la manipulation, nous ne pouvons accepter 
 aucune responsabilité pour le contenu fourni.



 _
 Hotmail® has ever-growing storage! Don’t worry about storage limits.
 http://windowslive.com/Tutorial/Hotmail/Storage?ocid=TXT_TAGLM_WL_HM_Tutorial_Storage_062009



-- 
Hey you! Would you help me to carry the stone? Pink Floyd

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



RE: struts2-jquery-plugin ThemeRoller (part deux)

2009-06-08 Thread Martin Gainty

looked as if Theme was using the same components and the same JS funcs as 
JQuery base

thanks!
Martin Gainty 
__ 
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
 
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.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est 
interdite. Ce message sert à l'information seulement et n'aura pas n'importe 
quel effet légalement obligatoire. Étant donné que les email peuvent facilement 
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité 
pour le contenu fourni.




 Date: Mon, 8 Jun 2009 13:34:57 -0700
 Subject: Re: struts2-jquery-plugin ThemeRoller (part deux)
 From: musa...@gmail.com
 To: user@struts.apache.org
 
 the jquery list would be the place to ask.
 
 musachy
 
 On Mon, Jun 8, 2009 at 11:58 AM, Martin Gaintymgai...@hotmail.com wrote:
 
  trying to get some information on JQuery themeroller
  here is the main page for JQuery themeroller
  script
  type=text/javascript src=js/jquery-ui-1.7.2.custom.min.js/script
 // Accordion
 $(#accordion).accordion({ header: h3 });
 // Tabs
 $('#tabs').tabs();
 // Dialog
 $('#dialog').dialog({
  //Ok..cancel and hooks to JS functions defined above
 });
 
 // Dialog Link
 $('#dialog_link').click(function(){
 $('#dialog').dialog('open');
 return false;
 });
 
 // Datepicker
 $('#datepicker').datepicker({
 inline: true
 });
 
 // Slider
 $('#slider').slider({
 range: true,
 values: [17, 67]
 });
 
 // Progressbar
 $(#progressbar).progressbar({
 value: 20
 });
 
 //hover states on the static widgets
 $('#dialog_link, ul#icons li').hover(
 function() { 
  $(this).addClass('ui-state-hover'); },
 function() { 
  $(this).removeClass('ui-state-hover'); }
 );
 
 });
 /script
   body//lots of forms and data tags which call javascript 
  functions defined above
 /body
  how does the component illustration for Themeroller differ from standard 
  Jquery?
  is there a set of functions that are available in ThemeRoller which are not 
  in JQueryMartin Gainty
  __
  Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
 
  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.
  Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
  destinataire prévu, nous te demandons avec bonté que pour satisfaire 
  informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie 
  de ceci est interdite. Ce message sert à l'information seulement et n'aura 
  pas n'importe quel effet légalement obligatoire. Étant donné que les email 
  peuvent facilement être sujets à la manipulation, nous ne pouvons accepter 
  aucune responsabilité pour le contenu fourni.
 
 
 
  _
  Hotmail® has ever-growing storage! Don’t worry about storage limits.
  

struts2 - s:testfield exception for long type

2009-06-08 Thread Abdul Qayyum
Hi,
I am doing a simple CURD using Struts 2 and Hibernatge3. I am using a Long
type in my bean for a property as
 private Long priceMrp;

Since this property has a Long type, its getter and setter correspondingly
use Long type in the model bean.

 public Long getPriceMrp() {
return this.priceMrp;
}

public void setPriceMrp(Long priceMrp) {
this.priceMrpPerPiece = priceMrp;
}

In my action I am creating a private object for this model with getter and
setter and using s:textfield to pass input to these fields.

s:textfield required=true requiredposition=left maxLength=10
label=MRP name=price.priceMrp title=Enter price /

While evaluating the framework is expecting getter and setter to be using
String and since it does not find them an ognl expression is being thrown as
follows:

[#|2009-06-09T02:09:30.504+0530|WARNING|sun-appserver9.1|com.opensymphony.xwork2.ognl.OgnlValueStack|_ThreadID=19;_ThreadName=httpSSLWorkerThread-14859-1;_RequestID=989f204d-78dd-4aae-9835-fddb0969e318;|Error
setting value
ognl.MethodFailedException: Method setPriceMrpPerPiece failed for object
com.sagri.app.model.pr...@47808b [java.lang.NoSuchMethodException:
setPriceMrp([Ljava.lang.String;)]
 at ognl.OgnlRuntime.callAppropriateMethod(OgnlRuntime.java:823)


I want to know if there is any standard way to solve this problem in Struts
2. What is the best way to address this problem.

Should i create the property priceMrp in my action and have it use String
type then do the assignment myself like
price.setpriceMrp( Long.valueOf(strPriceValue); //is this approach valid

Please suggest. Thanks in Advance
Abdul Sagri


Re: jQuery Plugin

2009-06-08 Thread Miguel
I'll test it. I use jquery with s2 by hand (didn't understood the
dojo tags, so i made my own code), so it would be a great help to stop
hard coding the same 3 lines page by page.
Does uses the same syntax and names of the sx tags?

I'll post my findings.

Si quieres ser más positivo, pierde un electrón
Miguel Ruiz Velasco Sobrino



On Mon, Jun 8, 2009 at 10:07, Johannes Geppertjo...@web.de wrote:

 Hello,

 since last Friday i have lunched a new jQuery plugin for struts2 at Google
 Code.
 http://code.google.com/p/struts2-jquery/

 It provides an AJAX Support for Links, Forms and Divs.
 Support for Themes from jQuery Themeroller and some
 Widgets from jQuery UI like Tabs, Datepicker, Dialog
 and Accordion.

 It would be great if anyone has some response for me,
 because its my first plugin fro struts2.

 Have fun with this

 Johannes Geppert
 http://www.jgeppert.com
 --
 View this message in context: 
 http://www.nabble.com/jQuery-Plugin-tp23925854p23925854.html
 Sent from the Struts - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org



-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org