Struts2 Rest Plugin + crossdomain.xml

2010-01-21 Thread Brian Ferris
I've been using struts2 + the rest plugin successfully to create a simple rest api web service. I'd like to make that service accessible to Flash and Silverlight clients, which means I need to add a crossdomain.xml access file at the root of my webapp. Normally I would just copy a crossdomain.xml

Re: Hiding URL in struts1.2

2010-01-21 Thread Nikhil Walvekar
Hi Zaheer, I would like to understand requirement of hiding actual URL. Shomehow actual URL should be known to your browser otherwise it wont be able to send server request. If user is not going to do view source and check whats there in HTML then prob you can use frames or if you want to hide yo

Re: The GWT Plugin

2010-01-21 Thread Michael Finney
Hi. I have a struts 2 application. I followed the directions at http://cwiki.apache.org/S2PLUGINS/gwt-plugin.html I do not see my Struts2FillGwt class's onModuleLoad method getting called when I go to http://localhost:8092/struts2Fill/Gwtandstruts2.html It's not dynamically populating my It

Re: Problem with excel download file from Action (S 2.1.8)

2010-01-21 Thread Oscar
Thanks Dale. I searched a little bit about it and i solve the problem creating a InputStream field in my action, then adding a stream result type as you said, like this: application/vnd.ms-excel nameOfInputStreamFieldFromYourAction filename="nameoffile.xls" 1024 2010/1/21 Dale Newfi

Specifying a custom type converter for a collection

2010-01-21 Thread Aaron Wieland
I've read documentation that explains how to create a custom type converter, and how to apply type conversion to a collection, but nothing that shows how to apply a custom type converter to a collection. So far, none of my attempts have worked. My action class has the following field, with the

Struts2 :Tiles request page without action class

2010-01-21 Thread Shasha
Hi All, I am trying to show welcome page using tiles so i am calling to call an action where the action doesn't exists (since this a feature in struts2) it thrown an error org.apache.tiles.definition.NoSuchDefinitionException: SUCCESS can any let me know what must be the error. web.xml

Re: validation in struts2

2010-01-21 Thread Shasha
Thanks all. It was working fine after changing to LoginAction-validation.xml . musomesa wrote: > > > Also, the file should be LoginAction-validation.xml . Use the > config-browser to see that you have the validators in place. > > > > Chris > > > > > -Original Message- > Fr

Re: Problem with excel download file from Action (S 2.1.8)

2010-01-21 Thread Dale Newfield
Oscar Calderon wrote: a question about downloading files from struts action. I would suggest using the stream result type rather than hand-constructing the servlet response. In either case, though, you want to look into the "contentDisposition" result parameter. Probably you want a value s

Problem with excel download file from Action (S 2.1.8)

2010-01-21 Thread Oscar Calderon
Hi to all, i wanna ask you a question about downloading files from struts action. Actually i'm working on application that has some jasperreports, where by default my action prints as PDF, and it works fine, but now i'm trying to serve an excel file, so i'm using the next code: byte[] arrStrea

user@struts.apache.org

2010-01-21 Thread bberken
I'm having a problem w/the use of the tag in my application. My setup is the following: (struts 2.1.8.1) I have one global resource bundle, defined in my struts.properties file: struts.custom.i18n.resources=application in my jsp I am outputting a label as follows: Video the resource key 'head

Re: Where to put bean.xml (spring configuration)?

2010-01-21 Thread Emi Lu
Rafał Krupiński wrote: On 21.01.2010 16:40, Emi Lu wrote: Good morning, Could someone tell me where to put bean.xml (spring configuration)? It is not shown in the following document http://www.vaannila.com/spring/spring-ioc-1.html Thanks a lot! The proper place for spring beans declaration

Re: decorating static content with sitemesh

2010-01-21 Thread Brian Thompson
In web.xml, make a Struts filter mapping that includes *.html in addition to *.action. -Brian On Thu, Jan 21, 2010 at 1:41 PM, Philipp Leusmann < philipp.leusm...@rwth-aachen.de> wrote: > Hi Brian, > > that would work, but then I'll have to make a call to > "/staticHTML/page.html.action" to acc

RE: decorating static content with sitemesh

2010-01-21 Thread Kawczynski, David
How do you have struts mapped in web.xml? If it is mapped to /* no you don't. If it is mapped to *.action, add another mapping for /staticHTML/* > -Original Message- > From: Philipp Leusmann [mailto:philipp.leusm...@rwth-aachen.de] > Sent: Thursday, January 21, 2010 2:42 PM > To: Str

Re: decorating static content with sitemesh

2010-01-21 Thread Philipp Leusmann
Hi Brian, that would work, but then I'll have to make a call to "/staticHTML/page.html.action" to access "/staticHTML/page.html". Would be a workaround, but I still would prefer the call to *.html Philipp Am 21.01.2010 um 19:18 schrieb Brian Thompson: > Can you get the Struts filter to execut

Re: decorating static content with sitemesh

2010-01-21 Thread Brian Thompson
Can you get the Struts filter to execute for static pages? It seems like that would fix the Dispatcher.getInstance() problem. Something like /staticHTML/{1} in your struts.xml seems like it would do the trick (be careful of overriding your regular actions!). -Brian On Thu, Jan 21, 2010

Re: decorating static content with sitemesh

2010-01-21 Thread Philipp Leusmann
Sure it would be faster without that stuff, but since I use some session-related stuff (user login status etc.) , replacing it with a static decorator would not be feasible. Thanks anyway for your suggestions. Regards, Philipp Am 21.01.2010 um 18:37 schrieb Kawczynski, David: > I have used s

RE: decorating static content with sitemesh

2010-01-21 Thread Kawczynski, David
I have used struts tags in my decorating templates (past tense). It is definitely possible... but not smart, IMHO. Why? Response times, especially under load + time, were horrible. I countered this by removing the struts tags from my templates, re-arranging the filters in web.xml, and configur

Re: decorating static content with sitemesh

2010-01-21 Thread Philipp Leusmann
Ok, that would not be sufficient for me, since I use some struts in my decorating template, as well. I thought, maybe struts and sitemesh could decorate static pages using the default action to resolve the stack Philipp Am 21.01.2010 um 18:01 schrieb Kawczynski, David: > Plain sitemesh, with

RE: decorating static content with sitemesh

2010-01-21 Thread Kawczynski, David
Plain sitemesh, with it's own filter in web.xml > -Original Message- > From: Philipp Leusmann [mailto:philipp.leusm...@rwth-aachen.de] > Sent: Thursday, January 21, 2010 11:58 AM > To: Struts Users Mailing List > Subject: Re: decorating static content with sitemesh > > David, > > did y

Re: decorating static content with sitemesh

2010-01-21 Thread Philipp Leusmann
David, did you use plain sitemesh or the struts-sitemesh plugin? Philipp Am 21.01.2010 um 17:50 schrieb Kawczynski, David: > I have used SiteMesh to decorate static content served > up by the app server. If the static content is served > up by apache (or some other httpd server) you're out of

RE: decorating static content with sitemesh

2010-01-21 Thread Kawczynski, David
I have used SiteMesh to decorate static content served up by the app server. If the static content is served up by apache (or some other httpd server) you're out of luck. > -Original Message- > From: Philipp Leusmann [mailto:philipp.leusm...@rwth-aachen.de] > Sent: Thursday, January 21

decorating static content with sitemesh

2010-01-21 Thread Philipp Leusmann
Hi, I am using the sitemesh-plugin to decorate my struts-site and Im am wondering, if it is possible to decorate static-pages using sitemesh. That is, I have some plain html pages which need to get the same LAF the entire site has. I already added "/html/*" to the decorators.xml, but all I get

Re: Convert struts tag to html

2010-01-21 Thread Brian Thompson
Try using . Does that help? -Brian On Thu, Jan 21, 2010 at 7:28 AM, VSGoud wrote: > > Hi Friends, > > When i am using Data Tag , loosing linebreaks ,spaces etc. > which were there in the DataBase columns. > I am eager to convert the fetched data to html. > Could u help me out from this issue

Re: Where to put bean.xml (spring configuration)?

2010-01-21 Thread Rafał Krupiński
On 21.01.2010 16:40, Emi Lu wrote: Good morning, Could someone tell me where to put bean.xml (spring configuration)? It is not shown in the following document http://www.vaannila.com/spring/spring-ioc-1.html Thanks a lot! The proper place for spring beans declaration in webapp is /WEB-INF/a

Where to put bean.xml (spring configuration)?

2010-01-21 Thread Emi Lu
Good morning, Could someone tell me where to put bean.xml (spring configuration)? It is not shown in the following document http://www.vaannila.com/spring/spring-ioc-1.html Thanks a lot! -- Lu Ying bean.xml = 01. 02.http://www.springframework.org/schema/beans"; 03.xmlns:xsi

Re: Convert struts tag to html

2010-01-21 Thread Robert Graf-Waczenski
VSGoud schrieb: Hi Friends, When i am using Data Tag , loosing linebreaks ,spaces etc. which were there in the DataBase columns. I am eager to convert the fetched data to html. Could u help me out from this issue. Srikanth Even though your problem is completely unrelated to Struts (and ther

Re: Hiding URL in struts1.2

2010-01-21 Thread Brian Thompson
You'll have to communicate the parameters *somehow*, whether that's using POST for all your requests (but that's bad form when your requests are simply looking up data in the database), exposing the full url, or mapping parameters to url path elements. I suppose you could also write the front-end

Re: [Struts 2] ?debug=console (devMode) not working

2010-01-21 Thread Lukasz Lenart
2010/1/21 Fernandes Celinio : > Yes, I did. > I do not know why it is not working. Someone told me he had to create an > interceptor to make it work. Sounds weird to me. > Unless you have another idea, I am going to give up on that one. One thing more, please add Dojo plugin, console is based on

Convert struts tag to html

2010-01-21 Thread VSGoud
Hi Friends, When i am using Data Tag , loosing linebreaks ,spaces etc. which were there in the DataBase columns. I am eager to convert the fetched data to html. Could u help me out from this issue. Srikanth -- View this message in context: http://old.nabble.com/Convert-struts-tag-to-html

[S2] Validation - globally define regex

2010-01-21 Thread mailtolouis2020-struts
Hello, In struts 1, I can define the regex in one file like this alphaNumeric [A-Za-z0-9]* and use like this in mask ${alphaNumeric} Could anyone tell me how to achieve this in Struts 2 ? I've this in validation rule and I want to put the regex in another variable, I tried used tag, but