Re: dojo 1.1 in struts 2.0.11 portlets

2008-04-30 Thread Jeromy Evans
tom tom wrote: Hi, In order to leverage the full capabilities of dojo 1.1 (latest) with the latest stable struts version. What exactlyt the best practice. The things we concerned are as followes 1) Will there be a conflict in the different dojo versions in struts 2.0.11 and dojo 1.1 Yes, t

Re: Email Notifications and Struts

2008-04-30 Thread Jeromy Evans
Jay Bose wrote: If you want the Action to return immediately, and have the emails sent asynchronously, then JMS is a definite option. Another option is the JDK's Timer functionality (http://java.sun.com/j2se/1.5.0/docs/api/java/util/TimerTask.html). I recommend you use Java 5's concurren

Re: Email Notifications and Struts

2008-04-30 Thread Jay Bose
If you want the Action to return immediately, and have the emails sent asynchronously, then JMS is a definite option. Another option is the JDK's Timer functionality (http://java.sun.com/j2se/1.5.0/docs/api/java/util/TimerTask.html). --- jwynacht <[EMAIL PROTECTED]> wrote: > > Hi, > > I ha

Re: Struts and OsGI

2008-04-30 Thread Don Brown
Spring MVC is taking a significantly different approach than Struts 2, as I understand it. Their OSGi support allows you to deploy a Spring MVC-based war into an OSGi container, while the Struts 2 plugin allows you to build part of your app as an OSGi bundle and deploy it in the embedded OSGi cont

Email Notifications and Struts

2008-04-30 Thread jwynacht
Hi, I have a Struts action that, when invoked, needs to send email to about 50 people. From what I've read in this forum it seems I should use JMS for this. Any suggestions on which route to take? I'm running Tomcat 5.5.20. Any pointers? Is this overkill? Better solutions? Thanks, Jon -- View

ActionValidatorManagerFactory

2008-04-30 Thread Jay Bose
While I used WebWork-2, and the XWork associated with it, I was able to programmatically retrieve action validation using the ActionValidatorManagerFactory. Now, it seems this class was removed. Any suggestions on how to programmatically get a ValidatorFactory instance?

dojo 1.1 in struts 2.0.11 portlets

2008-04-30 Thread tom tom
Hi, In order to leverage the full capabilities of dojo 1.1 (latest) with the latest stable struts version. What exactlyt the best practice. The things we concerned are as followes 1) Will there be a conflict in the different dojo versions in struts 2.0.11 and dojo 1.1 2) Will it impact any stru

Re: Struts and OsGI

2008-04-30 Thread Frans Thamura
On Wed, Apr 30, 2008 at 11:45 PM, Musachy Barroso <[EMAIL PROTECTED]> wrote: > There is a plugin that provides OSGi support: > > http://cwiki.apache.org/S2PLUGINS/osgi-plugin.html > i just thinking about running Struts2 on Equinox. f

Re: java.lang.InstantiationException: org.apache.struts.action.ActionForm

2008-04-30 Thread Dave Newton
--- Sandy143 <[EMAIL PROTECTED]> wrote: > Let me be clear then ... > > I am trying to migrate from struts1.2 to struts2. So you're using the S1 Plugin, correct? Do you understand you will have to re-write all your JSPs to use Struts 2 tags? > LoginActionForm is extending ValidatorActionForm. I

Re: java.lang.InstantiationException: org.apache.struts.action.ActionForm

2008-04-30 Thread Sandy143
Let me be clear then ... I am trying to migrate from struts1.2 to struts2. I did all the required configuration. I could get the login page. LoginActionForm is extending ValidatorActionForm. I defined an interceptor for it in struts.xml. Validation is form based. BUT when I enter username and

Re: Pagination in Struts2

2008-04-30 Thread Jaarthy
I want the results in google format.Any help would be appreciated. Thanks, Aarthy balart wrote: > > Hi Aarthy, > > you can use the displaytag to implement the pagination in struts2. > > kindly tell that, Pagination as in Google? how, you want the page no in > google format or result in google

RE: Best way to access Session with regards to cluster

2008-04-30 Thread Brad A Cupit
> The latter assuming you are implementing > StrutsStatics in the interceptor. or using Java 5's static imports :-) Brad Cupit Louisiana State University - UIS - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

Re: java.lang.InstantiationException: org.apache.struts.action.ActionForm

2008-04-30 Thread Dave Newton
--- Sandy143 <[EMAIL PROTECTED]> wrote: > Now I am migrating from struts1 to struts2. What were you doing before? Please note: your configuration files aren't getting to everybody properly (me, at least), so it's even more difficult to help. Consider configuring your email client to send text-onl

Re: Best way to access Session with regards to cluster

2008-04-30 Thread Randy Burgess
ActionInvocation.getInvocationContext().getSession() or final HttpServletRequest request = (HttpServletRequest) context.get(HTTP_REQUEST); HttpSession session = request.getSession(); will do it in an interceptor. The latter assuming you are implementing StrutsStatics in the interceptor. Regards,

RE: Redirect-Action type result warns of caught exception when passing param

2008-04-30 Thread Brad A Cupit
> I'm of the opinion that an exception in my > console means something is amiss though... you've stumbled upon a little wart in the code. First things first, the exception is harmless and can be safely ignored. A more detailed explanation can be found in a comment within ObjectFactory.buildResult

Struts 2 Annotation Validation Problem

2008-04-30 Thread Jim Kiley
Hi folks, I've run into a problem with Struts 2 validation annotations. In short -- I have a VisitorFieldValidator on an action POJO named ProductDetailAction. I have RequiredFieldValidator and RequiredStringValidator on one field within the "visited" object. Now -- ProductDetailAction did not

Re: migration from struts 1 to 2

2008-04-30 Thread Sandy143
I guess there is some problem with upload: Please find it here http://struts.apache.org/dtds/struts-2.0.dtd";>

Re: migration from struts 1 to 2

2008-04-30 Thread Sandy143
Hello ... I have started to migrate from S1 to S2 using the plugin link. I have a login page. I am able to start the app with no errors and see the login page. The configuration I have done in struts.xml is being uploaded. When I enter username and password and click on submit I get this error

Re: java.lang.InstantiationException: org.apache.struts.action.ActionForm

2008-04-30 Thread Sandy143
Sorry ... This error is produced when I enter something in jsp and click on a button ... Thanks, Sandy Sandy143 wrote: > > Hi, > > Now I am migrating from struts1 to struts2. > > In struts1 I have a homeAction which extends dispatchAction and it uses > homeActionForm. > > I have configured

Re: java.lang.InstantiationException: org.apache.struts.action.ActionForm

2008-04-30 Thread Sandy143
Hi, Now I am migrating from struts1 to struts2. In struts1 I have a homeAction which extends dispatchAction and it uses homeActionForm. I have configured it this way in struts.xml: com.XXX.XXX.HomeActionForm homeActionForm

Re: struts.xml (struts-default) and meaning of <%@ taglib prefix="s" uri="/struts-tags" %>

2008-04-30 Thread Laurie Harper
Vinay Nagrik wrote: [...] <%@ taglib prefix="s" uri="/struts-tags" %> What is the meaning of prefix and uri="/struts-tags" % and if I can look at this file/page. [...] If you aren't familiar with Servelts, Java Server Pages and Java web application development in general, I strongly recommen

Re: java.lang.InstantiationException: org.apache.struts.action.ActionForm

2008-04-30 Thread Laurie Harper
Sandy143 wrote: Hello Everyone : [Servlet Error]-[org.apache.struts.action.ActionForm]: java.lang.InstantiationException: org.apache.struts.action.ActionForm I get this error when I try to migrate from Struts 1.2.8 to Struts2. I have validations to the form. I am using interceptors for the sam

Re: Best way to access Session with regards to cluster

2008-04-30 Thread Nils-Helge Garli Hegvik
My vote goes to option 3. On Wed, Apr 30, 2008 at 7:24 PM, mojoRising <[EMAIL PROTECTED]> wrote: > > Let me try to narrow the scope a little then: Which of the following is the > better way to get the session in an Interceptor: > > > 1. ActionContext.getContext().getSession(); > 2. ActionConte

Re: once again: validate() not called

2008-04-30 Thread Laurie Harper
Insert it where in your struts.xml? By default it shouldn't be necessary, since 'save' is not in the default exclude list, so the answer is that it probably doesn't make sense to insert that. Without seeing your action code, mapping and other related configuration, it's really not possible to

Redirect-Action type result warns of caught exception when passing param

2008-04-30 Thread Michael Gagnon
My relevant mapped action look like: /jsp/admin/internalOrders/viewLineItem.jsp GetLineItem /admin/internalOrders true ${id} The 'GetLineItem' action works correctly when given an 'id' parameter. No exce

Re: Best way to access Session with regards to cluster

2008-04-30 Thread mojoRising
Let me try to narrow the scope a little then: Which of the following is the better way to get the session in an Interceptor: 1. ActionContext.getContext().getSession(); 2. ActionContext.getSession(); 3. invocation.getInvocationContext().getSession(); 4. ServletActionContext.getRequest().getSes

Re: Handling form data

2008-04-30 Thread Laurie Harper
First, I should point out that an 'input' result of type 'chain' should work here. What makes you think it doesn't? You wont get a browser redirect with chaining, though, so if you want that the MessageStoreInterceptor can help with preserving error messages. You can configure which methods sk

Re: Best way to access Session with regards to cluster

2008-04-30 Thread Nils-Helge Garli Hegvik
Clustering is the responsibility of the application server. Struts 2 has no role in that. Just follow the general guidelines of clustering of web applications. Nils-H On Wed, Apr 30, 2008 at 6:40 PM, Brad A Cupit <[EMAIL PROTECTED]> wrote: > > but I still have some confusion about the proper way

Re: struts.xml (struts-default) and meaning of <%@ taglib prefix="s" uri="/struts-tags" %>

2008-04-30 Thread Jim Kiley
struts-default.xml can be found in the struts2-core jar (mine is struts2-core-2.0.11.jar but YMMV). struts-tags.tld is in the same jar, under META-INF. On Wed, Apr 30, 2008 at 12:51 PM, Vinay Nagrik <[EMAIL PROTECTED]> wrote: > Hello Group, > > I was building my first HelloWorld web application

struts.xml (struts-default) and meaning of <%@ taglib prefix="s" uri="/struts-tags" %>

2008-04-30 Thread Vinay Nagrik
Hello Group, I was building my first HelloWorld web application and it is up and running, but out of curiosity I wish to find out the meaing of <%@ taglib prefix="s" uri="/struts-tags" %> What is the meaning of prefix and uri="/struts-tags" % and if I can look at this file/page. Similarly in s

Re: Struts and OsGI

2008-04-30 Thread Musachy Barroso
There is a plugin that provides OSGi support: http://cwiki.apache.org/S2PLUGINS/osgi-plugin.html regards musachy On Wed, Apr 30, 2008 at 12:33 PM, Frans Thamura <[EMAIL PROTECTED]> wrote: > there are several topic about OSGI > > will S2 or S3 have osgi support > > which now i can see SpringMVC

RE: Best way to access Session with regards to cluster

2008-04-30 Thread Brad A Cupit
> but I still have some confusion about the proper way to do > this so that my session values will be available and > replicated properly in a cluster environment. The Struts 2 session maps are actually just wrappers around the real underlying session. The methods that return (or set) a HttpServle

java.lang.InstantiationException: org.apache.struts.action.ActionForm

2008-04-30 Thread Sandy143
Hello Everyone : [Servlet Error]-[org.apache.struts.action.ActionForm]: java.lang.InstantiationException: org.apache.struts.action.ActionForm I get this error when I try to migrate from Struts 1.2.8 to Struts2. I have validations to the form. I am using interceptors for the same. Please let me

Re: struts2 & displayTag how to use checkBox; Problem: translating the fieldValue

2008-04-30 Thread xianwinwin
Thanks Oscar, I did check on the displayTag (since yesterday)so, I understand that I need to have something like this: and the checkBox: but: '%{myid[current]}' doesn't work. this works: '%{myid[0]}' '%{myid[1]}' '%{myid[2]}' so in other words I just do

Struts and OsGI

2008-04-30 Thread Frans Thamura
there are several topic about OSGI will S2 or S3 have osgi support which now i can see SpringMVC support it F

Re: struts2 & displayTag how to use checkBox; Problem: translating the fieldValue

2008-04-30 Thread wild_oscar
Oh, I'm sorry, I'm using Struts 2.0.9 and I have no problem with EL in tags. Haven't used 2.0.11. Be sure to post the answer when you find it! xianwinwin wrote: > > but EL is not allowed in Struts tags. > when I use # or $ I get the actual string (not the value). > m...any idea? > > >

Re: struts2 & displayTag how to use checkBox; Problem: translating the fieldValue

2008-04-30 Thread xianwinwin
but EL is not allowed in Struts tags. when I use # or $ I get the actual string (not the value). m...any idea? wild_oscar wrote: > > They are attributes of the displaytag. > current is the id you give to each line in the table: > > > > Check the displaytag's documentation for more in

Best way to access Session with regards to cluster

2008-04-30 Thread mojoRising
I have read much about how to access the session from actions and interceptors, but I still have some confusion about the proper way to do this so that my session values will be available and replicated properly in a cluster environment. Specifically, if a user is logged in and making requests, an

Re: Struts1 and Struts2 in the same app

2008-04-30 Thread Sandy143
Hi, How would I define a dispatch action in struts1 ... in struts.xml while migrating? newton.dave wrote: > > --- Sandy143 <[EMAIL PROTECTED]> wrote: >> With this we will not have ... struts1 config file right >> >> struts-config.xml would be completely modified to struts.xml. Am I on t

Re: Retrieving param values from s:include

2008-04-30 Thread Jeromy Evans
oscar perez wrote: Hi Jeromy, thanks for your quick reply. This was actually my workaround (i.e. to use s:set to put the values into the value stack). I wanted to use s:param since nesting the params into the s:include keep things tidy. PS: s:action is dangerous, s:include makes things difficult

Re: problem sending values to dao class

2008-04-30 Thread Mead Lai
There is no RegistrationAction Code here. I think it mostly something wrong in Action. just print the username & password value in the Action, it's no relation with DAO. the following is some sample & demo for download. Wish it's useful for U http://www.learntechnology.net luck, ##

Re: Retrieving action names configured in struts.xml

2008-04-30 Thread Mead Lai
read the struts.xml files, and phrase it On Wed, Apr 30, 2008 at 5:50 AM, Volker Karlmeier <[EMAIL PROTECTED]> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Hello struts freaks, > > i would like to implement a rights management for my application. Therefore > I need to retrieve a

Re: Struts 2 StrutsTypeConverter

2008-04-30 Thread Jeromy Evans
Asleson, Ryan wrote: Hello, I am new to Struts 2, so please bear with me. I am looking at implementing a custom StrutsTypeConverter. I want it to be a "global" converter (no just specific to an Action). If I'm understanding it correctly, to implement this I create an xwork-conversion.prop

Re: Handling form data

2008-04-30 Thread Greg Lindholm
This should help you http://struts.apache.org/2.0.11.1/docs/how-do-we-repopulate-controls-when-validation-fails.html FAQ:How do we repopulate controls when validation fails . You can use the Preparable interface to load the data from the database. Validation does not (by default config) run on re

Re: [Struts2] Exception starting filter (Connection Timed Out)

2008-04-30 Thread Mead Lai
Exception starting filter action2 2008/04/29 00:59:30 | at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadConfigurationFiles from upstair Infomtion, I think it's the problem of filter named "action2" Xml files couldn't be found by the filter. try 2 heck the struts.xml fi

Re: No result defined for action and result input with checkbox

2008-04-30 Thread Greg Lindholm
I had the same (or similar) problem, it's caused be the CheckboxInterceptor not properly handling arrays of checkboxes when none are selected. I submitted a patch for this issue https://issues.apache.org/struts/browse/WW-2339 WW-2339 but I don't think anyone has looked at it yet. wild_oscar wr

Struts 2 StrutsTypeConverter

2008-04-30 Thread Asleson, Ryan
Hello, I am new to Struts 2, so please bear with me. I am looking at implementing a custom StrutsTypeConverter. I want it to be a "global" converter (no just specific to an Action). If I'm understanding it correctly, to implement this I create an xwork-conversion.properties file, and the fo

Re: Retrieving param values from s:include

2008-04-30 Thread oscar perez
Hi Jeromy, thanks for your quick reply. This was actually my workaround (i.e. to use s:set to put the values into the value stack). I wanted to use s:param since nesting the params into the s:include keep things tidy. PS: s:action is dangerous, s:include makes things difficult to refactor, dojo plu

Install Struts.

2008-04-30 Thread Christian Villamizar
Thank you for your response; The Bean is attached and what I invoke from a JSP, the way. Any help, thank *** Bean *** /* * Created on 12-ago-2003 * * To change the template for this generated file go to * Window>Preferences>Java>Code Generation>Code and Comments */ package

Install Struts.

2008-04-30 Thread Christian Villamizar
Thank you for your response; The Bean is attached and what I invoke from a JSP, the way. Any help, thank -Mensaje original- De: news [mailto:[EMAIL PROTECTED] En nombre de Laurie Harper Enviado el: martes, 29 de abril de 2008 18:28 Para: user@struts.apache.org Asunto: Re:

Re: Struts2, DateTimePicker gives 1970

2008-04-30 Thread Inkwon Hwang
Hi Jim, Thanx for your reply. Desired options could be: 1. leave entered value -> validation is done on server side 2. remove entered value -> validation is done on server side It seems weird that suddenly the field has value "01.01.1970" eventhough it makes sense for developers but it doesn't f

Re: Retrieving param values from s:include

2008-04-30 Thread Jeromy Evans
oscar perez wrote: Hi all, I've been struggling trying to get working the s:include with the nested s:params but I have to give up. It really puzzles me.. My problem is that I have no idea on how to access the parameters from the included file. There is a fine example in the struts 2 documentatio

Re: Struts2, DateTimePicker gives 1970

2008-04-30 Thread Jim Kiley
What would be the desired behavior when a non-date value is entered? 1/1/1970 corresponds to a 'zero' value for dates. This seems like a sensible response. On Wed, Apr 30, 2008 at 8:36 AM, Inkwon Hwang <[EMAIL PROTECTED]> wrote: > > Environment > Java5 > Jboss 4.0.5 and WAS 6.1 Express > Struts

Struts2, DateTimePicker gives 1970

2008-04-30 Thread Inkwon Hwang
Environment Java5 Jboss 4.0.5 and WAS 6.1 Express Struts 2.1.1 Tiles 2.0.5 Code added and Issue When I insert not-valid date value (i.e. "aaa") and set focus to other textfield, I get "01.01.1970" to the textfield. I have read about DateTimePicker issues from Struts2 issue tracker Jira (https

Re: StrutsTypeConverter 2 level nested expression

2008-04-30 Thread Jeromy Evans
Jakub Milkiewicz wrote: Hi In my case i also noticed that convertToString method is not called... So now i have 2 problems: 1) convertFromString is called but convertToString is never called for datePeriodFilterParameters.dateTo property 2) none of convertFromString and convertToString is called

Retrieving param values from s:include

2008-04-30 Thread oscar perez
Hi all, I've been struggling trying to get working the s:include with the nested s:params but I have to give up. It really puzzles me.. My problem is that I have no idea on how to access the parameters from the included file. There is a fine example in the struts 2 documentation ( http://struts.apa

Re: StrutsTypeConverter 2 level nested expression

2008-04-30 Thread Jakub Milkiewicz
Hi In my case i also noticed that convertToString method is not called... So now i have 2 problems: 1) convertFromString is called but convertToString is never called for datePeriodFilterParameters.dateTo property 2) none of convertFromString and convertToString is called for datePeriodFilterParam

problem sending values to dao class

2008-04-30 Thread ramk.fmk
Hi, I am trying to build a simple login application using struts, spring and hibernate. I have created a registration page. When I submit the registration information (i.e. username and password), Null values are sent for the username and password to the Dao. Please see below the details 1. Reg

Re: once again: validate() not called

2008-04-30 Thread volker
Hello Laurie, thanks for your answer. I don't know if that will help me, but I'll try it out. Does it make sense to insert save in my struts.xml ? Will validate() then be called ? Volker Volker Karlmeier wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Hello stru