Re: FilterDispatcher not being invoked with URL pattern /*

2007-06-13 Thread Dave Newton
--- Jeromy Evans wrote: I have plenty of S2 webapps that don't include a servlet in web.xml and haven't encountered this problem. Have you included a filter mapping instead? Tomcat w/o the default servlet, though? d.

Re: [s2] weird problem with Chinese characters and s:iterator

2007-06-13 Thread Dave Newton
--- Manu Mahajan [EMAIL PROTECTED] wrote: Also I would like to know if anyone is using struts 2 to develop a site containing Chinese content because my entire application seem to be affected by this. Either I am missing something very trivial or no one has used struts2 in this context. I

Re: FilterDispatcher not being invoked with URL pattern /*

2007-06-13 Thread Jeromy Evans
Tomcat w/o the default servlet, though? Ahh... you're right. It's a standard install with the default and jsp servlets enabled. Sorry, I didn't look there. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: What is the equivalant for reset in S2

2007-06-13 Thread Rikard
Hi well in webwork i use the clean(); method of the class ActionSupport i think its the same in S2. Just make a reset() method in your action and call the clean method.. /R Tracy12 wrote: Hi, In struts 1.x. we had reset method in the action forms to do the final cleanup before the form

Re: [s2] weird problem with Chinese characters and s:iterator

2007-06-13 Thread Manu Mahajan
Thanks Dave. I tried and I seem to get correct output when using properties files but the problem occurs when I put an object containing Chinese data on the value stack. The same code works fine if I bypass the action and run it directly from a jsp. Dave Newton wrote: I am, but all the

ReferenceError: validateForm_createuser is not defined

2007-06-13 Thread GEDA
Please help me. I don't really understand this debug message: ReferenceError: validateForm_createuser is not defined. Here is the code: s:form action=createuser.do validate=true s:textfield label=Name name=name / s:password label=Password name=password / s:submit

Re: ReferenceError: validateForm_createuser is not defined

2007-06-13 Thread Jeromy Evans
GEDA wrote: Please help me. I don't really understand this debug message: ReferenceError: validateForm_createuser is not defined. Here is the code: s:form action=createuser.do validate=true s:textfield label=Name name=name / s:password label=Password name=password /

[ANN] Struts 2.0.8 GA release available

2007-06-13 Thread Rainer Hermanns
The Apache Struts group is pleased to announce that Struts 2.0.8 is available as a General Availability release. The GA designation is our highest quality grade. Apache Struts 2 is an elegant, extensible framework for creating enterprise-ready Java web applications. The framework is designed to

Re: [S2] Accessing HTTP Header

2007-06-13 Thread Yoni Amir
Here is an interceptor that I use to manipulate the HttpResponse object. You can do the same for the HttpRequest. public String intercept(ActionInvocation actionInvocation) throws Exception { HttpServletResponse resp = ServletActionContext.getResponse(); resp.setHeader(Pragma, no-cache); //

Struts validator maskif

2007-06-13 Thread ugachaka
Hi. I am wondering is there really a validation attribute maskif. I one forum, i read that i just need to add the following lines to my validation-rules and validation xml files and it will work- validator name=validif classname=validation.ValidIf method=validateValidIf

Struts validator maskif

2007-06-13 Thread ugachaka
Hi. I am wondering is there really a validation attribute maskif. I one forum, i read that i just need to add the following lines to my validation-rules and validation xml files and it will work- validator name=validif classname=validation.ValidIf method=validateValidIf

Re: response.addCookie not working inside Struts action class

2007-06-13 Thread nuwan chandrasoma
I also agree with you Dave, +1 Does any one need a guy for a Struts2 project?, i am ready to quit my current job :)) On 6/12/07, Dave Newton [EMAIL PROTECTED] wrote: --- Chris Pratt [EMAIL PROTECTED] wrote: Sorry, for some reason I was stuck on Struts 2. It's 'cuz it's so much better :D

Re: [s2] weird problem with Chinese characters and s:iterator SOLVED

2007-06-13 Thread Manu Mahajan
Ok! I've found a solution. It seems that I was looking at the wrong place. I am using sitemesh and the problem was coming due to a bug in sitemesh. If you use decorator name=none for your action path in decorators.xml then it will not print utf-8 encoded characters properly. I created a

Re: ReferenceError: validateForm_createuser is not defined

2007-06-13 Thread GEDA
I still get the same error. :-| Jeromy Evans - Blue Sky Minds wrote: GEDA wrote: Please help me. I don't really understand this debug message: ReferenceError: validateForm_createuser is not defined. Here is the code: s:form action=createuser.do validate=true s:textfield

How to validate field in type of a model class by annotations.

2007-06-13 Thread Ruimo Uno
Hi, my action has a field that is in type of User: User user; public User getUser() {return user;} public void setUser(User user) {this.user = user;} And the following is a validation rule for it using XML file (Assume the User class has 'email' field.): field name=user.email

Strecks 1.0.1 released

2007-06-13 Thread Phil Zoio
Dear all, I've released Strecks 1.0.1 with some small updates to the 1.0 release. The main change in this release is it now much simpler to run the samples: simply download the source distrubution, then run ant download run.samples. Strecks contains a range of enhancements aimed to

inputting numbers with html:text fields and internationalisation

2007-06-13 Thread Adam Lipscombe
Folks, We have an internationalised site using struts 1.3.8. Outputting currency and numbers with the bean:write tag works well. The problem comes when the user is inputting numbers and currency via an html:text field. Ideally it would be nice if the conversion to US/UK format was handled

[S2] Multiple s:iterator/ problem

2007-06-13 Thread Wei Xu
First, you can look through next jsp codes: s:iterator status=stat value=destObjects tr s:iterator value=visibleColumns td s:property value=destObjects[%{#stat.index}].%{fieldDefName} / /td /s:iterator /tr /s:iterator Variable destObejcts is a LIST type which contains a serial

[S2] Problems with ajax anchor tag

2007-06-13 Thread Lucas Garcia
Hi, I'm testing the ajax Anchor tag ( http://struts.apache.org/2.x/docs/ajax-tags.html#AjaxTags-anchorTag). Mi jsp page looks like: %@ page contentType=text/html; charset=UTF-8 % %@ taglib prefix=s uri=/struts-tags % !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN

[S2.0.8] datetimepicker.... is it a train wreck?

2007-06-13 Thread Al Sutton
I've been trying to do some work with datetime picker in 2.0.8 and it seems to me it's a real mess. In my action I have; public Date getReportStartDate() { return reportStartDate; } public void setReportStartDate(Date reportStartDate) { this.reportStartDate = reportStartDate;

RE: [S2.0.8] datetimepicker.... is it a train wreck?

2007-06-13 Thread Deepak Kumar
Hi, Just read Datetime picker example at http://www.roseindia.net/struts/struts2/date/struts-2-datetimepicker.shtml. Thanks -Original Message- From: Al Sutton [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 13, 2007 4:11 PM To: 'Struts Users Mailing List' Subject: [S2.0.8]

Re: ReferenceError: validateForm_createuser is not defined

2007-06-13 Thread GEDA
Anyone ? GEDA wrote: I still get the same error. :-| I discovered that this is happening when the jsp page where the form is located, is loaded into a div tag. Is it normal the validation not working from a div tag? Jeromy Evans - Blue Sky Minds wrote: GEDA wrote: Please help

RE: [S2.0.8] datetimepicker.... is it a train wreck?

2007-06-13 Thread Al Sutton
That page seems offer no help for me at all. As a side note, the bug I mentioned in my original email means that the example in the page doesn't work under certain conditions. What bit of that page did you think might help me? Btw, please don't post more links to your site, I'm not really

Re: [S2] Problems with ajax anchor tag

2007-06-13 Thread Lucas Garcia
Hi, I believe I've found the problem origin. I'm working without action-extension (my url looks like www.blablabla.com/Home instead of Home.action or Home.do). For this reason, when ajax theme constructs /struts/dojo/dojo.js call dinamically, struts try to manage .js files as actions (returning

Re: [S2.0.8] datetimepicker.... is it a train wreck?

2007-06-13 Thread Musachy Barroso
Al just to answer your question straight, yes, it is a train wreck and I would advise not to use it until 2.1 comes out. regards musachy On 6/13/07, Al Sutton [EMAIL PROTECTED] wrote: That page seems offer no help for me at all. As a side note, the bug I mentioned in my original email means

Re: suggestions for login scheme using struts 1.x

2007-06-13 Thread Frank W. Zammetti
We have web servers in front of the app servers, and this isn't an evolution of old apps, I'm talking newly developed apps. There's nothing unusual about that setup at all, it's pretty typical in an enterprise setting. -- Frank W. Zammetti Founder and Chief Software Architect Omnytex

Re: FilterDispatcher not being invoked with URL pattern /*

2007-06-13 Thread Danny Hurlburt
I have added a filter mapping. See the second sentence of the original post. The problem is that according to the Servlet Spec (at least my understanding of it) Filters can be associated with groups of servlets and static content using the url-pattern style of filter mapping. Since the Struts

Re: FilterDispatcher not being invoked with URL pattern /*

2007-06-13 Thread Danny Hurlburt
Does anyone know if it true that if the Struts FilterDispatcher finds a match for an action that the matching servlet is not invoked? That is, will it will skip calling chain.doFilter(...) on the FilterChain object when it finds a match? I have not looked at the source code yet. Danny Hurlburt

[S2] Does Struts2 work with WebLogic 9??

2007-06-13 Thread Hoying, Ken
I have an app that I developed under Tomcat and had everythign working fine. I then moved it to WebLogic and I am running into issues. The following senario illustrates the problem I am having... I have a JSP page with the following: s:set name=maxLength scope=page

Re: [S2] Accessing HTTP Header

2007-06-13 Thread chengas123
Thank you both for your responses. While I had tried going down the ActionInvocation.getInvocationContext(...) road I didn't see anything interesting that way and probably would have never thought to cast it to a ServletActionContext (although hopefully I will next time). I'm using the

RE: [S2] Does Struts2 work with WebLogic 9??

2007-06-13 Thread Hoying, Ken
I was able to fix my own problem. The web.xml was different between the Tomcat and Weblogic apps. Tomcat was using 2.4 and Weblogic 2.3. Once I updated web.xml in Weblogic app to use 2.4, all was well. Thank you! -Original Message- From: Hoying, Ken [mailto:[EMAIL PROTECTED] Sent:

Re: [S2.0.8] datetimepicker.... is it a train wreck?

2007-06-13 Thread אלחנן מעין
shame i was hoping to go back to s2 becouse of all the ajax dojo mess i found in 2.0.6, guesss i'll have to wait a few more months :( From: Musachy Barroso [EMAIL PROTECTED] Reply-To: Struts Users Mailing List user@struts.apache.org To: Struts Users Mailing List user@struts.apache.org

Re: [S2] Accessing HTTP Header

2007-06-13 Thread Yoni Amir
I don't know of any performance differences, but I am not a struts expert. I think that the static methods of ServletActionContext were provided exactly for this reason, namely convenience, so you don't need to deal with casting. Also, if the internal working objects change in a later struts

Re: [S2.0.8] datetimepicker.... is it a train wreck?

2007-06-13 Thread Musachy Barroso
Well, the datetimepicker is the only one in such a lame condition, the other ones are working fine. musachy On 6/13/07, אלחנן מעין [EMAIL PROTECTED] wrote: shame i was hoping to go back to s2 becouse of all the ajax dojo mess i found in 2.0.6, guesss i'll have to wait a few more months :(

Re: suggestions for login scheme using struts 1.x

2007-06-13 Thread robinbajaj
thanks for your input Frank. When I mentioned about taking out the webserver, I only meant not to have it do the login. It can still serve the static content. But I suggested merging the login piece and the actual web-app, and running them both on the weblogic app server. what I don't

Re: suggestions for login scheme using struts 1.x

2007-06-13 Thread Frank W. Zammetti
Typically, the web server is what receives the request... it then determines what type of resouce is being served, and if its something that the app server needs to handle (a servlet for instance), it passes the request along. So in a very real sense it's in front of the app server. Now, take

[S2] NPE trying to get HttpServletRequest in 2.0.8

2007-06-13 Thread Nate Drake
Hi, I'm attempting to update to 2.0.8, and I've run into a strange issue. In our custom interceptors, we attempt to get the HttpServletRequest like so: HttpServletRequest request = ServletActionContext.getRequest(); This is returning null in 2.0.8 (although it works fine 2.0.7. When we change

[S2] Commons Validator

2007-06-13 Thread Veronica Iturrioz
Hi, anybody know if it's possible to use Commons Validator with Struts 2 ? I try with the struts validation framework (provided by XWork), but the error visualization is too dependent from the theme. thanks in advance.

[S2] Tutorial with Eclipse

2007-06-13 Thread hezjing
Hi! I have a fresh Eclipse installed and I'm following the Struts 2 + Spring 2 + JPA + AJAX tutorial. In the Doing it yourself section, it mentioned about File - New - Project and select Dynamic Web Project under Web folder. Unfortunately I'm don't see the Web folder ... Did I miss out any

Handling international number and date formats in html:text fields

2007-06-13 Thread Adam Lipscombe
Folks, We have an internationalised site using struts 1.3.8. We output currency and number values to the JSP with the bean:write tag and this works well. The problem comes when the user is entering numbers, currency and dates via an html:text field. Ideally it would be nice if the

Re: [S2] Tutorial with Eclipse

2007-06-13 Thread Martin Gilday
Hi. You probably need to install the WTP (Web Tools Project) into your Eclipse. MArtin. - Original message - From: hezjing [EMAIL PROTECTED] To: struts-users user@struts.apache.org Date: Thu, 14 Jun 2007 00:20:04 +0800 Subject: [S2] Tutorial with Eclipse Hi! I have a fresh Eclipse

Re: [S2] Tutorial with Eclipse

2007-06-13 Thread robinbajaj
you will need to install the WTP plugins on top of your eclipse install. even better, you can download it all as one complete bundle (called eclipse distro) from IBM's site - http://www.ibm.com/developerworks/eclipse/downloads/ There are a number of other vendors providing their own customized

Request and parameters are null

2007-06-13 Thread Rusty Spoone
Hi all. I have a Login action that gets intercepted by non other than LoginInterceptor. In the interceptor the username and password are checked. I can even print them in the logs to see that they are really there. The interceptor returns return invocation.invoke(); Then in the Login action

Re: suggestions for login scheme using struts 1.x

2007-06-13 Thread robinbajaj
my issue with having a web-server in front of app-server is, that adds to complexity of the login architecture. If I have my webServer in front of the appServer, (for the reasons you mentioned), I have to have a login web app running on webServer, and the actual business-app running on

Re: suggestions for login scheme using struts 1.x

2007-06-13 Thread Frank W. Zammetti
No, your conceptualizing it a bit more complex than it is. Your web server will (generally) serve unprotected resources, i.e. images, help files, things of that nature. Your app server will handle security for your application in the sense that you constrain certain parts of the application (or

RE: [S2.0.8] datetimepicker.... is it a train wreck?

2007-06-13 Thread Al Sutton
Thanks for the straight answer, next question, whens 2.1 due ? :) -Original Message- From: Musachy Barroso [mailto:[EMAIL PROTECTED] Sent: 13 June 2007 14:08 To: Struts Users Mailing List Subject: Re: [S2.0.8] datetimepicker is it a train wreck? Al just to answer your question

Re: suggestions for login scheme using struts 1.x

2007-06-13 Thread robinbajaj
thanks for sharing your valuable experiences on this topic with me. I think I will come back with more questions... :-) but for now, its good ! thanks once again, robbby Frank W. Zammetti wrote: No, your conceptualizing it a bit more complex than it is. Your web server will (generally)

tabbedpanel modification

2007-06-13 Thread Adrian Ost
Has anybody made experiences modifing the look of struts 2.0.6's -tag tabbedPanel ? I'd like to overwrite the related files within my application. Best case: Using attributes like templateCssPath for the file TabContainer.css and template for TabContainer.html. Both are originally set in the

Re: [S2.0.8] datetimepicker.... is it a train wreck?

2007-06-13 Thread Musachy Barroso
Nobody really knows :), the dojo plugin is ready and the first patch for the url building/portlet refactoring just came through (2 main issues for 2.1) musachy On 6/13/07, Al Sutton [EMAIL PROTECTED] wrote: Thanks for the straight answer, next question, whens 2.1 due ? :) -Original

Re: Struts Navigation display

2007-06-13 Thread Henry F. Camacho Jr.
I did not find anything internal for this. I did write a separate class for this which automates navigation based on Struts actions. I am thinking about releasing this Open Source. I call it NavObjects and it allows you to create button navigation displays. I am still working on JSP tags

Re: Question in writing Struts Program

2007-06-13 Thread Henry F. Camacho Jr.
Looks to me when you hit your action you are not saving those attributes in request. request.setAttribute(username, PersonName); Then in your JSP you can get the Attribute using getAttribute. However I don't think you want to do this. Coming out of the action you should call your business logic

Re: S2: datetimepicker and multiple date formats

2007-06-13 Thread Scott Nesbitt
Ok, you convinced me to stick to one date format: MM/dd/yy. However, even though my JSP looks like this: s:datetimepicker id=selectedDate name=selectedDate displayWeeks=5 displayFormat= MM/dd/yy

Re: S2: datetimepicker and multiple date formats

2007-06-13 Thread Musachy Barroso
In 2.1 the date value will always be on RFC 3339 format which is -MM-dd'T'HH:mm:ss musachy On 6/13/07, Scott Nesbitt [EMAIL PROTECTED] wrote: Ok, you convinced me to stick to one date format: MM/dd/yy. However, even though my JSP looks like this: s:datetimepicker id=selectedDate

[S2] Weblogic struts.multipart.parser

2007-06-13 Thread Hoying, Ken
The MultiPart parser that I am specifying in struts.properties does not appear to be called under Weblogic. This worked fine though under Tomcat. I do nto see any errors in the log. Any ideas why? Thanks in Advance! - ***Note:The information

Re: Struts validator maskif

2007-06-13 Thread Laurie Harper
ugachaka wrote: Hi. I am wondering is there really a validation attribute maskif. I one forum, i read that i just need to add the following lines to my validation-rules and validation xml files and it will work- validator name=validif classname=validation.ValidIf method=validateValidIf

Re: [S2] Multiple s:iterator/ problem

2007-06-13 Thread Laurie Harper
Please keep related messages within the same thread and try to avoid re-posting a question without the context of any prior discussion. See below for another suggestion: Wei Xu wrote: First, you can look through next jsp codes: s:iterator status=stat value=destObjects tr s:iterator

Re: [S2] Commons Validator

2007-06-13 Thread Laurie Harper
Veronica Iturrioz wrote: Hi, anybody know if it's possible to use Commons Validator with Struts 2 ? I try with the struts validation framework (provided by XWork), but the error visualization is too dependent from the theme. I'm not sure what you're trying to do; use Commons Validator

Re: Handling international number and date formats in html:text fields

2007-06-13 Thread Laurie Harper
Adam Lipscombe wrote: Folks, We have an internationalised site using struts 1.3.8. We output currency and number values to the JSP with the bean:write tag and this works well. The problem comes when the user is entering numbers, currency and dates via an html:text field. Ideally it would

Re: Request and parameters are null

2007-06-13 Thread Laurie Harper
Rusty Spoone wrote: Hi all. I have a Login action that gets intercepted by non other than LoginInterceptor. In the interceptor the username and password are checked. I can even print them in the logs to see that they are really there. The interceptor returns return invocation.invoke(); Then

[S2] Weblogic struts.multipart.parser

2007-06-13 Thread ken_hoying
The MultiPart parser that I am specifying in struts.properties does not appear to be called under Weblogic. This worked fine though under Tomcat. I do nto see any errors in the log. Any ideas why? Thanks in Advance! Sent from my Verizon Wireless BlackBerry

Struts 2.0.8 upgrade question

2007-06-13 Thread Ray Clough
It doesn't seem to be a straight forward upgrade from 2.0.6, at least so far as Tiles is concerned. We get a bunch of different exceptions, depending on what we try to do. Each fix seems to break something else, though. Advice? - Ray Clough -- View this message in context:

Re: Struts 2.0.8 upgrade question

2007-06-13 Thread Al Sutton
Have you checked the old version of tiles has been removed?, the version shipped with 2.0.6 was a pre-release of Tiles 2 and the internal APIs changed, I had some problems until I realised my appserver was caching the old tiles jars and the problems were comming from an API mismatch. Ray

avoiding resetting of values

2007-06-13 Thread goodprogram
Hi I have 7 textbox fields, when i enter the values for all those and submit the form, the clientside and server side validations are working well, but the problem is, it resets all textbox values to be empty, and forwarding to the same input page, How can i avoid resetting of values and

getting values from database and displaying in grid format

2007-06-13 Thread goodprogram
Hi guys, May i know how to get the values from the database and display them in grid format in a jsp. Any help is really appreciated. Thanks, RR -- View this message in context: http://www.nabble.com/getting-values-from-database-and-displaying-in-grid-format-tf3917354.html#a11107381 Sent

Re: Request and parameters are null

2007-06-13 Thread Rusty Spoone
Yes. There is only one interceptor which is the one I defined. So this must sound like a silly question. How do I add the interceptors that handle setting data into my action? interceptor-stack name=login interceptor-ref name=loginInterceptor/ /interceptor-stack On 6/13/07, Laurie Harper

DateTimePicker Internet Explorer

2007-06-13 Thread Torsten Römer
The DateTimePicker looks very nice on Linux/Firefox but on Windows/IE the font is too small and the arrows to change week month are not shown: http://luniks.net/DateTimePicker.png I tried to increase the font size by placing a modified version of DatePicker.css from struts-core.jar into my

Re: Struts 2.0.8 upgrade question

2007-06-13 Thread Ray Clough
Nope. It seems pretty clear that something is missing. Here is the error: java.lang.ClassNotFoundException: org.apache.tiles.jsp.context.JspTilesContextFactory For Tiles 2.0.4, that file is found in the file tiles-jsp-2.0.4.jar. I don't know about Tiles 2.0.3 that is bundled with

RE: Struts 2.0.8 upgrade question

2007-06-13 Thread Al Sutton
Grab the distribution from tiles.apache.org and copy the jsp jar into your webapp. This is something I raised on the dev list and the jar will be part of future builds. -Original Message- From: Ray Clough [EMAIL PROTECTED] To: user@struts.apache.org Sent: 6/13/07 9:00 PM Subject: Re:

[S2] Tiles plugin on 1.4

2007-06-13 Thread Charbel Abdul-Massih
Do I need to do something special to get tiles plugin working on JDK 1.4??? I'm getting the following error in weblogic startup UnsupportedClassVersionError: org/apache/struts2/tiles/StrutsTilesListener (Unsupported major.minor version 49.0

Re: Request and parameters are null

2007-06-13 Thread Dave Newton
--- Rusty Spoone [EMAIL PROTECTED] wrote: How do I add the interceptors that handle setting data into my action? http://struts.apache.org/2.x/docs/interceptors.html d. Yahoo! oneSearch: Finally,

Re: [S2] Tiles plugin on 1.4

2007-06-13 Thread Dave Newton
--- Charbel Abdul-Massih wrote: Do I need to do something special to get tiles plugin working on JDK 1.4??? You need to retro-translate them, just like the S2 J4 jars. d. Now that's room service! Choose

Standalone DatePicker?

2007-06-13 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 All, I am a user of Struts 1 and I've seen a lot of discussion of the S2 date picker lately. I have a need for a date picker and I'd like to know if there is a way to use this widget without actually running S2 under the hood. I realize that the tag

Re: Standalone DatePicker?

2007-06-13 Thread Torsten Römer
As the DateTimePicker is actually a Dojo widget I'd assume you can also use it without Struts2: http://dojotoolkit.org/ But I'd rather use this JavaScript calendar: http://www.mattkruse.com/javascript/calendarpopup/ Torsten Christopher Schultz schrieb: All, I am a user of Struts 1 and

Unable to submit lists with 2.0.8

2007-06-13 Thread Adam Ruggles
My Form looks like this: form ... input type=hidden name=invoices[0].id value=24907 / input type=text name=invoices[0].salesOrder value= / input type=hidden name=invoices[1].id value=24908 / input type=text name=invoices[1].salesOrder value= / input type=hidden name=invoices[2].id value=24909 /

Re: Standalone DatePicker?

2007-06-13 Thread Dave Newton
--- Christopher Schultz wrote: I'd like to know if there is a way to use this widget without actually running S2 under the hood. It's just Dojo; check out the docs on their site. http://manual.dojotoolkit.org/widget/DatePicker.html d.

RE: [S2] Tiles plugin on 1.4

2007-06-13 Thread Charbel Abdul-Massih
Dave, I did run retro-translator on the tiles-plugin jars...I was able to get weblogic 8.1 started on jdk 1.4.2 without any issues, so I moved a step closer...However, when I try to access my action, and it returns a tiles result, I get the following jsp error in the browser:

RE: Struts 2.0.8 upgrade question

2007-06-13 Thread Ray Clough
I got it to work with 2 steps. 1) I downloaded the 2.0.3 version of Tiles. Note that this requires knowing the download url, because the current Tiles download page is for v2.0.4 only. The difference in the download url is only the version number. 2) The Tiles DTD seems to have changed.

Re: [OT] Standalone DatePicker?

2007-06-13 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Torsten, Torsten Römer wrote: As the DateTimePicker is actually a Dojo widget I'd assume you can also use it without Struts2: Hey, thanks for the heads-up. I basically have zero familiarity with S2, but knowing that it's a 3rd-party widget is

RE: [S2] Tiles plugin on 1.4

2007-06-13 Thread Dave Newton
--- Charbel Abdul-Massih wrote: I did run retro-translator on the tiles-plugin jars...I was able to get weblogic 8.1 started on jdk 1.4.2 without any issues, so I moved a step closer...However, when I try to access my action, and it returns a tiles result, I get the following jsp error in

Struts2 Not Executing Actions

2007-06-13 Thread Danny Hurlburt
Hello, I am new to Struts2 and am running into some problems. I have read much of the documentation on the wiki but I am still stuck. I have added the filter declaration and filter mapping to web.xml. I have confirmed that it gets invoked by setting a breakpoint in the doFilter method. I have

[S2] Could not parse struts.locale setting

2007-06-13 Thread Torsten Römer
Everytime my app starts, I see this in the log: 13.06.2007 23:50:27 org.apache.struts2.config.Settings getLocale WARNUNG: Settings: Could not parse struts.locale setting, substituting default VM locale I put constant name=struts.locale value=en_GB / in my struts.xml, but I still get the error

[S2] Problem with Date pattern

2007-06-13 Thread Diego Yasuhiko Kurisaki
I'm manually using the DojoTookit Date Picker withe the following pattern dd/MM/yyy in my action i have a setter method like this. setDate(Date date){ this.date = date } But it seens that the struts 2 when sets the method changes from dd/MM/ for MM/dd/ does anyone know any solution?

Re: [S2] Could not parse struts.locale setting

2007-06-13 Thread Danny Hurlburt
I was getting the same warning. I was able to remove the warning by creating a /WEB-INF/classes/struts.properties file with struts.locale=en_GB I am however not able to set the locale via the constant element in struts.xml althought the documentation at

Re: Unable to submit lists with 2.0.8

2007-06-13 Thread Adam Ruggles
Ok it worked again once I added a conversion.properties file to the action. Why do I need a conversion properties file now? Did some default setting change in relation to this? Adam Ruggles wrote: My Form looks like this: form ... input type=hidden name=invoices[0].id value=24907 /

Refreshing div after a session timeout

2007-06-13 Thread Summers Pittman ℝ
Hello all, I am currently writing an application which requires a login and thus an active session. I have been using the anchor and div tags in the ajax theme to help with browsing related data. Today I discovered an interesting scenario which I was hoping to get help with. 1. I log into the

Re: [S2] Problem with Date pattern

2007-06-13 Thread Musachy Barroso
Try using a Date object for your field, and set saveFormat=rfc for the widget. musachy On 6/13/07, Diego Yasuhiko Kurisaki [EMAIL PROTECTED] wrote: I'm manually using the DojoTookit Date Picker withe the following pattern dd/MM/yyy in my action i have a setter method like this.

S2 S1 Tiles2 Tiles1 Question

2007-06-13 Thread Ray Clough
I have a large app using S2 with Tiles2 and S1 with Tiles1 intermingled. Eventually, this is going to cause problems, especially when I want to include pages rendered by T1 inside pages rendered by T2. Now that Tiles2 can function independently of Struts, is it feasible to start using T2 with

Re: [S2] Problem with Date pattern

2007-06-13 Thread Diego Yasuhiko Kurisaki
I'm using saveFormat=rfc and java.util.Date as my object My dojo is. div dojoType=dropdowndatepicker id=Anuncio_anuncio_dataInicial name= dojo.anuncio.dataInicial inputName=anuncio.dataInicial displayFormat=dd/MM/ saveFormat=rfc value=s:property value= anuncio.fmtDataInicial/ and my setter

Re: What is the equivalant for reset in S2

2007-06-13 Thread tom tom
I can't see any clean() method in the ActionSupport, I am using struts 2.0.6. Is there any other way to do this. Thanks, --- Rikard [EMAIL PROTECTED] wrote: Hi well in webwork i use the clean(); method of the class ActionSupport i think its the same in S2. Just make a reset() method in

Re: [S2] Tutorial with Eclipse

2007-06-13 Thread hezjing
Good, and it would be very nice to list Eclipse WTP plugin as one of this tutorial's prerequisites. Thank you! On 6/14/07, robinbajaj [EMAIL PROTECTED] wrote: you will need to install the WTP plugins on top of your eclipse install. even better, you can download it all as one complete bundle

Extends Struts - layout tag

2007-06-13 Thread Sourabh Chandan
Hi All, I am trying to extend the one of the Layout tag for providing customize functionlity like passing more attributes in tag. For example i am writing like MyClass extends DatagridColumnTag How can I continue this. if any docs please post it to me OR I am trying to read the entered

Re: why response.addCookie not working inside Struts action class

2007-06-13 Thread Zoran Avtarovski
Have a look at this: http://www.velocityreviews.com/forums/t124632-struts-set-a-cookie.html Also, in the past or protocol was to use bean:cookie to set cookies, I'm actually sure why, but it works reliably. Z. inside Struts(1.x) Action class, within method public

Re: Standalone DatePicker?

2007-06-13 Thread Zoran Avtarovski
Also, Matts, calendar popup has a struts 1 taglib which works great. Let me know if you can't find it and I'll send it to you. Z. As the DateTimePicker is actually a Dojo widget I'd assume you can also use it without Struts2: http://dojotoolkit.org/ But I'd rather use this JavaScript

Re: How to validate field in type of a model class by annotations.

2007-06-13 Thread Jeromy Evans
public User getUser() {return user;} @EmailValidator(type = ValidatorType.FIELD, fieldName = user.email, key = email.invalid, message = Invalid mail addrss) public void setUser(User user) {this.user = user;} I noticed that using @Validations, I can

How to use ObjectFactory

2007-06-13 Thread Strut_developer
Hello, I want to use object factory in my project but what I have found that ObjectFactory.getInstance returns null in separate thread. Scenario: At time of starting server object factory is initialized and I am able to use it in actions. but in server startup event, after server is started I

[S2] Getting DAO from Spring in Struts Action

2007-06-13 Thread M. Bitner
Good day, I'm working on a Struts 2 app that uses Spring to manage the DAO layer. I have the ContextLoaderListener and applicationContext configured in web.xml. When the app starts I can see in the console that Spring is picking up the beans defined in applicationContext and instantiating them.

Re: Struts 2.0.8 upgrade question

2007-06-13 Thread Laurie Harper
I think Al meant he raised the issue on the dev list in response to your message, so that it will be fixed in the next release. It was certainly an unfortunate omission, though. You can help prevent such problems in the future, though, by watching the Struts dev list for announcements of new

Re: avoiding resetting of values

2007-06-13 Thread Laurie Harper
goodprogram wrote: Hi I have 7 textbox fields, when i enter the values for all those and submit the form, the clientside and server side validations are working well, but the problem is, it resets all textbox values to be empty, and forwarding to the same input page, How can i avoid

Re: [S2] Tiles plugin on 1.4

2007-06-13 Thread Laurie Harper
Dave Newton wrote: --- Charbel Abdul-Massih wrote: I did run retro-translator on the tiles-plugin jars...I was able to get weblogic 8.1 started on jdk 1.4.2 without any issues, so I moved a step closer...However, when I try to access my action, and it returns a tiles result, I get the following

Re: Re: Struts 2.0.8 upgrade question

2007-06-13 Thread Ray Clough
Thx. - Original Message - From: Laurie Harper [EMAIL PROTECTED] To: user@struts.apache.org Subject: Re: Struts 2.0.8 upgrade question Date: Thu, 14 Jun 2007 01:15:31 -0400 I think Al meant he raised the issue on the dev list in response to your message, so that it will be

  1   2   >