Re: Error occurs in WebSphere - validatation.js not found in /struts/template/css_xhtml

2008-10-06 Thread strutstwouser
You may want to check if you've the latest Websphere patches installed, since this could be a Websphere specific issue ; i had come across http://www.nabble.com/Re%3A--S2-FIXED!--Websphere-6.1-Showcase-application%2C-Response-already-committed-warning-in-logs-p9831268.html when i faced this is

Re: how to pass parameter in next action

2008-10-06 Thread Mead Lai
It's same like the parameter from jsp page. AddComboValue?parm1=${value} in your Action declare a public String parm1; getParm1() setParm1() now just use parm1 the get the value. good luck. On Tue, Oct 7, 2008 at 2:38 PM, Hardik Shah <[EMAIL PROTECTED]> wrote: > > Thanks for reply > > and how

Re: Returning text/html InputStream using Zero Configuration annotations

2008-10-06 Thread Lukasz Lenart
> @Result(value = "", type = StreamResult.class, params = You are missing Result Name, please specify it as a *success* http://struts.apache.org/2.0.11.2/docs/result-annotation.html Regards -- Lukasz http://www.lenart.org.pl/ ---

Re: Tree default expanded ??

2008-10-06 Thread Jukka Välimaa
I don't know. One thing to try might be to run the expansion script after you're sure the tree widget has been rendered. Jukka On Wed, Oct 1, 2008 at 9:19 AM, Narayana S <[EMAIL PROTECTED]> wrote: > Hi, > > Thanks for your reply, i tried this code but it is returning > nodes.length as zero

Re: how to pass parameter in next action

2008-10-06 Thread Hardik Shah
Thanks for reply and how i can get this parameter in my addattribute action java file using actioncontext or what? Mead Lai wrote: > > class="com.docmgmt.struts.actions.attribute.SaveAttribute"> >attriblist > type="redirect-action">AddComboValue?parm1=${val

Re: howto cache the textfield

2008-10-06 Thread Paweł Wielgus
Hi xianwinwin, it's a firefox feature - remember entered form values or something like this, so yes it has nothing to do with struts. But You can achieve the same by adding ajax to this field and remembering all posted data in Your app. Best greetings, Paweł Wielgus. 2008/10/6 xianwinwin <[EMAIL

Re: Upload file without struts 2

2008-10-06 Thread Mead Lai
config the servlet-mapping. alter the URL, that some old modules url don't filtered by struts2! On Tue, Oct 7, 2008 at 11:30 AM, Po Po <[EMAIL PROTECTED]> wrote: > Hello, > Some modules in my application not yet migrate to struts 2. > upload file doesn't work (using commons file upload), because

Re: how to pass parameter in next action

2008-10-06 Thread Mead Lai
attriblist AddComboValue?parm1=${value} append the actionName "AddComboValue?parm1=${value}", but no ".action". It's OK! On Tue, Oct 7, 2008 at 1:22 PM, Hardik Shah <[EMAIL PROTECTED]> wrote: > > can anybody say how to pass or push parameter in valuestack

SV: SV: Ognl versions

2008-10-06 Thread Gunnar.Bostrom
Hi, I mean that the value is null now that I use ognl 2.7.2. When using 2.6.11 the value is a correct map. This is in the model för the jsp page: SortedMap jobTypeList = new TreeMap(); public SortedMap getjobTypeList() { jobTypeList.put(1, "Förfrågan"); jobTypeList.put(8,

how to pass parameter in next action

2008-10-06 Thread Hardik Shah
can anybody say how to pass or push parameter in valuestack and get it from another action in struts 2 really confused with all valuestack stuff suppose i have /attribute/AttribComboValue.jsp

Upload file without struts 2

2008-10-06 Thread Po Po
Hello, Some modules in my application not yet migrate to struts 2. upload file doesn't work (using commons file upload), because it's intercept by struts 2. How to disable / avoid upload file functionality in struts 2 ? Thanks ---

Re: How to capture this event

2008-10-06 Thread Mark
Oh ok. That's beyond my knowledge. Hopefully someone else on the list can help you. Mark On 07/10/2008, at 12:27 PM, Tracy12 wrote: Mark, The Issue is eventhough the preload=false, each time you click the div the content will be loaded, What I want is basically to capture the click ev

Re: Dojo javascript errors with ajax theme. please help

2008-10-06 Thread Rubens
In your web.xml ensure you have a filter-mapping defined for the /struts/ You need to make sure that a request to the Javascript and CSS files defined in the struts jar file go thru the Struts 2 filter. That is, make sure you have something like this on your web.xml: struts2F

Re: Struts2 & AJAX config errors

2008-10-06 Thread Rubens
In your web.xml ensure you have a filter-mapping defined for the /struts/ You need to make sure that a request to the Javascript and CSS files defined in the struts jar file go thru the Struts 2 filter. That is, make sure you have something like this on your web.xml: struts2F

Re: Error occurs in WebSphere - validatation.js not found in /struts/template/css_xhtml

2008-10-06 Thread Rubens
In your web.xml ensure you have a filter-mapping defined for the /struts/ You need to make sure that a request to the Javascript and CSS files defined in the struts jar file go thru the Struts 2 filter. That is, make sure you have something like this on your web.xml: struts2F

Re: dojo is not defined error message in firefox console.

2008-10-06 Thread Rubens
In your web.xml ensure you have a filter-mapping defined for the /struts/ You need to make sure that a request to the Javascript and CSS files defined in the struts jar file go thru the Struts 2 filter. That is, make sure you have something like this on your web.xml: struts2Fil

Re: Why? en-us theme=ajax 404 error on Struts 2.0.9

2008-10-06 Thread Rubens
In your web.xml ensure you have a filter-mapping defined for the /struts/ You need to make sure that a request to the Javascript and CSS files defined in the struts jar file go thru the Struts 2 filter. That is, make sure you have something like this on your web.xml: struts2F

RE: How to capture this event

2008-10-06 Thread Martin Gainty
you should use onclick __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any par

Re: How to capture this event

2008-10-06 Thread Tracy12
Mark, The Issue is eventhough the preload=false, each time you click the div the content will be loaded, What I want is basically to capture the click event and load accordingly if required. Thanks Mark-413 wrote: > > While I haven't used it yet, my understanding is that if you set > prelo

Returning text/html InputStream using Zero Configuration annotations

2008-10-06 Thread 928572663
I am trying to rewrite this sample code from the FAQ using zero configuration annoations: http://struts.apache.org/2.1.2/docs/how-can-we-return-a-text-string-as-the-response.html and I came up with this: import java.io.InputStream; import java.io.StringBufferInputStream; import org.apache.st

Re: Struts 2: Tags

2008-10-06 Thread Mark
Check out: http://struts.apache.org/2.1.2/docs/tag-developers-guide.html Mark On 07/10/2008, at 3:49 AM, Mickey Kumra wrote: Hi I wish to develop an application from scratch, using Struts 2. However, I don't find the tag documentation available on the Apache website to be comprehensive. C

Re: ParameterAware Issue

2008-10-06 Thread Lukasz Lenart
I've been trying to find some solution, but from my side, everything looks ok, regarding API docs [1] all parameters are stored as a Array of String in the Map, so you should be able to access it, could you show your code? [1] http://struts.apache.org/2.0.11.2/struts2-core/apidocs/org/apache/stru

Re: Struts 2: Tags

2008-10-06 Thread Dave Newton
--- On Mon, 10/6/08, Mickey Kumra wrote: > I wish to develop an application from scratch, using Struts > 2. However, I don't find the tag documentation available > on the Apache website to be comprehensive. Could somebody > please guide me in this regard. That's a fairly open-ended request. What,

howto cache the textfield

2008-10-06 Thread xianwinwin
I have a textfield where a user input information. My question is this: how can I give the user previous input that he provided once he clicks the textfield; in other word, when he clicks (or double click) the textfield he can see (in a drop down box) what he entered before. for some reason,

Using POSIX Regular Expressions for Internationalized Validation

2008-10-06 Thread egetchell
All, I am one of the architects behind a multi-language site using Struts 2. To mitigate XSS exposure, defining a whitelist of allowable characters is the normal approach, but seems to become a non-trivial exercise when supporting multiple languages (we will be supporting 15). My understanding

Re: SV: Ognl versions

2008-10-06 Thread Dale Newfield
[EMAIL PROTECTED] wrote: The jobTypelist is empty, but it worked with 2.6.11 version of ognl. The applications is our own. So you're saying that the updated version doesn't silently fail, and that's enough to condemn it? I would argue that that's an improvement. In fact, if you look in the

Struts 2: Tags

2008-10-06 Thread Mickey Kumra
Hi I wish to develop an application from scratch, using Struts 2. However, I don't find the tag documentation available on the Apache website to be comprehensive. Could somebody please guide me in this regard. Thanks & Regards ---Mickey Kumra___ CAUTION - Disclaim

Re: tag for formatting date or time using type and style, not pattern

2008-10-06 Thread Björn W
Of course! Didn't realize that the MessageFormat could have styles. This is a great solution Thanks! Chris Pratt wrote: > > One way is to use the tag. If you define an entry in your > application properties file similar to: > > format.date.long={0,date,long} > > > then you can display a d

Re: tag for formatting date or time using type and style, not pattern

2008-10-06 Thread Chris Pratt
One way is to use the tag. If you define an entry in your application properties file similar to: format.date.long={0,date,long} then you can display a date object in your JSP using: The advantage is that each language can have a different definition, if required, but will use the default f

tag for formatting date or time using type and style, not pattern

2008-10-06 Thread Björn W
Hi Is there a way to output localized dates and times from a jsp using the locale from the request object, not using hardcoded DateFormat pattern in the jsp? I want to be able to write things like: The struts tag does use the current locale, but unfortunately it doesn't have type and style a

RE: SV: Ognl versions

2008-10-06 Thread Martin Gainty
he's trying to determine where the failure occurs so you'll need to get your jobTypeList array populated and is set to the ValueStack http://struts.apache.org/2.1.2/docs/set.html you can then use property to check if you see "a default value" you'll know you started with null valuehth Martin

SV: Ognl versions

2008-10-06 Thread Gunnar.Bostrom
Hi, The jobTypelist is empty, but it worked with 2.6.11 version of ognl. The applications is our own. Thanks for trying to help! :-) > -Ursprungligt meddelande- > Från: Dale Newfield [mailto:[EMAIL PROTECTED] > Skickat: den 4 oktober 2008 00:31 > Till: Struts Users Mailing List > Ämne:

Re: How to force Struts to reevaluate logic:equal on client side?

2008-10-06 Thread Dave Newton
Use some simple JavaScript and CSS. --- On Mon, 10/6/08, RemiClaude <[EMAIL PROTECTED]> wrote: > From: RemiClaude <[EMAIL PROTECTED]> > Subject: How to force Struts to reevaluate logic:equal on client side? > To: user@struts.apache.org > Date: Monday, October 6, 2008, 9:00 AM > Hi all; > > I ha

How to force Struts to reevaluate logic:equal on client side?

2008-10-06 Thread RemiClaude
Hi all; I have 2 rows in my table. Each row should be displayed or not depending of the value of a radio button which can be "F" or "M". So, when I clik on "F", I need to display the row with id="repIn" and when I click on "M" the row with id="repOut". I do not need the server for this, all shou

Re: PortletAction & Namespaces - s:url works, s:submit not

2008-10-06 Thread Torsten Krah
Am Montag, 6. Oktober 2008 10:38:36 schrieben Sie: > Can you store the url with an id an use it as an expression in the > action attribute of the submit tag? This works using a html link with s:url and %{myactionurl}. However the form does only work in this form (like it should): One

Re: PortletAction & Namespaces - s:url works, s:submit not

2008-10-06 Thread Nils-Helge Garli Hegvik
Can you store the url with an id an use it as an expression in the action attribute of the submit tag? Nils-H On Mon, Oct 6, 2008 at 9:16 AM, Torsten Krah <[EMAIL PROTECTED]> wrote: > Hi, > > I want to use the namespace feature of struts2 actions in a portal/portlet > environment. > Using s:url l

PortletAction & Namespaces - s:url works, s:submit not

2008-10-06 Thread Torsten Krah
Hi, I want to use the namespace feature of struts2 actions in a portal/portlet environment. Using s:url like this works (like shown in the struts2 delivered testcases): ">Test Using Buttons to Submit the form, i am unable to get it working. Can anyone give my some hint what i am doing wrong

Using Rest with JSON, post error (jquery)

2008-10-06 Thread Ryan Wong
I using jquery to post the request with some content and expecting a JSON-format response here is my code.. $.post("/socialize/tags;addTag.json",{contentType:"TOPIC", resourceId:1, tags:"tag"},function(data)