RE: FormFile is not getting populated when using winhttp on Vista

2007-06-26 Thread Meindert
FYI, found a workaround for the struts/FormFile issue. The issue(s) a) Struts doesn't resolve the file when there is Charset information in the Content-Type header for a multipart/form-data post. b) Winhhtp on Vista (dll version 6) adds '; Charset=UTF-8' to the Content-Type The fix; Add the text

Re: Tiles exeption after upgrading from Struts 2.0.6 to 2.0.8

2007-06-26 Thread Roberto Nunnari
Solved. The problem was with the new commons-beanutils shipped with S2 that doesn't include org.apache.commons.beanutils.NestedNullException Best regards. -- Robi Roberto Nunnari wrote: Hello everybody. I'm trying to upgrade my webapp from Struts 2.0.6 to 2.0.8 I'm using the Tiles-plugin

Re: Minimized Window State NOT working

2007-06-26 Thread Nils-Helge Garli
All portlets are responsible for what to render in the different window states, even when caching is enabled, if the portlet is the target of a user interaction (PLT.18.1 in the spec). But usually when creating portlets, you extend the GenericPortlet class, which has built in logic for skipping

S2 - Dojo Tree Widget

2007-06-26 Thread Max Pimm
I have seen that people are working on integrating the Dojo tree widget into the 2.1 release. I'm using 2.0.6 release and am about to implement the tree widget in my app. I'm new to dojo and haven't been able to find much official documentation for this widget. I wondered if someone who has a

Problem downloading a file using a Struts 2 action

2007-06-26 Thread jneville
Hi, I'm trying to code file download functionality in a Struts 2 action. The action executes and the success result is invoked, but the pop-up window in the browser, which prompts to save the file, does not appear. I think I am configuring the response incorrectly (see code below). Any help

Re: Problem downloading a file using a Struts 2 action

2007-06-26 Thread Max Pimm
You can do this without explicitly accessing the output stream of the HttpServletResponse. 1) In struts.xml define the result type of your action as a stream, you can define content type here aswell action name=myAction method=myMethod class=myActionClass result type=stream

[S2] onsubmit in s:form tag

2007-06-26 Thread Vincent Lin
Hi! I wrote s:form action=Admin_create onsubmit=return (validateFields()) in my JSP, but struts 2 rendered the following html: form id=Admin_create name=Admin_create onsubmit=return (validateFields()); return true; ... Why it renders onsubmit=return (validateFields()); return true; instead

[S2] How do I create a client side validator?

2007-06-26 Thread Vincent Lin
Is there any document talking about how to create a client side validator in struts2? Thanks!

Re: [S2] onsubmit in s:form tag

2007-06-26 Thread Dave Newton
--- Vincent Lin [EMAIL PROTECTED] wrote: Why it renders onsubmit=return (validateFields()); return true; instead of onsubmit=return (validateFields()) ? Can I make renders onsubmit=return (validateFields()) only? Probably that's what's in the template. I'm not sure that it really matters,

Re: [S2] How do I create a client side validator?

2007-06-26 Thread Dave Newton
--- Vincent Lin [EMAIL PROTECTED] wrote: Is there any document talking about how to create a client side validator in struts2? Yes, it's one of the links under the validation section on the wiki. http://struts.apache.org/2.x/docs/validation.html

XSLTResult - Custom Adapters

2007-06-26 Thread mfnospam
Hello everybody, I just tried out the new Struts version using the HelloWorld example. I extended it to support XSLT as view technology. I'm fascinated how easy it was. The only thing I could not figure out how to do it is how I can register custom adapters for converting custom objects to

Is S2 Ready for Prime Time?

2007-06-26 Thread stanlick
*** Please don't blast me for asking. I'm simply looking for educated and objective feedback *** Is your company using Struts2? We are starting a Proof of Concept this week and I honestly don't even know where to begin! I have read so many different viewpoints about S2 that I can't tell

How to make tabs in JSP

2007-06-26 Thread Kavita Mehta
Hi, I want to code a JSP page with tabs . Does struts support an easy way of doing the same. Any link to the related resource would be helpful ...I have searched on Struts-Layout ...any other option ? Thanks Kavita

Re: How to make tabs in JSP

2007-06-26 Thread Angelo zerr
Hi, perhaps you could be interest with JSPTabControl http://jsptabcontrol.sourceforge.net/ which generate tabs with ul/li HTML. Regards Angelo 2007/6/26, Kavita Mehta [EMAIL PROTECTED]: Hi, I want to code a JSP page with tabs . Does struts support an easy way of doing the same. Any link to

RE: [S2] How do I create a client side validator?

2007-06-26 Thread mahesh
unscribe -Original Message- From: Dave Newton [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 26, 2007 4:35 PM To: Struts Users Mailing List Subject: Re: [S2] How do I create a client side validator? --- Vincent Lin [EMAIL PROTECTED] wrote: Is there any document talking about how to

RE: [S2] How do I create a client side validator?

2007-06-26 Thread Dave Newton
rescribe Now there is no escape. --- mahesh [EMAIL PROTECTED] wrote: unscribe -Original Message- From: Dave Newton [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 26, 2007 4:35 PM To: Struts Users Mailing List Subject: Re: [S2] How do I create a client side validator? ---

RE: [S2] How do I create a client side validator?

2007-06-26 Thread King, William S.
I'm BRAND NEW to Struts2 Ajax. Can anyone point me in the right direction to use Dojo in my application...it's a web app using portles, JSPs, Struts2, Ajax. I see in documentation that to utilize the Ajax form validation I need to install the Dojo toolkit. I've downloaded the zip file, but it

Re: How to make tabs in JSP

2007-06-26 Thread Adrian Ost
Angelo zerr schrieb: Hi, perhaps you could be interest with JSPTabControl http://jsptabcontrol.sourceforge.net/ which generate tabs with ul/li HTML. Regards Angelo 2007/6/26, Kavita Mehta [EMAIL PROTECTED]: Hi, I want to code a JSP page with tabs . Does struts support an easy way of doing

Re: How to make tabs in JSP

2007-06-26 Thread Angelo zerr
If you are using Struts2.x, you should use tabbedpanel as Adrian have you suggested. 2007/6/26, Adrian Ost [EMAIL PROTECTED]: Angelo zerr schrieb: Hi, perhaps you could be interest with JSPTabControl http://jsptabcontrol.sourceforge.net/ which generate tabs with ul/li HTML. Regards

RE: [S2] How do I create a client side validator?

2007-06-26 Thread Dave Newton
Please repost under a new subject heading; you may get more responses that way. --- King, William S. [EMAIL PROTECTED] wrote: I see in documentation that to utilize the Ajax form validation I need to install the Dojo toolkit. S2 comes w/ Dojo (at least in the 2.0 version). d.

Help using Ajax form validation

2007-06-26 Thread King, William S.
I'm BRAND NEW to Struts2 Ajax. Can anyone point me in the right direction to use Dojo in my application...it's a web app using portles, JSPs, Struts2, Ajax. I see in documentation that to utilize the Ajax form validation I need to install the Dojo toolkit. I've downloaded the zip file, but it

Re: Is S2 Ready for Prime Time?

2007-06-26 Thread Dave Newton
--- [EMAIL PROTECTED] wrote: Is your company using Struts2? Yes (multiple companies), although at least one may be switching to JRoR. We are starting a Proof of Concept this week and I honestly don't even know where to begin! In terms of what? What interfaces to implement? So far I

Re: [S2] OptionTransferSelect in 2.0.8

2007-06-26 Thread Musachy Barroso
What if the ticket number? That would be a major issue regards musachy On 6/25/07, Adam Ruggles [EMAIL PROTECTED] wrote: Something broke between 2.0.6 and 2.0.8 when posting collections. You will need to create a conversions properties file for your action. I've logged a bug but I haven't

Re: S2 - Dojo Tree Widget

2007-06-26 Thread Musachy Barroso
The tree works on 2.0.6/2.0.8 AFAIK, did you try the tree tag? regards musachy On 6/26/07, Max Pimm [EMAIL PROTECTED] wrote: I have seen that people are working on integrating the Dojo tree widget into the 2.1 release. I'm using 2.0.6 release and am about to implement the tree widget in my

RE: How to make tabs in JSP

2007-06-26 Thread nagesh.kumar
In struts layout u have lots options layout:tabs U can try this -Original Message- From: Kavita Mehta [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 26, 2007 5:34 PM To: user@struts.apache.org Subject: How to make tabs in JSP Hi, I want to code a JSP page with tabs . Does struts

Re: Help using Ajax form validation

2007-06-26 Thread Musachy Barroso
I think you have more than one question :), start by checking out the tutorials: http://struts.apache.org/2.x/docs/tutorials.html and take a look at Starting with Struts book: http://www.infoq.com/minibooks/starting-struts2 Then you can move to the Dojo stuff:

RE: Help using Ajax form validation

2007-06-26 Thread King, William S.
I've downloaded the showcase, and the example I'm trying to use is under the validation examples, validation (ajax). The generated source code is pointing to some js files that don't exist in the project, so I'm assuming (I know...that's bad) the files are generated by Dojo. I'm having issues

Re: Help using Ajax form validation

2007-06-26 Thread Musachy Barroso
If you are using 2.0.8 or 2.0.6 the AJAX validation was implemented with DWR, not Dojo. AJAX validation with Dojo will be(it is) available on 2.1 regards musachy On 6/26/07, King, William S. [EMAIL PROTECTED] wrote: I've downloaded the showcase, and the example I'm trying to use is under the

Re: [S2] onsubmit in s:form tag

2007-06-26 Thread yitzle
Um... Firstly, it does the same thing. I think if you move the code to the submit button it renders it as expected. On 6/26/07, Dave Newton [EMAIL PROTECTED] wrote: --- Vincent Lin [EMAIL PROTECTED] wrote: Why it renders onsubmit=return (validateFields()); return true; instead of

ExecuteAndWaitInterceptor with round robin load balancing

2007-06-26 Thread Martin Gilday
Has anyone attempted to use the ExecuteAndWaitInterceptor with a load balancer on round robin? I am having problems getting it to work with WebWork 2.2.5. Seeing as the interceptor looks unchanged in Struts 2 I thought it might be worthwhile also asking here. My problem is detailed

Re: [S2] onsubmit in s:form tag

2007-06-26 Thread Vincent Lin
I usually use onsubmit in form tag to do javascript validation. For example, onsubmit=return (validateFields()) is specified in html form tag. If the javascript function validateFields() return true, the form will submit, otherwise it won't. It works fine in struts 1. But struts2 always add

Re: [S2] How do I create a client side validator?

2007-06-26 Thread Vincent Lin
Thanks for your help. But I only see how to configure client side validators. What I want is to create a customized client side validator. The build in validators can't meet our requirements such as validating the length of Chinese characters. On 6/26/07, Dave Newton [EMAIL PROTECTED] wrote:

Re: Parameter interception

2007-06-26 Thread stanlick
Hey Dave, to you care to comment? On 6/25/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Alright! Now we are getting somewhere. Do you know what the code would look like to get the id off the action? Scott On 6/25/07, Dave Newton [EMAIL PROTECTED] wrote: --- [EMAIL PROTECTED] wrote:

Re: Is S2 Ready for Prime Time?

2007-06-26 Thread Ian Roughley
Yes. I know of several companies that are using s2 in production environments. I also know of an extremely large company that has started to use s2 for prototyping. As far as your other questions go - this really depends on the project. Like any design decision, the choices need to made

RE: Help using Ajax form validation

2007-06-26 Thread Deepak Kumar
Hi, Check this http://www.roseindia.net/struts/struts2/struts-2-client-side-validation-exam ple.shtml Thanks -Original Message- From: King, William S. [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 26, 2007 6:26 PM To: user@struts.apache.org Subject: Help using Ajax form validation

Re: [S2] onsubmit in s:form tag

2007-06-26 Thread Dave Newton
--- Vincent Lin [EMAIL PROTECTED] wrote: For example, onsubmit=return (validateFields()) is specified in html form tag. If the javascript function validateFields() return true, the form will submit, otherwise it won't. It works fine in struts 1. But struts2 always add 'return true' in

Re: S2 - Dojo Tree Widget

2007-06-26 Thread Max Pimm
Thanks musachy. I was looking at the on-line documentation and hadn't seen anything about the tree tag. I've now found an example in the struts-showcase app. This should do the job although i will need to embellish it with drag n drop and a context menu to add and remove nodes. I don't want to

Re: BigInteger and BigDecimal Properties Issue

2007-06-26 Thread Mark Menard
On 6/25/07 7:19 PM, Mark Menard [EMAIL PROTECTED] wrote: I have an action with a property of type BigDecimal, that is initialized, so it has a value: Public class myAction { BigDecimal myBigDecimal = new BigDecimal (1.1); ... } I have a form with the following: s:textfield

Re: Implementing wizard like interface in struts

2007-06-26 Thread Michael Jouravlev
No, it will not. Unless you defined the form in Rollover scope ;-) http://wiki.apache.org/struts/RolloverScope After 1.3.9 is released, I will check in Rollover scope features into main Struts codebase. Michael. On 6/25/07, semaj [EMAIL PROTECTED] wrote: Hey Michael, Thank you for your

Re: [S2] onsubmit in s:form tag

2007-06-26 Thread Vincent Lin
If you try it in a plain html form, you will know the difference. That's really useful to use onsubmit=return (validateFields()) in form tag, and validate all fields in validateFields() function (If you are not using validators.). Return true in validateFields() if all validations are passed.

S2: autocompletion trouble in 2.0.8

2007-06-26 Thread Scott Nesbitt
Using the following code: s:url id=autosportsteam action=LookupSportsTeam/ s:autocompleter name=sportsTeam id=sportsTeam keyName=sportsTeamKey theme=ajax formId=sportsForm

Re: [S2] OptionTransferSelect in 2.0.8

2007-06-26 Thread Adam Ruggles
https://issues.apache.org/struts/browse/WW-1993?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_41243 WW-1993 Musachy Barroso wrote: What if the ticket number? That would be a major issue regards musachy On 6/25/07, Adam Ruggles [EMAIL PROTECTED] wrote:

Re: S2: autocompletion trouble in 2.0.8

2007-06-26 Thread Toni Lyytikäinen
Try removing the last comma from the list like this: [ [ALABAMA STATE UNIV HORNETS], [ALBANY ST UNIV GOLDEN RAMS], [BALDWIN-WALLCE CLG YELLW JCKTS], [BALL ST UNIV CARDINALS], [BAYLOR UNIV BEARS], [CATAWBA COLLEGE] -- removed comma ] On

Re: S2 - Dojo Tree Widget

2007-06-26 Thread Musachy Barroso
That would be great :), the tree tag needs some serious help with the documentation. regards musachy On 6/26/07, Max Pimm [EMAIL PROTECTED] wrote: Thanks musachy. I was looking at the on-line documentation and hadn't seen anything about the tree tag. I've now found an example in the

Re: S2: autocompletion trouble in 2.0.8

2007-06-26 Thread Musachy Barroso
That trailing comma on IE is the mother of all annoyances :) musachy On 6/26/07, Toni Lyytikäinen [EMAIL PROTECTED] wrote: Try removing the last comma from the list like this: [ [ALABAMA STATE UNIV HORNETS], [ALBANY ST UNIV GOLDEN RAMS], [BALDWIN-WALLCE CLG YELLW

Re: Parameter interception

2007-06-26 Thread Dave Newton
--- [EMAIL PROTECTED] wrote: Hey Dave, to you care to comment? Sure; might as well earn my pay today. Oh, wait. Do you know what the code would look like to get the id off the action? AFAIK ModelDriven just pushes the model on to the top of the stack, so the easiest would be to use the OGNL

Re: [S2] onsubmit in s:form tag

2007-06-26 Thread Dave Newton
--- Vincent Lin [EMAIL PROTECTED] wrote: If you try it in a plain html form, you will know the difference. That's really useful to use onsubmit=return (validateFields()) in form tag, Um... Yeah, I understand that. What I'm saying is: onsubmit=return validateFields(); return true; will

What is the version number of dojo release included in struts 2.0.8 ?

2007-06-26 Thread Gajbhe, Laxman (Contractor)
Hi, We are currently using 2.0.6. For some of the ajax problems we had to get the latest release from dojo website and rebuild 2.0.6 jar. We are planning to move to 2.0.8. I did not find any information from struts site about what is dojo release that it uses to bundle with 2.0.8. Can

Re: S2: autocompletion trouble in 2.0.8

2007-06-26 Thread Dave Newton
+1; that one cost me about 30 minutes on day a couple of weeks ago. --- Musachy Barroso [EMAIL PROTECTED] wrote: That trailing comma on IE is the mother of all annoyances :) musachy On 6/26/07, Toni Lyytikäinen [EMAIL PROTECTED] wrote: Try removing the last comma from the list like

Re: Minimized Window State NOT working

2007-06-26 Thread Nils-Helge Garli
I have to correct myself. The dispatcher extends the GenericPortlet class, but it overrides the render method because of the specialized mode handling. But the effect is still the same, the window state logic in doDispatch is not invoked. Sorry for the confusion. Nils-H On 6/26/07, Nils-Helge

Form Upload throwing null pointer. cannot retrieve the file in action class..HELP URGENT!!!

2007-06-26 Thread vbharath19
Hi, I have a jsp from which i upload a file. this field is of Formfile type. jsp entry: html:form method=post enctype=multipart/form-data action=/pages/deploy-action.do tdhtml:file name=deploymentForm property=theFile / /td br tr td html:submit onclick=upload()

Re: Form Upload throwing null pointer. cannot retrieve the file in action class..HELP URGENT!!!

2007-06-26 Thread Nuwan Chandrasoma
Hi, try removing the .do from your action in the form and just put the action name what is in the struts-config.xml. Thanks, Nuwan - Original Message - From: vbharath19 [EMAIL PROTECTED] To: user@struts.apache.org Sent: Tuesday, June 26, 2007 4:03 PM Subject: Form Upload throwing

Re: S2: autocompletion trouble in 2.0.8

2007-06-26 Thread Scott Nesbitt
Hmm, I guess I could do that, though I would have to learn a bit more about Freemarker above my simple template: [ #list options as o [${o.description},${o.code}], /#list ] However, when I went back to Struts 2.0.6 and my problem went away. Should I change my template or will 2.1

Re: Form Upload throwing null pointer. cannot retrieve the file in action class..HELP URGENT!!!

2007-06-26 Thread vbharath19
done..it doesn't work..any other ideas? nuwan chandrasoma-2 wrote: Hi, try removing the .do from your action in the form and just put the action name what is in the struts-config.xml. Thanks, Nuwan - Original Message - From: vbharath19 [EMAIL PROTECTED] To:

Re: S2: autocompletion trouble in 2.0.8

2007-06-26 Thread Musachy Barroso
I posted the solution here the other day, off the top of my head (quite unreliable): [ #list options as o [${o.description},${o.code}] #if o_has_next,/#if /#list ] musachy On 6/26/07, Scott Nesbitt [EMAIL PROTECTED] wrote: Hmm, I guess I could do that, though I would have to

Re: Form Upload throwing null pointer. cannot retrieve the file in action class..HELP URGENT!!!

2007-06-26 Thread Dave Newton
--- vbharath19 [EMAIL PROTECTED] wrote: when i run the page and upload the file and invoke the action class i get the following error. java.lang.NullPointerException at actions.DeployAction.execute(DeployAction.java:139) Why wouldn't you include the code that's throwing the

Re: Implementing wizard like interface in struts

2007-06-26 Thread semaj
Then, how can I solve this problem in struts 1.3.8? Don't you think nobody have face this issue? If yes, then they have not solve the problem?? Michael Jouravlev wrote: No, it will not. Unless you defined the form in Rollover scope ;-) http://wiki.apache.org/struts/RolloverScope After

Re: Form Upload throwing null pointer. cannot retrieve the file in action class..HELP URGENT!!!

2007-06-26 Thread vbharath19
sorry mate..this is the code that throws the exception if (actioncalled!=null actioncalled.equals(upload)) { System.out.println(inside upload action); FormFile myFile =

Re: Implementing wizard like interface in struts

2007-06-26 Thread Michael Jouravlev
Do you really care if one instance of the wizard stays in the session? If yes then you have to remove it yourself. You should know better when it is appropriate to remove it based on your application state. Struts form is just an object in the session map, so you can remove it from session

Re: Is S2 Ready for Prime Time?

2007-06-26 Thread Ted Husted
Usually, ready for primetime is used in connection with code quality, and I don't think we have a problem there :) Most of your post speaks to a having a lockstep set of implementation practices, that say do it this way and don't deviate. Struts on Rails, so to speak. No, we don't have that, and

Re: S2: autocompletion trouble in 2.0.8

2007-06-26 Thread Scott Nesbitt
Excellent, works great. Thanks yet again, Musachy. Scott --- Musachy Barroso [EMAIL PROTECTED] wrote: I posted the solution here the other day, off the top of my head (quite unreliable): [ #list options as o [${o.description},${o.code}] #if o_has_next,/#if /#list ]

Re: Implementing wizard like interface in struts

2007-06-26 Thread semaj
How can I check the current app state? Could you direct me to some resources? Thanks, semaj Michael Jouravlev wrote: Do you really care if one instance of the wizard stays in the session? If yes then you have to remove it yourself. You should know better when it is appropriate to remove

Re: Is S2 Ready for Prime Time?

2007-06-26 Thread Chris Pratt
I just completed a project using it and I'd have to say I'm very impressed. I have two criticisms, one directly about Struts and one about a supporting API that we tried to use (Acegi (aka Spring Security)). As far as the Struts criticism I don't like the fact that the default struts tag

Re: Implementing wizard like interface in struts

2007-06-26 Thread Michael Jouravlev
How do I know? This is your application, you should know better how you manage its state. On 6/26/07, semaj [EMAIL PROTECTED] wrote: How can I check the current app state? Could you direct me to some resources? Thanks, semaj

Re: Form Upload throwing null pointer. cannot retrieve the file in action class..HELP URGENT!!!

2007-06-26 Thread Dave Newton
--- vbharath19 [EMAIL PROTECTED] wrote: if (actioncalled!=null actioncalled.equals(upload)) { System.out.println(inside upload action); FormFile myFile = deploymentForm.getTheFile(); } We're getting there. Now, which line is throwing? d.

Struts dont react

2007-06-26 Thread Søren Blidorf
I have upgraded my Struts app to 1.2.9. I have done it step by step removing all deprecations. My realm log in still works, but when I do something in my app that uses Struts nothing happens. Can anybody give me a hint on what to do. Soren, DK

Re: S2 - How do I ...

2007-06-26 Thread Laurie Harper
Ray Clough wrote: How do I get the Struts properties from within my application. What I am Depends which version of Struts you're using. looking for is to read the property struts.custom.i18n.resources, which is defined in the 'struts.properties' file, so that I can get the ResourceBundle

Re: Custom filter - Is this possible

2007-06-26 Thread Laurie Harper
tom tom wrote: Hi, Can some one let us know, how to define a Custom filter which would do what the org.apache.struts2.dispatcher.FilterDispatcher does but in addition it checks a Cetain attribute (e.g. Window State) and shows nothing if a certain criteria is met. Is this something possible.?

Re: [S2] Template testing

2007-06-26 Thread Laurie Harper
Mark P Ashworth wrote: Is there a way to test how a tag like lt;formgt;lt;textfield /gt;lt;/formgt; will be processed by a custom theme. I would like to get all of the theme processing done during development instead of integration time with the actual pages. What do you want to test, exactly?

Re: Struts dont react

2007-06-26 Thread Laurie Harper
Søren Blidorf wrote: I have upgraded my Struts app to 1.2.9. I have done it step by step removing all deprecations. My realm log in still works, but when I do something in my app that uses Struts nothing happens. Can anybody give me a hint on what to do. Start with your log files. You

Re: Re: S2 - How do I ...

2007-06-26 Thread Ray Clough
Laurie, I am using Struts 2.0.8. This is a large app, and only one module knows anything about the Web Layer. So I'm trying to introduce a 'MessageProviderService' for the non-Struts modules. I wrote a class that wraps the ResourceBundle class, so that I do not have any Struts artifacts in

browser caching

2007-06-26 Thread Pierre Goupil
Hello, I'm trying to avoid browser caching in my webapp since I've only got dynamic pages. I'm trying the Apache mod_expires stuff. I've set it to : ExpiresActive On ExpiresDefault now But unfortunately, it doesn't work : my HTTP header is set to Cache-Control: max-age= 0 actually but the

Re: Form Upload throwing null pointer. cannot retrieve the file in action class..HELP URGENT!!!

2007-06-26 Thread vbharath19
when i get the formfile using getthefile newton.dave wrote: --- vbharath19 [EMAIL PROTECTED] wrote: if (actioncalled!=null actioncalled.equals(upload)) { System.out.println(inside upload action); FormFile myFile = deploymentForm.getTheFile(); } We're getting there. Now,

Re: browser caching

2007-06-26 Thread mfnospam
not sure whether this works - I'm new to s2 myself. However there seems to be a possibility to configure brwoser caching in struts.properties: struts.serve.static.browserCache=false maybe this helps kind regards matthias - To

Re: Form Upload throwing null pointer. cannot retrieve the file in action class..HELP URGENT!!!

2007-06-26 Thread Dave Newton
What does the upload() method in your html:submit.../ do? --- vbharath19 [EMAIL PROTECTED] wrote: when i get the formfile using getthefile newton.dave wrote: --- vbharath19 [EMAIL PROTECTED] wrote: if (actioncalled!=null actioncalled.equals(upload)) {

Re: Form Upload throwing null pointer. cannot retrieve the file in action class..HELP URGENT!!!

2007-06-26 Thread vikranth.vaddi
The problem you have is that struts does not instantiate form bean correctly. If you are using action form object in your case deployForm object , check if it extends ActionForm.May be it does not and thats why form object is null.Try this first. Also, i recommend using DynaActionForm inside

Re: [S2] login action w/FORM authentication?

2007-06-26 Thread Jon Wilmoth
Unfortunately it looks like the S2 architectural change is the culprit after all. After digging through the tomcat 5.5.23 (also present in the most recent 6.0.13 release) code I've come to the conclusion Struts2 actions CAN NOT be used for any of the common web.xml descriptor elements

stat.odd ? test

2007-06-26 Thread Mansour
I am trying to iterate over a list and display rows in different style: s:iterator value=aList status=stat id=row s:set name=foo value=${#stat.odd ? 'odd':'even'} / tr class=${foo} ... The resulting code have the class attribute always empty. Like this : tr class= Can any one advice

RE: [S2] How to integrate JSF with struts 2?

2007-06-26 Thread Jason Wyatt
Thanks Don, I finally got JSF working with struts 2. Seems like the docs at http://struts.apache.org/2.x/docs/javaserver-faces.html could really use an example of how to set up the jsf plugin. I didn't realise the JSF plugin isn't normally plugged in until I saw the struts-plugin.xml inside the

Re: [S2] onsubmit in s:form tag

2007-06-26 Thread Vincent Lin
Hi Dave, Thank you. You are right. There is an error in my validateFields() function. It works now. The return true in onsubmit has nothing to do with my problem. Vincent On 6/26/07, Dave Newton [EMAIL PROTECTED] wrote: --- Vincent Lin [EMAIL PROTECTED] wrote: If you try it in a plain html

Struts 2 Login example using a session

2007-06-26 Thread Session Mwamufiya
Hi, I tried to follow the simple login example at http://struts.apache.org/2.x/docs/simplelogin-with-session.html, but there are many things that I don't get: - first, it's written for webworks, not struts 2, are there any compatibility issues between the two? - second, the session is never set

Re: How to make tabs in JSP

2007-06-26 Thread Kavita Mehta
I'm using Struts 1.2 ... wd search more on JSPTabControl as you previously suggested. thanks Angelo zerr [EMAIL PROTECTED] 06/26/2007 06:17 PM Please respond to Struts Users Mailing List user@struts.apache.org To Struts Users Mailing List user@struts.apache.org cc Subject Re: How to make

Re: Struts dont react

2007-06-26 Thread Søren Blidorf
Your right! But nothing is written in the logfile. The Catalina log looks like this: 2007-06-27 07:49:13 org.apache.coyote.http11.Http11Protocol pause INFO: Pausing Coyote HTTP/1.1 on http-80 2007-06-27 07:49:14 org.apache.catalina.core.StandardService stop INFO: Stopping service Catalina