[Struts 2] ?debug=console (devMode) not working

2010-01-20 Thread Fernandes Celinio
Hi,
I am trying to run the debug console that is available in a popup when you 
append the URL with ?debug=console
It is described here : 
http://struts.apache.org/2.0.14/docs/debugging.html

Here is the URL i used :
http://localhost:8085/myWebApp/doLogin.action?debug.console

It complains that it cannot create a session after the response was sent.
What did i do wrong or what am i missing ?
Thanks for helping.

Here is the stack trace i get :

Struts Problem Report

Struts has detected an unhandled exception:
# Messages: Impossible de cr�er une sessionapr�s que la r�ponse ait 
�t� envoy�e
File:   org/apache/catalina/connector/Request.java
Line number:2 338
Stacktraces
java.lang.IllegalStateException: Impossible de creer une session apres que la 
reponse ait ete envoyee

org.apache.catalina.connector.Request.doGetSession(Request.java:2338)
org.apache.catalina.connector.Request.getSession(Request.java:2094)

org.apache.catalina.connector.RequestFacade.getSession(RequestFacade.java:833)

javax.servlet.http.HttpServletRequestWrapper.getSession(HttpServletRequestWrapper.java:216)
org.apache.struts2.dispatcher.SessionMap.put(SessionMap.java:179)

org.apache.struts2.interceptor.debugging.DebuggingInterceptor.intercept(DebuggingInterceptor.java:272)

com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)

com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:126)

com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)

com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept(PrepareInterceptor.java:138)

com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)

com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)

com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:165)

com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)

org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:164)

com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)

com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasInterceptor.java:179)

com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)

com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:176)

com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)
org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:52)
org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:488)

org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:77)

org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:91)

org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)

org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)

org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)

org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:183)

org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:95)

org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)

org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)

org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)

org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)

org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)

org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
java.lang.Thread.run(Unknown Source)


You are seeing this page because development mode is enabled. Development mode, 
or devMode, enables extra 

[Struts 2.1.8] Is the Dojo plugin really deprecated on Struts 2.1 ?

2009-12-21 Thread Fernandes Celinio
Hi,
According to the documentation, the The Dojo plugin will be deprecated
on Struts 2.1.
http://struts.apache.org/2.1.8/docs/ajax-tags.html

Is that true ? 
I have been playing with it lately, it seems to work well.
If it is really deprecated, what is the replacement then ? jQuery ?

What JavaScript framework / JavaScript plugin should we use with Struts
2 then ?

Thanks for your feedback.

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



RE: [Struts 2.1.8] Is the Dojo plugin really deprecated on Struts 2.1 ?

2009-12-21 Thread Fernandes Celinio
 
Thanks for the info.
I have got 2 additional questions :
What is the motivation ? Why is Dojo deprecated in favour of jQuery ?

I am not too familiar with jQuery. Does it handle events/topics 
subscriptions/notifications like Dojo to
call Struts actions ? If yes, how ? Is there an example available somewhere ?

Thanks.


-Message d'origine-
De : Lukasz Lenart [mailto:lukasz.len...@googlemail.com] 
Envoyé : lundi 21 décembre 2009 12:53
À : Struts Users Mailing List
Objet : Re: [Struts 2.1.8] Is the Dojo plugin really deprecated on Struts 2.1 ?

2009/12/21 Fernandes Celinio cfernan...@sopragroup.com:
 Is that true ?

Yes

 I have been playing with it lately, it seems to work well.
 If it is really deprecated, what is the replacement then ? jQuery ?

Exactly, take a look on that
http://code.google.com/p/struts2-jquery/

it should be soon integrated into framework


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

-
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



JBoss 5.1.0 GA, Struts 2.0 and EJB 3.0 : SecurityClientFactory

2009-12-18 Thread Fernandes Celinio
Hi,

I have developped a stateful session bean where access to methods are
restricted :

 

@SecurityDomain(myDomainBlabla)
@RolesAllowed({xxx, yyy})
@Stateful
public class BlablaBean  implements BlablaRemote {


  @RolesAllowed({xxx})
public void doSomething(User user) {
...
}
...
}

 

Authentication and authorization worls well from a JUnit test case.
Inside my JUnit class, I perform a connection :

 

  SecurityClient securityClient =
SecurityClientFactory.getSecurityClient();   
securityClient.setSimple(user1, pwd1);   
securityClient.login();

No problem. The user with role xxx gets access to the method
doSomething(User user)
according to the files myApp-users.properties and myApp-roles.properties

 

I am now trying to authenticate the user in a Struts 2 action
(LoginAction) and propagate the role, using the same code :


SecurityClient securityClient =
SecurityClientFactory.getSecurityClient();   
securityClient.setSimple(user1, pwd1);   
securityClient.login();
   
It does not work, i get an error when i try to access the method
doSomething(User user) :

 

11:22:44,456 ERROR [STDERR] javax.ejb.EJBAccessException: Invalid User

 

What is wrong ? I am guessing i need to propagate the role to the entire
app, how do i do that ?

 

Thanks for helping

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



[Struts 2.18] Dojo tags and attributes (listenTopics, notifyTopics ...) with Facelets

2009-12-16 Thread Fernandes Celinio
Hi,

I am using the Dojo example that is described here :
http://struts.apache.org/2.0.14/docs/struts-2-spring-2-jpa-ajax.html

It works fine.
But if I integrate the 2 JSPs (index.jsp and list.jsp) in a Tiles
template then it fails :
The JSP index.jsp becomes involved in some sort of infinite loop, it
keeps showing up in my browser.

I am not too familiar with the Dojo tags yet. 
Before investigating any further i would like to know if someone already
has a clue about that ?

Thanks for helping.




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



RE: [Struts 2.18] Dojo tags and attributes (listenTopics, notifyTopics ...) with Facelets

2009-12-16 Thread Fernandes Celinio
By the way, I am using Struts 2.1.8, not 2.18 of course.

-Message d'origine-
De : Fernandes Celinio [mailto:cfernan...@sopragroup.com] 
Envoyé : mercredi 16 décembre 2009 18:26
À : Struts Users Mailing List
Objet : [Struts 2.18] Dojo tags and attributes (listenTopics, notifyTopics ...) 
with Facelets

Hi,

I am using the Dojo example that is described here :
http://struts.apache.org/2.0.14/docs/struts-2-spring-2-jpa-ajax.html

It works fine.
But if I integrate the 2 JSPs (index.jsp and list.jsp) in a Tiles template then 
it fails :
The JSP index.jsp becomes involved in some sort of infinite loop, it keeps 
showing up in my browser.

I am not too familiar with the Dojo tags yet. 
Before investigating any further i would like to know if someone already has a 
clue about that ?

Thanks for helping.




-
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: [Struts 2.1.8] Dojo tags and attributes (listenTopics, notifyTopics ...) with Tiles

2009-12-16 Thread Fernandes Celinio
Sorry I got the message completely wrong (end of the day ...) : I meant Tiles, 
not Facelets ! 

Any idea ? Thanks.


-Message d'origine-
De : Fernandes Celinio [mailto:cfernan...@sopragroup.com] 
Envoyé : mercredi 16 décembre 2009 18:29
À : Struts Users Mailing List
Objet : RE: [Struts 2.18] Dojo tags and attributes (listenTopics, notifyTopics 
...) with Facelets

By the way, I am using Struts 2.1.8, not 2.18 of course.

-Message d'origine-
De : Fernandes Celinio [mailto:cfernan...@sopragroup.com]
Envoyé : mercredi 16 décembre 2009 18:26 À : Struts Users Mailing List Objet : 
[Struts 2.18] Dojo tags and attributes (listenTopics, notifyTopics ...) with 
Facelets

Hi,

I am using the Dojo example that is described here :
http://struts.apache.org/2.0.14/docs/struts-2-spring-2-jpa-ajax.html

It works fine.
But if I integrate the 2 JSPs (index.jsp and list.jsp) in a Tiles template then 
it fails :
The JSP index.jsp becomes involved in some sort of infinite loop, it keeps 
showing up in my browser.

I am not too familiar with the Dojo tags yet. 
Before investigating any further i would like to know if someone already has a 
clue about that ?

Thanks for helping.




-
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



[Struts 2 + EJB 3] injection of EJBs into struts 2 actions

2009-12-04 Thread Fernandes Celinio
Hi,
I know that it is not possible to inject EJB in Struts 2 actions.
The following annotation would not work :
@EJB
MyBeanLocal mybean;
 
But how come ? Since a Struts action is a servlet and injection works in
a servlet, injection should work.
 
Thanks for enlightening me.
 


[Struts 2 + EJB 3] Display an image

2009-11-27 Thread Fernandes Celinio
Hi,

I have an entity bean which has a BLOB attribute. That BLOB attribute
maps to a BLOB column in a table in an Oracle database.

@Entity
public class Boo implements Serializable {
 ...
@Lob
@Basic(fetch=FetchType.LAZY)
private byte[] image;

public byte[] getImage() {
return image;
}

public void setImage(byte[] image) {
this.image = image;
}

...
}

I also have an Action class where i query that entity bean and put the
result into the session :

public class MyAction extends ActionSupport implements SessionAware {
...
  Public String someMethod() throws Exception {

Boo boo = blaRemote.findById(l);
session.put(boo , boo );

...
}


Finally in my JSP i display the various values of the attributes of that
Entity bean, including that image attribute :

s:property value=#session.boo.attributeN / br /   
img src=s:property value=#session.boo.image / / br /  

Of course I can display the value of all attributes except the image.

How do you display an image with Struts 2 ? Is there a specific tag for
it ?

Thanks for helping.

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



RE: [Struts 2 + EJB 3] Display an image

2009-11-27 Thread Fernandes Celinio
Hi,
Thanks for helping.

Well, I of course needed to call the action in my img tag.

It works.
Thanks again.

-Message d'origine-
De : Paweł Wielgus [mailto:poulw...@gmail.com] 
Envoyé : vendredi 27 novembre 2009 13:04
À : Struts Users Mailing List
Objet : Re: [Struts 2 + EJB 3] Display an image

Hi Fernandes,
i think that it is impossible what You are trying to achieve.
You cannot pur image to img tag inside html.
Img tag will result in just another http request, and this another request must 
be serviced by your server.

So the code will look like this:

img src=/showMyimage.action?id=123 /

And showMyImage action will simply return image as a result.

Also read very carrefully above e-mail from Saeed!

Best greetings,
Paweł Wielgus.



2009/11/27 Saeed Iqbal saee...@gmail.com:
 Are you putting the file name in session string or the binary file?

 On Friday, November 27, 2009, Fernandes Celinio 
 cfernan...@sopragroup.com wrote:
 Hi,

 I have an entity bean which has a BLOB attribute. That BLOB attribute 
 maps to a BLOB column in a table in an Oracle database.

 @Entity
 public class Boo implements Serializable {
  ...
 @Lob
        �...@basic(fetch=FetchType.LAZY)
         private byte[] image;

         public byte[] getImage() {
                 return image;
         }

         public void setImage(byte[] image) {
                 this.image = image;
         }

 ...
 }

 I also have an Action class where i query that entity bean and put 
 the result into the session :

 public class MyAction extends ActionSupport implements SessionAware {
         ...
   Public String someMethod() throws Exception {

                 Boo boo = blaRemote.findById(l);
                 session.put(boo , boo );

 ...
 }


 Finally in my JSP i display the various values of the attributes of 
 that Entity bean, including that image attribute :

     s:property value=#session.boo.attributeN / br /
     img src=s:property value=#session.boo.image / / br /

 Of course I can display the value of all attributes except the image.

 How do you display an image with Struts 2 ? Is there a specific tag 
 for it ?

 Thanks for helping.

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



 --
 Saeed Iqbal
 http://www.iqbalconsulting.com
 Struts - J2EE - Application Architect / Developer

 -
 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: [Struts 2.1.8] datetimepicker and action: String or Date ??

2009-11-16 Thread Fernandes Celinio
 
Any advice, please ?
Thanks.


-Message d'origine-
De : Celinio Fernandes [mailto:cel...@yahoo.com] 
Envoyé : dimanche 15 novembre 2009 23:08
À : Struts Users Mailing List
Objet : [Struts 2.1.8] datetimepicker and action: String or Date ??

Hi,
I have struts2-core-2.1.8.jar and xwork-core-2.1.6.jar in my classpath.

I read that there are many problems of conversion using the datetimepicker tag.

I checked the vault page here :
http://cwiki.apache.org/S2WIKI/troubleshooting-guide-migrating-from-struts-20x-to-21x.html#TroubleshootingguidemigratingfromStruts2.0.xto2.1.x-Userdefinedconverter%2528subclassingStrutsTypeConverter%2529willnolongerbeneededwhenusingdatetimepicker%253A


But what exactly is the type of the getter/setter in the action ??

For instance if I use this line in a JSP :
sx:datetimepicker name=expirationDate key=.dateexpiMois   
displayFormat=MM/ required=true/    


What getters should i get in my action ?

java.util.Date expirationDate;
    //String expirationDate;
    
    public java.util.Date getExpirationDate() {
        return expirationDate;
    }
    
    public void setExpirationDate(java.util.Date expirationDate) {
        this.expirationDate = expirationDate;
    }

== I get this error :
java.lang.NoSuchMethodException: 
com.eni.dvtejb.clientStruts2.action.PaiementAction.setExpirationDate([Ljava.lang.String;)

And if i use getter/setter of type String, it complains about some RFC format 
that is not valid.

So how exactly does it work ? Can someone provide a good example with the code 
for the action and the code for the JSP with the datetimepicker tag ?

Thanks.



  

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



RE: [Struts 2.1.8] datetimepicker and action: String or Date ??

2009-11-16 Thread Fernandes Celinio
 

This is what I get :
java.text.ParseException: Unparseable date: 2009-11-20T00:00:00+01:00
java.text.DateFormat.parse(Unknown Source)




-Message d'origine-
De : Fernandes Celinio [mailto:cfernan...@sopragroup.com] 
Envoyé : lundi 16 novembre 2009 10:40
À : Struts Users Mailing List
Objet : RE: [Struts 2.1.8] datetimepicker and action: String or Date ??

 
Any advice, please ?
Thanks.


-Message d'origine-
De : Celinio Fernandes [mailto:cel...@yahoo.com] Envoyé : dimanche 15 novembre 
2009 23:08 À : Struts Users Mailing List Objet : [Struts 2.1.8] datetimepicker 
and action: String or Date ??

Hi,
I have struts2-core-2.1.8.jar and xwork-core-2.1.6.jar in my classpath.

I read that there are many problems of conversion using the datetimepicker tag.

I checked the vault page here :
http://cwiki.apache.org/S2WIKI/troubleshooting-guide-migrating-from-struts-20x-to-21x.html#TroubleshootingguidemigratingfromStruts2.0.xto2.1.x-Userdefinedconverter%2528subclassingStrutsTypeConverter%2529willnolongerbeneededwhenusingdatetimepicker%253A


But what exactly is the type of the getter/setter in the action ??

For instance if I use this line in a JSP :
sx:datetimepicker name=expirationDate key=.dateexpiMois   
displayFormat=MM/ required=true/    


What getters should i get in my action ?

java.util.Date expirationDate;
    //String expirationDate;
    
    public java.util.Date getExpirationDate() {
        return expirationDate;
    }
    
    public void setExpirationDate(java.util.Date expirationDate) {
        this.expirationDate = expirationDate;
    }

== I get this error :
java.lang.NoSuchMethodException: 
com.eni.dvtejb.clientStruts2.action.PaiementAction.setExpirationDate([Ljava.lang.String;)

And if i use getter/setter of type String, it complains about some RFC format 
that is not valid.

So how exactly does it work ? Can someone provide a good example with the code 
for the action and the code for the JSP with the datetimepicker tag ?

Thanks.



  

-
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: [Struts 2.1.8] datetimepicker and action: String or Date ??

2009-11-16 Thread Fernandes Celinio
)

org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:235)

com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)

com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:89)

com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)

com.opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor.intercept(ScopedModelDrivenInterceptor.java:130)

com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)

org.apache.struts2.interceptor.debugging.DebuggingInterceptor.intercept(DebuggingInterceptor.java:267)

com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)

com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:126)

com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)

com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept(PrepareInterceptor.java:138)

com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)

com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)

com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:165)

com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)

org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:164)

com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)

com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasInterceptor.java:179)

com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)

com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:176)

com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)

org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:52)

org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:488)

org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:77)

org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:91)

org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)


Any idea ? thanks


-Message d'origine-
De : Lukasz Lenart [mailto:lukasz.len...@googlemail.com] 
Envoyé : lundi 16 novembre 2009 10:50
À : Struts Users Mailing List
Objet : Re: [Struts 2.1.8] datetimepicker and action: String or Date ??

2009/11/16 Fernandes Celinio cfernan...@sopragroup.com:
 This is what I get :
 java.text.ParseException: Unparseable date: 2009-11-20T00:00:00+01:00
        java.text.DateFormat.parse(Unknown Source)

Could you show the whole  stack?


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

-
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: [Struts 2.1.8] datetimepicker and action: String or Date ??

2009-11-16 Thread Fernandes Celinio
Hi Neil,
That was a good lead. Thanks.

I used this format : 
 SimpleDateFormat formatter = new SimpleDateFormat(-MM-dd'T'HH:mm:ss);

I checked the source of the DateTimePicker class to get the correct format.

So I got it working now but that was a pain.


-Message d'origine-
De : Neil Aggarwal [mailto:n...@jammconsulting.com] 
Envoyé : lundi 16 novembre 2009 15:48
À : 'Struts Users Mailing List'
Objet : RE: [Struts 2.1.8] datetimepicker and action: String or Date ??

Fernandes:

 java.text.ParseException: Unparseable date: 
 2009-11-20T00:00:00+01:00
   java.text.DateFormat.parse(Unknown Source)

I have seen this behavior before.

The date format you have is an ISO format, but the Java DateFormat class does 
not parse dates in that format.

I think you will need to manually pull the date out of the request params and 
format it to something DateFormat understands.

Something like this:
2009-11-20 00:00:00 +0100

Here is a sample code:
SimpleDateFormat dateFormat = new SimpleDateFormat(-MM-dd hh:mm:ss 
Z);
Date date = dateFormat.parse(2009-11-20 00:00:00 +0100);
System.out.println(DateFormat.getDateTimeInstance(DateFormat.LONG,
DateFormat.LONG).format(date));

I hope this helps,
Neil

--
Neil Aggarwal, (281)846-8957, http://UnmeteredVPS.net CentOS 5.4 VPS with 
unmetered bandwidth only $25/month!
7 day no risk trial, Google Checkout accepted 


-
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: [Struts 2.1.8] datetimepicker and action: String or Date ??

2009-11-16 Thread Fernandes Celinio
 
I skipped it because I cannot figure out the format to handle that colon in the 
middle of that time zone.
I tried without that time zone and saw that it works anyways.

Thanks again.

-Message d'origine-
De : Neil Aggarwal [mailto:n...@jammconsulting.com] 
Envoyé : lundi 16 novembre 2009 17:18
À : 'Struts Users Mailing List'
Objet : RE: [Struts 2.1.8] datetimepicker and action: String or Date ??

 That was a good lead. Thanks.
 SimpleDateFormat(-MM-dd'T'HH:mm:ss);
 So I got it working now but that was a pain.

I am glad you found the suggestion useful and were able to get it working.

I see you skipped the time zone in your format.
That is another pain, the DateFormat class does not like a colon in the middle 
of the time zone either.  I assume you are not using multiple time zones so you 
should be OK.

Neil

--
Neil Aggarwal, (281)846-8957, http://UnmeteredVPS.net Host your struts app on a 
CentOS VPS for only $25/month!
Unmetered bandwidth, 7 day no risk trial, Google Checkout


-
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: [Struts 2.1.8] Filter init parameter actionPackages fails on JBoss5.1.0: workaround ?

2009-11-12 Thread Fernandes Celinio
Thanks a lot Lukasz Lenart. It worked :)

I cleaned up my lib folder, removed a lot of libraries and kept only the ones 
that are really needed.
That means the ones in your list and also these one :

struts2-tiles-plugin-2.1.8.jar
commons-beanutils-1.7.0.jar
commons-digester-2.0.jar 


-Message d'origine-
De : Lukasz Lenart [mailto:lukasz.len...@googlemail.com] 
Envoyé : lundi 9 novembre 2009 20:53
À : Struts Users Mailing List
Objet : Re: [Struts 2.1.8] Filter init parameter actionPackages fails on 
JBoss5.1.0: workaround ?

2009/11/9 Fernandes Celinio cfernan...@sopragroup.com:
 Any idea ? Thanks

Dozen! First of all - remove all jars from server/default/lib - you shouldn't 
mix your jars between apps. As I remember only jdbc drivers should be shared. 
As you can see, you have duplicated ognl.jar and freemarker.jar.

Put only those files in application lib folder:
commons-fileupload-1.2.1.jar
commons-io-1.3.2.jar
commons-logging-1.1.jar
freemarker-2.3.15.jar
log4j-1.2.12.jar
logkit-1.0.1.jar
ognl-2.7.3.jar
struts2-convention-plugin-2.1.8.jar
struts2-core-2.1.8.jar
xwork-core-2.1.6.jar

The minimal set needed for Convention plugin to work. You're mixing Convention 
plugin with Codebehind plugin - either one can be used at the same time.


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

-
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: [Struts 2.1.8] Filter init parameter actionPackages fails on JBoss5.1.0: workaround ?

2009-11-09 Thread Fernandes Celinio
 
Thanks Likasz.
However I am using JBOSS 5.1.0 GA JDK 6, not Jboss 5.0.1 GA.

Anyays, I added a constant in struts.xml :
  constant name=actionPackages value=com.eni.dvtejb.clientStruts2.action /

And removed the  init-param param-name param-value tags from the web.xml 
file.


It still does not work, I still get that java.io.FileNotFoundException 
exception.

Someone from Jboss suggested that I try deploying with the exploded EAR and WAR 
files, to resolve that Path problem.

Any suggestion ? 


-Message d'origine-
De : Lukasz Lenart [mailto:lukasz.len...@googlemail.com] 
Envoyé : lundi 9 novembre 2009 08:39
À : Struts Users Mailing List
Objet : Re: [Struts 2.1.8] Filter init parameter actionPackages fails on 
JBoss5.1.0: workaround ?

2009/11/8 Celinio Fernandes cel...@yahoo.com:
 I am facing the same problem as described in this JIRA issue :
 http://issues.apache.org/struts/browse/WW-2948

I tested that with JBoss 5.0.1 GA and I used example application based on new 
struts2-archetype-convention archetype. I didn't spot any problems.

 If i remove the init-param attribute then it complains about actionPackages 
 missing.
 Of course I changed   param-value to point to the package where my 
 Action classes are (under WEB-INF/classes)

Did you try to set up constant either in struts.xml or struts.properties?
struts.convention.action.packages = example

where you should specify the full names of packages with actions, like below 
struts.convention.action.packages = com.demo.web.actions


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

-
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: [Struts 2.1.8] Filter init parameter actionPackages fails on JBoss5.1.0: workaround ?

2009-11-09 Thread Fernandes Celinio
 
Well, the problem now is that if I remove that param  from the web.xml file, it 
complains about it :

!--   init-param--
!--param-nameactionPackages/param-name--
!--
param-valuecom.eni.dvtejb.clientStruts2.action/param-value--
!--   /init-param --


12:48:52,978 ERROR [Dispatcher] Dispatcher initialization failed
java.lang.RuntimeException: java.lang.RuntimeException: 
com.opensymphony.xwork2.inject.DependencyException: 
com.opensymphony.xwork2.inject.ContainerImpl$MissingDependencyException: No 
mapping found for dependency [type=java.lang.String, name='actionPackages'] in 
public void 
org.apache.struts2.config.ClasspathPackageProvider.setActionPackages(java.lang.String).

In struts.xml I put : 

constant name=struts.convention.action.packages
value=com.eni.dvtejb.clientStruts2.action /   

Any idea ? You also removed it from the web.xml file ?
Thanks.



-Message d'origine-
De : Lukasz Lenart [mailto:lukasz.len...@googlemail.com] 
Envoyé : lundi 9 novembre 2009 12:25
À : Struts Users Mailing List
Objet : Re: [Struts 2.1.8] Filter init parameter actionPackages fails on 
JBoss5.1.0: workaround ?

2009/11/9 Fernandes Celinio cfernan...@sopragroup.com:
 However I am using JBOSS 5.1.0 GA JDK 6, not Jboss 5.0.1 GA.

I downloaded and checked also with 5.1 - no problems spotted

 Anyays, I added a constant in struts.xml :
  constant name=actionPackages 
 value=com.eni.dvtejb.clientStruts2.action /

You have to define it like this:
constant name=struts.convention.action.packages
value=com.eni.dvtejb.clientStruts2.action /


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

-
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: [Struts 2.1.8] Filter init parameter actionPackages fails on JBoss5.1.0: workaround ?

2009-11-09 Thread Fernandes Celinio
java.lang.ClassNotFoundException: 
org.apache.struts2.dispatcher.filter.StrutsPrepareAndExecuteFilter
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)


Is that latest filter implementation part of the Struts 2.1.8 distribution ?


-Message d'origine-
De : Lukasz Lenart [mailto:lukasz.len...@googlemail.com] 
Envoyé : lundi 9 novembre 2009 13:03
À : Struts Users Mailing List
Objet : Re: [Struts 2.1.8] Filter init parameter actionPackages fails on 
JBoss5.1.0: workaround ?

2009/11/9 Fernandes Celinio cfernan...@sopragroup.com:
 12:48:52,978 ERROR [Dispatcher] Dispatcher initialization failed
 java.lang.RuntimeException: java.lang.RuntimeException: 
 com.opensymphony.xwork2.inject.DependencyException: 
 com.opensymphony.xwork2.inject.ContainerImpl$MissingDependencyException: No 
 mapping found for dependency [type=java.lang.String, name='actionPackages'] 
 in public void 
 org.apache.struts2.config.ClasspathPackageProvider.setActionPackages(java.lang.String).

Used latest filter implementation:
org.apache.struts2.dispatcher.filter.StrutsPrepareAndExecuteFilter


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

-
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: [Struts 2.1.8] Filter init parameter actionPackages fails on JBoss5.1.0: workaround ?

2009-11-09 Thread Fernandes Celinio
 
It still does not work. It is still looking for that actionPackages parameter. 
And if i add it, I get an error related to the path.

--- web.xml content :---

filter  
filter-namestruts2/filter-name  
   filter-class  

org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter
   /filter-class 
!--   init-param--
!--param-nameactionPackages/param-name--
!--
param-valuecom.eni.dvtejb.clientStruts2.action/param-value--
!--   /init-param  --
  /filter 



-- struts.xml content :--

constant name=struts.convention.action.packages 
value=com.eni.dvtejb.clientStruts2.action /  


--- error :--

Caused by: 
com.opensymphony.xwork2.inject.ContainerImpl$MissingDependencyException: No 
mapping found for dependency [type=java.lang.String, name='actionPackages'] in 
public void 
org.apache.struts2.config.ClasspathPackageProvider.setActionPackages(java.lang.String).

I have the struts2-convention-plugin-2.1.8.jar library in JBoss classpath of 
course.


-Message d'origine-
De : Lukasz Lenart [mailto:lukasz.len...@googlemail.com] 
Envoyé : lundi 9 novembre 2009 13:15
À : Struts Users Mailing List
Objet : Re: [Struts 2.1.8] Filter init parameter actionPackages fails on 
JBoss5.1.0: workaround ?

2009/11/9 Fernandes Celinio cfernan...@sopragroup.com:
 Is that latest filter implementation part of the Struts 2.1.8 distribution ?

Sorry, tiny mistake, should be
org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter


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

-
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: [Struts 2.1.8] Filter init parameter actionPackages fails on JBoss5.1.0: workaround ?

2009-11-09 Thread Fernandes Celinio
 struts2-convention-plugin-2.1.8.jar
23/09/2009  00:49   756ÿ085 struts2-core-2.1.8.jar
23/09/2009  01:00 1ÿ728ÿ624 struts2-dojo-plugin-2.1.8.jar
23/09/2009  00:56 5ÿ820 struts2-dwr-plugin-2.1.8.jar
23/09/2009  01:17   540ÿ399 struts2-embeddedjsp-plugin-2.1.8.jar
23/09/2009  01:1017ÿ070 struts2-jasperreports-plugin-2.1.8.jar
23/09/2009  01:0945ÿ735 struts2-javatemplates-plugin-2.1.8.jar
23/09/2009  01:1110ÿ454 struts2-jfreechart-plugin-2.1.8.jar
23/09/2009  01:0128ÿ603 struts2-jsf-plugin-2.1.8.jar
23/09/2009  01:1651ÿ609 struts2-json-plugin-2.1.8.jar
23/09/2009  00:53 8ÿ317 struts2-junit-plugin-2.1.8.jar
23/09/2009  01:1993ÿ140 struts2-osgi-admin-bundle-2.1.8.jar
23/09/2009  01:1522ÿ744 struts2-oval-plugin-2.1.8.jar
23/09/2009  01:1110ÿ201 struts2-pell-multipart-plugin-2.1.8.jar
23/09/2009  01:0629ÿ110 struts2-rest-plugin-2.1.8.jar
23/09/2009  01:1337ÿ177 struts2-sitegraph-plugin-2.1.8.jar
23/09/2009  01:0216ÿ889 struts2-sitemesh-plugin-2.1.8.jar
23/09/2009  00:5927ÿ758 struts2-struts1-plugin-2.1.8.jarOLD
23/09/2009  01:14 4ÿ392 struts2-testng-plugin-2.1.8.jar
23/09/2009  01:0316ÿ584 struts2-tiles-plugin-2.1.8.jar
26/12/2008  02:05   692ÿ205 testng-5.1.jar
26/12/2008  02:5217ÿ026 tiles-api-2.0.6.jar
26/12/2008  02:52   128ÿ136 tiles-core-2.0.6.jar
26/12/2008  02:5241ÿ587 tiles-jsp-2.0.6.jar
22/09/2009  17:36   392ÿ124 velocity-1.5.jar
22/09/2009  17:36   134ÿ881 velocity-tools-1.3.jar
26/12/2008  02:2824ÿ677 xpp3_min-1.1.3.4.O.jar
26/12/2008  02:28   373ÿ194 xstream-1.2.2.jar
01/05/2008  21:33   521ÿ827 xwork-2.1.1.jarOLD
22/09/2009  17:36 1ÿ557ÿ320 xwork-core-2.1.6.jar


Any idea ? Thanks


-Message d'origine-
De : Lukasz Lenart [mailto:lukasz.len...@googlemail.com] 
Envoyé : lundi 9 novembre 2009 13:29
À : Struts Users Mailing List
Objet : Re: [Struts 2.1.8] Filter init parameter actionPackages fails on 
JBoss5.1.0: workaround ?

2009/11/9 Fernandes Celinio cfernan...@sopragroup.com:
 It still does not work. It is still looking for that actionPackages 
 parameter. And if i add it, I get an error related to the path.

Strange, you have something messed up with a configuration. Could you list what 
kind of jars do you have in WEB-INF/lib folder? Then could you show content of 
your configuration files?


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

-
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: [Struts 2.1.8] Filter init parameter actionPackages fails on JBoss5.1.0: workaround ?

2009-11-09 Thread Fernandes Celinio
It works if i use an exploded EAR and an exploded WAR.

However I get an HTTP 404 error on all actions I try to call.

Has there been any change in actions handling between Struts 2.0 and Struts 
2.1.8 ?




-Message d'origine-
De : Fernandes Celinio [mailto:cfernan...@sopragroup.com] 
Envoyé : lundi 9 novembre 2009 13:38
À : Struts Users Mailing List
Objet : RE: [Struts 2.1.8] Filter init parameter actionPackages fails on 
JBoss5.1.0: workaround ?


   web.xml full content : 

?xml version=1.0 encoding=UTF-8?
web-app xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; 
xmlns=http://java.sun.com/xml/ns/javaee; 
xmlns:web=http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd; 
xsi:schemaLocation=http://java.sun.com/xml/ns/javaee 
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd; id=WebApp_ID version=2.5
  display-nameVenteEnLigneWebStruts2/display-name
  welcome-file-list
welcome-fileindex.html/welcome-file
welcome-fileindex.htm/welcome-file
welcome-fileindex.jsp/welcome-file
welcome-filedefault.html/welcome-file
welcome-filedefault.htm/welcome-file
welcome-filedefault.jsp/welcome-file
  /welcome-file-list
  
  jsp-config
taglib
taglib-uri/s/taglib-uri
taglib-location/WEB-INF/struts-tags.tld/taglib-location
/taglib
  /jsp-config
  
filter  
filter-namestruts2/filter-name  
   filter-class  

org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter
   /filter-class 
   init-param
param-nameactionPackages/param-name
param-valuecom.eni.dvtejb.clientStruts2.action/param-value
   /init-param
  /filter 
  
 filter-mapping  
   filter-namestruts2/filter-name  
   url-pattern/*/url-pattern
  /filter-mapping
  
  listener

listener-classorg.apache.struts2.tiles.StrutsTilesListener/listener-class
  /listener
  
/web-app



 struts.xml full content :  

?xml version=1.0 encoding=UTF-8 ? !DOCTYPE struts PUBLIC  
-//Apache Software Foundation//DTD Struts Configuration 2.0//EN  
http://struts.apache.org/dtds/struts-2.0.dtd;
struts  

include file=login.xml /
include file=accueil.xml /
include file=magasin.xml /
include file=inscription.xml /

constant name=struts.convention.action.packages 
value=com.eni.dvtejb.clientStruts2.action /
  
/struts


I do not have any jars in my WEB-INF/lib folder, everything points to the lib 
folder from the Struts 2.1.8 distribution, and I copied everything to 
K:\ENI\DeveloppementEJB3\jboss-5.1.0.GA.jdk6\server\default\lib

I removed a few plugins.

  Full content of 
K:\ENI\DeveloppementEJB3\jboss-5.1.0.GA.jdk6\server\default\lib : 
 

09/11/2009  13:36REP  .
09/11/2009  13:36REP  ..
26/12/2008  02:43   358ÿ273 antlr-2.7.2.jar
26/12/2008  02:32 4ÿ467 aopalliance-1.0.jar
26/12/2008  03:1237ÿ854 classworlds-1.1.jar
26/12/2008  02:03   188ÿ671 commons-beanutils-1.7.0.jar
05/01/2009  16:2791ÿ699 commons-chain-1.2.jar
26/12/2008  02:09   571ÿ259 commons-collections-3.2.jar
05/01/2009  19:36   148ÿ783 commons-digester-2.0.jar
26/12/2008  02:0557ÿ779 commons-fileupload-1.2.1.jar
26/12/2008  02:0587ÿ776 commons-io-1.3.2.jar
26/12/2008  03:00   245ÿ274 commons-lang-2.3.jar
26/12/2008  02:0338ÿ015 commons-logging-1.0.4.jar
26/12/2008  02:3944ÿ598 commons-logging-api-1.1.jar
26/12/2008  02:05   138ÿ956 commons-validator-1.3.1.jar
26/12/2008  02:36   184ÿ569 dwr-1.1.1.jar
26/12/2008  03:0077ÿ826 ezmorph-1.0.3.jar
01/05/2008  21:33   863ÿ477 freemarker-2.3.12.jar
20/07/2009  16:23   879ÿ259 freemarker-2.3.15.jar
03/06/2008  08:32   302ÿ352 jsf-facelets.jar
26/12/2008  03:00   124ÿ932 json-lib-2.1.jar
22/05/2009  15:38   393ÿ290 mail.jar
01/05/2008  21:33   168ÿ081 ognl-2.6.11.jar
23/07/2009  17:52   239ÿ803 ognl-2.7.3.jar
07/12/2007  06:08 1ÿ545ÿ954 ojdbc14.jar
22/09/2009  17:36   135ÿ820 org.apache.felix.bundlerepository-1.2.1.jar
22/09/2009  17:36   361ÿ268 org.apache.felix.framework-1.4.1.jar
22/09/2009  17:36   369ÿ804 org.apache.felix.main-1.4.1.jar
22/09/2009  17:3651ÿ390 org.apache.felix.shell-1.0.2.jar
22/09/2009  17:3612ÿ237 org.apache.felix.shell.tui-1.0.2.jar
26/12/2008  02:0365ÿ261 oro-2.0.8.jar
15/07/2009  17:20   289ÿ911 oval-1.31.jar
30/11/2003  18:45   106ÿ577 p6spy.jar
26/12/2008  03:12   219ÿ380 plexus-container-default-1.0-alpha-10.jar
26/12/2008  02:04   172ÿ956 plexus-utils-1.2.jar
01/07/2009  21:43   181ÿ259 sitemesh-2.4.2.jar
17/06/2009  21:25   488ÿ282 spring-beans-2.5.6.jar
17/06/2009  21:25   476ÿ940 spring-context-2.5.6.jar
17/06/2009  21:25

RE: advice on building front-end rapidly

2009-11-09 Thread Fernandes Celinio
 
I would recommend Eclipse. www.eclipse.org



-Message d'origine-
De : terry.gard...@sun.com [mailto:terry.gard...@sun.com] 
Envoyé : lundi 9 novembre 2009 15:15
À : Struts Users Mailing List
Objet : Re: advice on building front-end rapidly

http://netbeans.org

On Nov 8, 2009, at 4:32 PM, Farshad Rabbani wrote:



 Hi Dave,


 Why?! At the very least why wouldn't you use something that can edit 
 and understand JSP, custom tags, etc.?


 So, what would your recommend as something to edit and understand JSP, 
 custom tags etc.?



 That's what themes and templates are for.



 Do you have any specific resources you can guide me to with regards to 
 themes and templates?



 Thanks,

 Farshad


   
 _
 Windows 7: Unclutter your desktop.
 http://go.microsoft.com/?linkid=9690331ocid=PID24727::T:WLMTAGL:ON:WL
 :en-US:WWL_WIN_evergreen:112009


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



[Struts 2] Dynamic content of a tooltip for internationalization

2009-10-27 Thread Fernandes Celinio
Hi,

How do you render the content of a tooltip dynamic ?
I am using several messages_XX.properties files, one for each language.

In each properties file, I have defined the key blabla.tooltip.

For instance in messages_en.properties:
blabla.tooltip=Pay before the end of the term.

In messages_fr.properties:
blabla.tooltip=Payez avant la fin du contrat.

s:textfield name=blabla   key=pay.blabla  tooltip=Pay
before the end of the term./

Question : how do i affect the content of my key blabla.tooltip to the
content of tooltip ?

Thanks for helping.

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



RE: [Struts 2] Dynamic content of a tooltip for internationalization

2009-10-27 Thread Fernandes Celinio
Thanks, it works of course :)


-Message d'origine-
De : Greg Lindholm [mailto:greg.lindh...@gmail.com] 
Envoyé : mardi 27 octobre 2009 14:42
À : Struts Users Mailing List
Objet : Re: [Struts 2] Dynamic content of a tooltip for internationalization

s:textfield name=blabla   key=pay.blabla
   tooltip=%{getText('blabla.tooltip')}/


On Tue, Oct 27, 2009 at 8:16 AM, Fernandes Celinio  cfernan...@sopragroup.com 
wrote:

 Hi,

 How do you render the content of a tooltip dynamic ?
 I am using several messages_XX.properties files, one for each language.

 In each properties file, I have defined the key blabla.tooltip.

 For instance in messages_en.properties:
 blabla.tooltip=Pay before the end of the term.

 In messages_fr.properties:
 blabla.tooltip=Payez avant la fin du contrat.

s:textfield name=blabla   key=pay.blabla  tooltip=Pay
 before the end of the term./

 Question : how do i affect the content of my key blabla.tooltip to the 
 content of tooltip ?

 Thanks for helping.

 -
 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: [Struts2] Problem using Struts2 with EJB3 over ServiceLocator (Jboss say Caller unauthorized)

2009-10-26 Thread Fernandes Celinio
 
Hi Michael,
Did you fix your problem ?
If yes, what was wrong ?

-Message d'origine-
De : Michael Obster [mailto:mich...@obster.org] 
Envoyé : vendredi 2 octobre 2009 17:42
À : Struts Users Mailing List
Objet : Re: [Struts2] Problem using Struts2 with EJB3 over ServiceLocator 
(Jboss say Caller unauthorized)

Hi Wes,

I'm accessing the bean over a service locator. I have attached the class source 
at the end.

Regards,
Michael

Wes Wannemacher schrieb:
 How are you getting a copy of your EJB in your action?
 
 vwg.yyy.cancard.ui.action.Usermanagement.Usermanagement.list(Userman
 agement.java:41)
 
 That line in the stacktrace indicates that you are in the action when 
 you get the error, but the stacktrace dives down into a proxied object 
 after that. You do realize that you can't use the standard @Remote / 
 @Local on struts 2 action properties? Struts 2 creates it's own 
 objects so any JEE annotations are probably not going to work.
 
 -Wes
 



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



[Struts 2.1.6] Convention plug-in not working with Jboss 5.1.0

2009-05-27 Thread Fernandes Celinio
Hi,
Is there a problem when using the Convention plug-in with Jboss 5.1.0 ?
I mean there is no struts.xml file., the mapping is defined in the
Action classes, through the use of annotations such as :

 @Actions({
 @Action(value=/myFirstPath,
 result...@result(name=success,
location=/here/first.jsp)}
 ),
 @Action(value=/mySecondPath,
 result...@result(name=success,
location=/here/second.jsp)}
 )
})

Http://localhost:8080/myFirstPath 
Gives me the following error :
HTTP Status 404 - There is no Action mapped for namespace / and action
name myFirstPath.

Http://localhost:8080/mySecondPath
Gives me the following error :
HTTP Status 404 - There is no Action mapped for namespace / and action
name mySecondPath.

I know it works well with the Tomcat server.

Is there a problem with Jboss ? Something else to configure ?

Thanks for helping.
Celinio

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



RE: [Struts 2.1.6] Convention plug-in not working with Jboss 5.1.0

2009-05-27 Thread Fernandes Celinio
Yes, I did and it works.

So i am assuming there is a problem with Jboss. I have not checked the logs yet.

-Message d'origine-
De : Lukasz Lenart [mailto:lukasz.len...@googlemail.com] 
Envoyé : mercredi 27 mai 2009 19:02
À : Struts Users Mailing List
Objet : Re: [Struts 2.1.6] Convention plug-in not working with Jboss 5.1.0

2009/5/27 Fernandes Celinio cfernan...@sopragroup.com:
 I know it works well with the Tomcat server.

JBoss is using Tomcat to serve Java web applications, did you try deploy the 
same application to standalone Tomcat?


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

-
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



[S2 2.0.14] how to save the old and new values of the fields of a form

2009-05-19 Thread Fernandes Celinio
Hi,
In struts 2, what are the different ways to keep the previous values of
the fields of a form which
is being modified (with new values) ?

I would like to save in the database the NEW (after modification) and
the OLD (before modification) values of the fields of the form.
Let's say I have 3 columns FIELD_NAME,  OLD_VALUE, NEW_VALUE in a
table LOGS.

Is there an interceptor that takes care of this kind of thing for
instance ?

Thanks for helping.

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



[Struts 2] Disabled fields are not posted on form submission

2009-05-13 Thread Fernandes Celinio
Hi,

Disabled fields by W3 specifications will not get posted on form
submission (http://www.w3.org/TR/html4/interact/forms.html#h-17.12.1). 

s:textfield
key=Label_DateCreation
id=dateCreation
name=dateCreation
labelposition=left
maxlength=30
required=true
disabled=%{fieldDisabled}
/

In my case, the textfield dateCreation has a disabled attribute set
to true (fieldDisabled is set to true).

How do i submit the value of a disabled text field ?
Is there an interceptor that already takes care of it in Struts 2 ?

Thanks for helping.




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



RE: [Struts 2] Disabled fields are not posted on form submission

2009-05-13 Thread Fernandes Celinio
Ok, thanks.
I was thinking about using hidden fields indeed. I wanted to know if a built-in 
solution existed with Struts 2.

-Message d'origine-
De : Lukasz Lenart [mailto:lukasz.len...@googlemail.com] 
Envoyé : mercredi 13 mai 2009 11:55
À : Struts Users Mailing List
Objet : Re: [Struts 2] Disabled fields are not posted on form submission

2009/5/13 Fernandes Celinio cfernan...@sopragroup.com:
 How do i submit the value of a disabled text field ?
 Is there an interceptor that already takes care of it in Struts 2 ?

By HTML spec, disabled fields aren't send to a server, it isn't Struts issue 
but general rule. You can consider to use readOnly attribute or use hidden 
fields


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

-
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



[Struts 2] Menu with tabs: Dojo, Ajax or jQuery tag ?

2009-04-24 Thread Fernandes Celinio
Hi,
I need to make a screen with several tabs.
I am wondering what is the best solution.

I know the Dojo tag that comes with truts 2 : tabbedpanel.
It seems to work rather well, but Dojo tags are deprecated i believe ?

Are there any other solutions ? With jQuery ? Pure Ajax ?

I am using Struts 2.0.14 and Websphere 6.1

Thanks for your feedback.

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



Validation with XML file using Struts 2.0.14 and Webspere 6.1

2009-04-22 Thread Fernandes Celinio
hi,
I am trying to validate the fields of a JSP using the XML validation.

I have a file ContactAction-validation.xml that holds the controls to be made.
It fails, the validation does not occur.

Is there any known bug using Struts 2.0.14  with Websphere 6.1 ?

Because it works with JBoss 5, so i assume the problem comes from Websphere.

Eventually, any change i need to make in the interceptor validation ? Which 
params should it take ?

Thanks in advance for your help.


Multi pages - Wizard with Struts 2 ?

2009-02-09 Thread Fernandes Celinio SGCF
Hi,
I have a small workflow where the user needs to register.
In the 1st screen the user chooses a login and a password.
In the 2nd screen the user enters his first name, last name, age, etc
In the 3rd and final screen the user enters her/his address.

The submit final in the 3rd screen should be final :  the data will be
inserted into the database.

What are the different ways to implement it with Struts 2 ?

I read about the SCOPE interceptor, and also about a Spring Web Flow
plugin for Struts 2. Also another scope plugin for Struts 2 etc ...

I did not find detailed examples of the Spring Web Flow plugin, I am
afraid that I will spend too much time with it.


Thanks

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



RE: Injecting in Interceptors (Struts2ejb3)

2009-01-21 Thread Fernandes Celinio SGCF
Hello Lukasz,
Can you access the source code of this plugin ?
http://code.google.com/p/struts2ejb3/

I signed in on google but still cannot see any files.
Is that project still empty ?

Does anyone see the files ?
 
 
-Message d'origine-
De : Lukasz Lenart [mailto:lukasz.len...@googlemail.com] 
Envoyé : mardi 20 janvier 2009 22:10
À : Struts Users Mailing List
Objet : Re: Injecting in Interceptors

2009/1/20 Ignacio de Córdoba icord...@skios.es:
 Anybody has an idea on how can I get info about ServletContext in the init()
 method of an interceptor? I'd like to lookup EJBs there and not lookup them
 for every request (I know I can get the info I need from ActionInvocation
 object that every intercept() gets)

Did you try to use that plugin [1], you can ever base on it, build
your own specific solution

[1] http://code.google.com/p/struts2ejb3/


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

-
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: component vs s:include

2009-01-02 Thread Fernandes Celinio SGCF
Hi,
To answer your question I am quoting the book Practical Apache Struts 2 Web 
2.0 Projects by Ian Roughley :
Using the component tag is similar to using an include tag of either the Struts 
2 or JSP variety. The difference is conceptual, in that the component tag is 
meant to be a user interface widget rather than already preformatted text. As 
such, it includes the Struts 2-specific theme attribute, as well as the 
JavaScript event attributes, CSS attributes, and HTML attributes found on the 
other Struts 2 tags.


Celinio Fernandes
 

 
 
-Message d'origine-
De : François Rouxel [mailto:rouxe...@yahoo.com] 
Envoyé : mercredi 31 décembre 2008 23:04
À : Struts Users Mailing List
Objet : s:component vs s:include

Struts 2.x

Can anybody tell me the difference between s:component and s:include ?

thanks a lot

happy new year

fr


  

-
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



how to disable the back button in Struts 1.2.3 ?

2008-08-18 Thread Fernandes Celinio SGCF

Hi,
I want to forbid the user to go back.

This Javascript trick does not work in actions:

script language=JavaScript
   window.history.forward(1);
/script


Is there a way to disable the back button in Struts ?
Thanks



=

Ce message et toutes les pieces jointes (ci-apres le message)
sont confidentiels et susceptibles de contenir des informations
couvertes par le secret professionnel. Ce message est etabli
a l'intention exclusive de ses destinataires. Toute utilisation
ou diffusion non autorisee interdite.
Tout message electronique est susceptible d'alteration. La SOCIETE GENERALE
et ses filiales declinent toute responsabilite au titre de ce message
s'il a ete altere, deforme falsifie.

=

This message and any attachments (the message) are confidential,
intended solely for the addressees, and may contain legally privilegedxi
information. Any unauthorised use or dissemination is prohibited.
E-mails are susceptible to alteration. Neither SOCIETE GENERALE nor any
of its subsidiaries or affiliates shall be liable for the message
if altered, changed or falsified.

=

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



how to disable the back button in Struts 1.2.3 ?

2008-08-14 Thread Fernandes Celinio SGCF
Hi,
I want to forbid the user to go back.

Javascript does not work in actions:

script language=JavaScript
   window.history.forward(1);
/script


Is there a way to disable the back button in Struts ?
Thanks



=

Ce message et toutes les pieces jointes (ci-apres le message)
sont confidentiels et susceptibles de contenir des informations
couvertes par le secret professionnel. Ce message est etabli
a l'intention exclusive de ses destinataires. Toute utilisation
ou diffusion non autorisee interdite.
Tout message electronique est susceptible d'alteration. La SOCIETE GENERALE
et ses filiales declinent toute responsabilite au titre de ce message
s'il a ete altere, deforme falsifie.

=

This message and any attachments (the message) are confidential,
intended solely for the addressees, and may contain legally privilegedxi
information. Any unauthorised use or dissemination is prohibited.
E-mails are susceptible to alteration. Neither SOCIETE GENERALE nor any
of its subsidiaries or affiliates shall be liable for the message
if altered, changed or falsified.

=

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Good reasons to migrate from Struts 1 to Struts 2 ?

2008-07-04 Thread Fernandes Celinio SGCF
Hi,
we have several web apps that have been developed with S1.
I am currently learning S2 and i am studying the reasons why we should
migrate to S2.

Can you tell me the advantages of migrating to S2 ?
I am not sure we should migrate, but i have not checked all new features
of S2 yet.

Thanks for your advices.

=

Ce message et toutes les pieces jointes (ci-apres le message)
sont confidentiels et susceptibles de contenir des informations
couvertes par le secret professionnel. Ce message est etabli
a l'intention exclusive de ses destinataires. Toute utilisation
ou diffusion non autorisee interdite.
Tout message electronique est susceptible d'alteration. La SOCIETE GENERALE
et ses filiales declinent toute responsabilite au titre de ce message
s'il a ete altere, deforme falsifie.

=

This message and any attachments (the message) are confidential,
intended solely for the addressees, and may contain legally privilegedxi
information. Any unauthorised use or dissemination is prohibited.
E-mails are susceptible to alteration. Neither SOCIETE GENERALE nor any
of its subsidiaries or affiliates shall be liable for the message
if altered, changed or falsified.

=

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Main differences between Struts 1 and Struts 2

2008-04-28 Thread Fernandes Celinio SGCF
Hi,
Can anyone tell me what are the main differences between Struts 1 and
Struts 2 ?
Or point me to links describing them.

What was added in version 2 ?

Thanks !

===

Ce message et toutes les pieces jointes (ci-apres le message) 
sont confidentiels et etablis a l'intention exclusive de ses destinataires.
Toute utilisation ou diffusion non autorisee est interdite. 
Tout message electronique est susceptible d'alteration. 
La SOCIETE GENERALE et ses filiales declinent toute responsabilite
au titre de ce message s'il a ete altere, deforme ou falsifie.
 
===

This message and any attachments (the message) are confidential
and intended solely for the addressees.
Any unauthorized use or dissemination is prohibited. 
E-mails are susceptible to alteration.   
Neither SOCIETE GENERALE nor any of its subsidiaries or affiliates
shall be liable for the message if altered, changed or falsified. 

===

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]