Re: formatting s:textfield data

2008-04-30 Thread Marc Ende
Chris, now I can format my output to the forms. But why is it this strange way. I had expected that the formatting is much easier for the textfields... thank you very much Marc Chris Pratt schrieb: Maybe try: s:text name=format.currency id=model.currency s:param

Re: formatting s:textfield data

2008-04-30 Thread Chris Pratt
I'm not crazy about the tag libraries that are included with Struts 2, I've just learned ways to make them work. In this case, what the work-around is doing is formatting the value and storing it on the value stack, then referencing it from the textfield for it's value. It works, but like you

Re: Using tabbedpanel inside form

2008-04-30 Thread Jukka Välimaa
Ignore this. The problem was caused by an unbalanced div tag elsewhere in the form. On Tue, Apr 29, 2008 at 5:27 PM, Jukka Välimaa [EMAIL PROTECTED] wrote: Hi, I'm using struts ajax tag tabbedPanel inside a form. I have the following problem: the tabbedpanel renders outside the form in

Re: StrutsTypeConverter 2 level nested expression

2008-04-30 Thread Jakub Milkiewicz
Hi I ve checked all required getters and setters million times but still nothing. If i just remove following line from Action-conversion.properites datePeriodFilterParameters.cos.dateFrom=MyConverter and change datatype of dateFrom property to String binding is succesfull and inside execute

How to programmatically set the maximum file upload size and allowed file types (FileUploadInterceptor)

2008-04-30 Thread Cheng Wei Lee
Is there a way to do this programmatically rather than declaratively? Thanks!

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 interceptor-ref name=workflow param name=includeMethodssave/param /interceptor-ref in my struts.xml ? Will validate() then be called ? Volker Volker

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.

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

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 (

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

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 sx:head / and sx:datetimepicker name=endDate displayFormat=dd.MM./ 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

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 2.1.1

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

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 for

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. bean:define id=beanSerie name=BEAN_SERIE_CIR type=com.trapsatur.web.comun.view.BeanResultado/ html:select property=Serie styleClass=txCircuitoSelect html:options name=beanSerie property=codigo

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. bean:define id=beanSerie name=BEAN_SERIE_CIR type=com.trapsatur.web.comun.view.BeanResultado/ html:select property=Serie styleClass=txCircuitoSelect html:options name=beanSerie property=codigo

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

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

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

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: 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

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 list of

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 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: 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 the right

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,

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: display:table class=lista name=list pagesize=10

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?

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 xianwinwin
Thanks Oscar, I did check on the displayTag (since yesterday)so, I understand that I need to have something like this: display:table class=lista name=list pagesize=10 id=current and the checkBox: display:columns:checkbox theme=simple name=userCheck fieldValue='%{myid[current]}'

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

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

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

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

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 and

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 to

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.

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

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

2008-04-30 Thread Michael Gagnon
My relevant mapped action look like: action name=GetLineItem class=bpf.internalOrders.action.GetInternalOrderLineItemAction result name=success/jsp/admin/internalOrders/viewLineItem.jsp/result /action action name=UpdateLineItem

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

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.

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

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 recommend

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: interceptors interceptor name=homeActionForm

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 it this

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

Re: migration from struts 1 to 2

2008-04-30 Thread Sandy143
I guess there is some problem with upload: Please find it here ?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 package name=XXX namespace=/XXX

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: 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

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.

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-only

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: 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: 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: 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: 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

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

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?

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

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

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 have a

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

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,