Re: Update from 2.0.9 to 2.0.11

2008-01-03 Thread Michał Letyński
So it was a bug that we could use EL expressions in struts tag ? Eric Rank pisze: I ran in to this same problem. The Struts tags no longer accept EL. It was a bug fix. More detail here: https://issues.apache.org/struts/browse/WW-2107 You can still use OGNL though: Eric Rank - Se

S2: httpheader result type

2008-01-03 Thread John . C . Cartwright
Hello All, in configuring the httpheader result type in the struts.xml file, is there a way to access objects on the value stack? Thanks! --john - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMA

Re: struts2: interceptor - validation doesn't work :-(

2008-01-03 Thread xianwinwin
thanks wes, I tried this manipulation - didnt work :-( Wes Wannemacher wrote: > > Try annotating the getter rather than the setter. > > -Wes > > On 1/3/08, xianwinwin <[EMAIL PROTECTED]> wrote: >> >> yes i did :super: >> >> >> >> newton.dave wrote: >> > >> > Did you annotate the class with t

Interceptor best practices ...

2008-01-03 Thread Mufaddal Khumri
Am trying to understand the best practice if any for a ValidateLoginInterceptor of sorts. In the code below, if the login is valid then we make a call to: return actionInvocation.invoke(); In case the login information was incorrect, what should one do? return ActionSupport.ERROR /

Re: struts2: interceptor - validation doesn't work :-(

2008-01-03 Thread Wes Wannemacher
Try annotating the getter rather than the setter. -Wes On 1/3/08, xianwinwin <[EMAIL PROTECTED]> wrote: > > yes i did :super: > > > > newton.dave wrote: > > > > Did you annotate the class with the @Validation() annotation? > > > > d. > > > > --- xianwinwin <[EMAIL PROTECTED]> wrote: > > > >> > >>

Re: struts2: interceptor - validation doesn't work :-(

2008-01-03 Thread xianwinwin
yes i did :super: newton.dave wrote: > > Did you annotate the class with the @Validation() annotation? > > d. > > --- xianwinwin <[EMAIL PROTECTED]> wrote: > >> >> I've been struggling with this issue for a while and any pointer would be >> appreciated. >> >> I have a simple file with one

Re: Enum, TypeConversion and error handling

2008-01-03 Thread Dave Newton
--- Adam Hardy <[EMAIL PROTECTED]> wrote: > Fresh from plugging in my first TypeConverter, I find that on the whole the > TypeConversion mechanism in S2 is very good. After setting up a custom type > converter, I thought I could chip in with a couple of comments: > > (1) where to register type con

Re: struts2: interceptor - validation doesn't work :-(

2008-01-03 Thread Dave Newton
Did you annotate the class with the @Validation() annotation? d. --- xianwinwin <[EMAIL PROTECTED]> wrote: > > I've been struggling with this issue for a while and any pointer would be > appreciated. > > I have a simple file with one field -name; I would like to validate that > the > user put

Enum, TypeConversion and error handling

2008-01-03 Thread Adam Hardy
Fresh from plugging in my first TypeConverter, I find that on the whole the TypeConversion mechanism in S2 is very good. After setting up a custom type converter, I thought I could chip in with a couple of comments: (1) where to register type converter - took a while to discover whether I was

struts2: interceptor - validation doesn't work :-(

2008-01-03 Thread xianwinwin
I've been struggling with this issue for a while and any pointer would be appreciated. I have a simple file with one field -name; I would like to validate that the user put information in it. I'm using the annotation in order to achieve this but for some reason the validation doesn't work (there

Re: ognl exceptions

2008-01-03 Thread Laurie Harper
Dave Newton wrote: --- Brian Relph <[EMAIL PROTECTED]> wrote: Although this would work for me personally during development, i am not the first line of tech support... So when something breaks, and tech support turns logging up to debug, i would like them not to have a bunch of extra exceptions

S2: chart result type not recognized

2008-01-03 Thread John Cartwright
Hello All, I'm having a little trouble getting a chart result type configured using the package declaration below. Whenever I hit the associated URL, my browser prompts me to save a "bin" file rather than displaying the chart. The bin file is a valid png, but somehow Struts is not recogniz

Re: ognl exceptions

2008-01-03 Thread Dave Newton
--- Brian Relph <[EMAIL PROTECTED]> wrote: > Although this would work for me personally during development, i am not the > first line of tech support... So when something breaks, and tech support > turns logging up to debug, i would like them not to have a bunch of extra > exceptions in their logs.

Re: Fine on local server, 404 on production?

2008-01-03 Thread Keith Struts
Well, whatever the problem was, it was one of those nice ones that magically resolved itself. The guy that deploys apps on prod tried again, and it worked. Sorry about the unnecessary inbox traffic! ~ Keith On Jan 3, 2008 2:12 PM, Manos Batsis <[EMAIL PROTECTED]> wrote: > Keith Struts wrot

Re: how to avoid form's validation if the user choose cancel?

2008-01-03 Thread xianwinwin
YES! exactly what I needed. thanks!!! Alberto A. Flores wrote: > > one way I did that was by using the "non-validating" method point to a > method (in the Action class) to have the following annotation > > @SkipValidation > > Then in the struts tag, you force the button to use such method

Re: Struts 1.3.8 Plugins initializing twice

2008-01-03 Thread Paul Benedict
Load up the debugger. That's what I would do. If your plugin is being initialized twice, put a break point where that occurs and find out how this is occurring. There obviously must be a configuration problem because I've never seen this. Paul On Jan 3, 2008 12:28 PM, Edward Song <[EMAIL PROTECTE

Re: unexpected behavior with a checkbox.

2008-01-03 Thread David Durham, Jr.
On Jan 2, 2008 10:59 PM, ravi_eze <[EMAIL PROTECTED]> wrote: > > hi, > > the workaround works, but causes problems if the checkbox should be > validated. More over the soln is based on assumptions that need not hold > always. Which solution are you saying is based on assumptions that need not hold

Re: ognl exceptions

2008-01-03 Thread Brian Relph
Although this would work for me personally during development, i am not the first line of tech support... So when something breaks, and tech support turns logging up to debug, i would like them not to have a bunch of extra exceptions in their logs. As well, i do not expect them to have any knowled

Re: ognl exceptions

2008-01-03 Thread Dave Newton
Turn down logging on the stuff you want to ignore. --- Brian Relph <[EMAIL PROTECTED]> wrote: > When i turn logging up to debug, i get TONS of the same stack trace when > using my struts2 app ... > > Can i get rid of these somehow? > > [1/3/08 13:08:13:106 CST] 004c SystemOut O [WebCont

Re: Update from 2.0.9 to 2.0.11

2008-01-03 Thread Eric Rank
I ran in to this same problem. The Struts tags no longer accept EL. It was a bug fix. More detail here: https://issues.apache.org/struts/browse/WW-2107 You can still use OGNL though: Eric Rank - Senior Web App Engineer www.referencevault.com On Jan 3, 2008, at 3:39 AM, Michał L

Re: Fine on local server, 404 on production?

2008-01-03 Thread Manos Batsis
Keith Struts wrote: I recently rewrote an existing application in Struts 2, and everything seems fine. Runs on my Eclipse server, as well as the local tomcat instance on 2 different machines. However, when we deploy it to the production server, we get a 404 error. Check your server logs. Does

Fine on local server, 404 on production?

2008-01-03 Thread Keith Struts
Hi everyone, I recently rewrote an existing application in Struts 2, and everything seems fine. Runs on my Eclipse server, as well as the local tomcat instance on 2 different machines. However, when we deploy it to the production server, we get a 404 error. Any idea what the problem could be?

ognl exceptions

2008-01-03 Thread Brian Relph
When i turn logging up to debug, i get TONS of the same stack trace when using my struts2 app ... Can i get rid of these somehow? [1/3/08 13:08:13:106 CST] 004c SystemOut O [WebContainer : 1] DEBUG com.opensymphony.xwork2.util.InstantiatingNullHandler - Entering nullPropertyValue [target=

Re: [S2] Infinite Recursion Detected error

2008-01-03 Thread srinivasch
Hi, I am getting the same error when running the junit test. Infinite recursion detected: [/login!input, /exceptionHandler, /exceptionHandler] - [unknown location] at com.opensymphony.xwork2.ActionChainResult.execute(ActionChainResult.java:207) at com.opensymphony.xwork2.Default

Re: FileUpload problem for files larger than allowed

2008-01-03 Thread Dave Newton
--- saint_john <[EMAIL PROTECTED]> wrote: > yes, i have to do something like prepare(). > But struts behavior is very doubtful in case of validation error - it's I > DECIDE where execution control should flow (i mean INPUT result, SUCCESS or > ERROR or whatever i want), not struts. Then don't use

RE: Struts 1.3.8 Plugins initializing twice

2008-01-03 Thread Edward Song
Hi Paul, Thanks for the reply, I understand that plugins apply for the entire framework. However, I do NOT have the ActionServlet declared twice in my web.xml nor do I have multiple struts-config files. Here is my web xml for the action servlet. Struts Action Servlet action

Re: FileUpload problem for files larger than allowed

2008-01-03 Thread saint_john
yes, i have to do something like prepare(). But struts behavior is very doubtful in case of validation error - it's I DECIDE where execution control should flow (i mean INPUT result, SUCCESS or ERROR or whatever i want), not struts. newton.dave wrote: > > Oh; I'm not sure why you'd do that in

Re: Struts 1.3.8 Plugins initializing twice

2008-01-03 Thread Paul Benedict
Struts 1.4 contains the fix not to have plug-ins initialized twice. The fact is that there is no such thing as module plug-ins. Only plug-ins for the entire Struts framework. If you're seeing initialization twice, it's possible you have the plugin defined twice within the model or two modules with

RE: Struts 1.3.8 Plugins initializing twice

2008-01-03 Thread Edward Song
Thanks Randy for the feedback. I looked deeply into it and this is what I found The ActionServlet's init() method is called twice. (I don't know why, I guess this is what I'm trying to find out...) There is a series of method calls in the ActionServlet.init() method... initModuleMessag

Re: FileUpload problem for files larger than allowed

2008-01-03 Thread Dave Newton
Oh; I'm not sure why you'd do that in addActionError(), though. That's what prepare() etc. are for, isn't it? d. --- saint_john <[EMAIL PROTECTED]> wrote: > > Thanks for help. > > "View data" - some info from DB displayed in jsp after action execution > > > newton.dave wrote: > > > > --- sa

Re: FileUpload problem for files larger than allowed

2008-01-03 Thread saint_john
Thanks for help. "View data" - some info from DB displayed in jsp after action execution newton.dave wrote: > > --- saint_john <[EMAIL PROTECTED]> wrote: >> Yes, my action's addActionError() was called, but not the execute() >> method. >> It is very sad what I should fill view data inside addA

Re: FileUpload problem for files larger than allowed

2008-01-03 Thread Dave Newton
--- saint_john <[EMAIL PROTECTED]> wrote: > Yes, my action's addActionError() was called, but not the execute() method. > It is very sad what I should fill view data inside addActionError() instead > of execute(). execute() isn't called if there's a validation error. I don't know what you're refe

Re: FileUpload problem for files larger than allowed

2008-01-03 Thread saint_john
Yes, my action's addActionError() was called, but not the execute() method. It is very sad what I should fill view data inside addActionError() instead of execute(). newton.dave wrote: > > http://struts.apache.org/2.x/docs/file-upload-interceptor.html > > It's a validation error, isn't it? >

Re: Struts 2.0.11 + Tiles 2.0.5

2008-01-03 Thread Vinny
Did you by chance build your project from the info on this page? http://struts.apache.org/2.0.11/docs/struts-maven-archetypes.html the archetype is uses as an example is old (2.0.5). Should a Jira be opened to correct this? On Jan 3, 2008 9:02 AM, Marcin Pietraszek <[EMAIL PROTECTED]> wrote: > 20

Re: FileUpload problem for files larger than allowed

2008-01-03 Thread Dave Newton
http://struts.apache.org/2.x/docs/file-upload-interceptor.html It's a validation error, isn't it? d. --- saint_john <[EMAIL PROTECTED]> wrote: > > Hi all, > > I've got the following problem: > > I have a form to upload files and everything works fine until i upload a > file larger than upper

FileUpload problem for files larger than allowed

2008-01-03 Thread saint_john
Hi all, I've got the following problem: I have a form to upload files and everything works fine until i upload a file larger than upper limit. In this case Struts2 doesn't call my Action.execute() method and i cant notify user about file size problem. It looks like Struts just rejects the reques

Re: Struts 1.3.8 Plugins initializing twice

2008-01-03 Thread Randy Burgess
This is from a Struts 1.2.8 app of mine. action org.apache.struts.action.ActionServlet config /WEB-INF/struts-config.xml debug 3 detail 3 0 You don¹t need the debug params but in this case it might not hurt. I cann

Struts 1.3.8 Plugins initializing twice

2008-01-03 Thread Edward Song
Hi all, Struts 1.3.8 I have a single struts module and it seems as though my plugins are getting loaded twice. This goes for the validator, tiles, and my own written plugins. I've found out that if in the web.xml I do not specify a value for then the ActionServlet is not initialized

RE: regex validation problem

2008-01-03 Thread nalikas1
Thanks, I was finally able to figure it out... ^(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).{6,15}$ > Date: Wed, 2 Jan 2008 21:06:10 -0800> From: [EMAIL PROTECTED]> To: > user@struts.apache.org> Subject: Re: regex validation problem> > > hi,> > > seems like ur missing validation and workflow interceptors.

Re: WW2.1.7 to S2: Most S2 tags fails to retrieve values

2008-01-03 Thread wwwclaes
Just a quick followup to my own post, in case anyone is interested. The Velocity templates have been moved in S2 to "template/archive", so most of my problems were solved by setting "struts.ui.templateDir=template/archive" and moving my application templates to "template/archive" as well (that wa

RE: problem in accessing get parameter in struts 2 [when using interceptor]

2008-01-03 Thread Dave Newton
Please reply to the struts-user list, not directly to responders. --- [EMAIL PROTECTED] wrote: > actually I am using interceptor for checking the user is already login or > not, if the user is not logged in it will redirect to login page Okay. What you should do now, then, is include some useful

Re: Struts 2.0.11 + Tiles 2.0.5

2008-01-03 Thread Marcin Pietraszek
2008/1/3, Antonio Petrelli <[EMAIL PROTECTED]>: > I think that the wrong dependency is in the struts2-tiles-plugin > because it seems to reference an old version of the "render" method. Of course this was my problem! I should use org.apache.struts struts2-tiles-plugin 2.0.11

[S2]Issue with wrong dates for datetimepicker and the New Year

2008-01-03 Thread Skip Hollowell
I have a datetimepicker on my page, from the struts tag lilbrary: <%@ taglib prefix="s" uri="/struts-tags"%> ... So today is Jan 3. If I choose December 31, Monday of this week, the value I get back in my field is 3/2/2008, and for the 30th, Sunday, I receive 3/1/2008 Conversely, if I

Re: FileUpload problem for empty files.

2008-01-03 Thread Michał Letyński
I found that there is a Treshold parameter, here is short info: / "Sets the size threshold beyond which files are written directly to disk." /This paramater is set to 0. So my attachment is not written to disk but is keeped in memory. In struts 1 this parameters was set to 262144. But my problem

Re: Result Annotations and parameters

2008-01-03 Thread jogep
I try both, but it has no affect. Now i try it with an current 2.1.1 Snapshot, but the error still exists. @Result(value = "result.action", type = ServletActionRedirectResult.class, params={"bid","${bid}"}) DEBUG (org.apache.struts2.interceptor.FileUploadInterceptor:58) - Überspringe //save jav

Re: [S2] Opening a new window upon a link click without Javascript

2008-01-03 Thread Gabriel Belingueres
AFAIK, the tag is best used when designing ajax applications, meaning the usual interaction is to update the same browser window. I would stay with the common HTML anchor tag to open a new window. Gabriel 2008/1/3, Al Sutton <[EMAIL PROTECTED]>: > Heres channelge for the day... > > I have a pa

Re: Image Upload and Dojo

2008-01-03 Thread jogep
With a 2.1.1 Snapshot the Image Upload works. But now i receive in the target div only the message [object HTMLDocument]. Does anybody know why i don't see my result? Best Regards Johannes Geppert Wes Wannemacher wrote: > > You can build it yourself pretty easily. If you have maven installed

Re: Struts 2.0.11 + Tiles 2.0.5

2008-01-03 Thread Antonio Petrelli
2008/1/3, Marcin Pietraszek <[EMAIL PROTECTED]>: org.apache.tiles.TilesContainer.render(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/String;)V > > org.apache.struts2.views.tiles.TilesResult.doExecute(TilesResult.java:104) > > org.apache.struts2.dispatcher.StrutsResultSupport.exe

problem in accessing get parameter in struts 2 [when using interceptor]

2008-01-03 Thread Unnikrishnan
HI I am new to struts2 . I have a problem in accessing get parameter. for example I am working on my local machine and I have the following URL. http://localhost:8080/PaymentModule-war/UsersList.action?added=true I have setter and getter method for 'added'. But my problem is I am not getting v

Update from 2.0.9 to 2.0.11

2008-01-03 Thread Michał Letyński
Hi, I did an update from version 9 to 11. And after that i got a lot of errors in jsp: /"According to TLD or attribute directive in tag file, attribute test does not accept any expressions" /I have many expressions in s:if test=${value_here}, s:submit src="${imgPath}/save_attachment.gif"" et

Setting default locale?

2008-01-03 Thread Sebastian Göttschkes
Hi, Im trying to give Struts a default locale which is used in the whole application (e.g. org.apache.struts.action.Action.getLocale(request); or javax.servlet.ServletRequest.getLocale();). I don't want to use the locale settings from the browser anymore but define the language used in the Act

FileUpload problem for empty files.

2008-01-03 Thread Michał Letyński
Hi. Im using struts 2 s:file tag for uploading files. But it does not work for empty files -> 0bytes. Temp file is not created in tomcat tmp directory. Why ? Is it a struts bug ? - To unsubscribe, e-mail: [EMAIL PROTECTED] Fo

[S2] Opening a new window upon a link click without Javascript

2008-01-03 Thread Al Sutton
Heres channelge for the day... I have a page which contains a link, when the user clicks the link they get a PDF which they need to go off and do something with (not part of the webapp). What I'd like to do is open a new browser window with the PDF in and retain the page with link in the origin

Re: saveToken() help!!!!!

2008-01-03 Thread Paul Benedict
The use of tokens is very simple. Let's say you have two actions, A and B. Action A will call setToken and put into the session a unique identifier. Action A then forwards off to a page to display to the user. Struts Form tag knows to output the token as a hidden field. When that is submitted to a