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){

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): s:form action=MasterControl method=POST a href=s:url portletUrlType=action namespace=mw action=/mvc/stopWork /s:urlTest/a

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 like

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): s:form

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 should be done

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 have 2 rows

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:

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 s:property value=jobTypeList default=a default value / if you see a default

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: someDateTimeFormtter value=dateObjOnOgnlStack type=date dateStyle=SHORT/ someDateTimeFormtter

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 s:text 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: s:text name=format.date.longs:param value=%{user.createDate}//s:text The advantage is that each

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 s:text tag. If you define an entry in your application properties file similar to: format.date.long={0,date,long} then you can display a

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 -

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

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

howto cache the textfield

2008-10-06 Thread xianwinwin
I have a textfield where a user input information. s:textfieldname=employee.destination label=Destination required=falsesize=15 / My question is this: how can I give the user previous input that he provided once he clicks the

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,

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]

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.

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

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

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

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/...js files. 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:

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/...js files. 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:

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/...js files. 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:

Re: Struts2 AJAX config errors

2008-10-06 Thread Rubens
In your web.xml ensure you have a filter-mapping defined for the /struts/...js files. 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:

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/...js files. 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:

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

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

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 action name=AddComboValue