Re: Struts 2 and Sitemesh

2008-05-16 Thread Jeromy Evans
Asleson, Ryan wrote: " /> When you use this tag, how does sitemesh invoke the action? The exception implies its looking for a file and doesn't know it needs to invoke something through Struts2 Filter. I'm not sure of the solution, but it

Re: uniform exception handling

2008-05-16 Thread Jeromy Evans
1. In struts.xml, use global-exception-mappings to define mappings that catch-all exceptions of interest. result="methodNotSupported"/> result="methodNotSupported"/> 2. In struts.xml, define global-results that are referenced by the global-exception-mappings. These are sta

Re: Action Validation with Slashes

2008-05-16 Thread Jeromy Evans
Yellek wrote: should I be raising a Jira issue for this? Hi Peter, yes, it's would be helpful to raise an issue for it. In this case the ActionMapper knows about the allowSlashesInActionName setting but the XWork Validation doesn't know. --

Re: Struts 2 - Namespaces and hiding JSPs in WEB-INF

2008-05-16 Thread Mead Lai
/WEB-INF/web/user/login.jsp My app config like that. It's ok. Haven't get this problem. On Sat, May 17, 2008 at 3:59 AM, Jim Kiley <[EMAIL PROTECTED]> wrote: > False alarm, please ignore. Sheesh. > > On Fri, May 16, 2008 at 2:50 PM, Jim Kiley <[EMAIL PROTECTED]> wrote: > >> Hey gang, >> >> I'm do

Struts 2: After validation fail, how to change the returning result name to other than INPUT?

2008-05-16 Thread Phan, Hienthuc T
Hi, I have a CustomerAction class. In CustomerAction, I have two methods: add and update. I have a CustomerAction-validation.xml to check for required fields, etc. My struts.xml looks something like this: /customer_create.jsp

Re: Struts 2 - Namespaces and hiding JSPs in WEB-INF

2008-05-16 Thread Jim Kiley
False alarm, please ignore. Sheesh. On Fri, May 16, 2008 at 2:50 PM, Jim Kiley <[EMAIL PROTECTED]> wrote: > Hey gang, > > I'm doing something that appears to be a bit strange and I'd appreciate any > advice anyone might have. > > I have two areas within my app -- "admin" and "user". So I have

RE: Struts 2 and Sitemesh

2008-05-16 Thread Asleson, Ryan
OK, doing that made the error go away, but none of the content is showing up. Hmm. -Original Message- From: Relph,Brian [mailto:[EMAIL PROTECTED] Sent: Friday, May 16, 2008 2:22 PM To: Struts Users Mailing List Subject: RE: Struts 2 and Sitemesh You might try this: You c

RE: Struts 2 and Sitemesh

2008-05-16 Thread Relph,Brian
You might try this: You can also reference this issue: https://issues.apache.org/struts/browse/WW-2079 Brian Relph -Original Message- From: Relph,Brian [mailto:[EMAIL PROTECTED] Sent: Friday, May 16, 2008 2:14 PM To: Struts Users Mailing List Subject: RE: Struts 2 and Sit

RE: Struts 2 and Sitemesh

2008-05-16 Thread Relph,Brian
Can you provide your struts.xml? Brian Relph -Original Message- From: Asleson, Ryan [mailto:[EMAIL PROTECTED] Sent: Friday, May 16, 2008 1:52 PM To: Struts Users Mailing List Subject: Struts 2 and Sitemesh Hello, I'm new to Struts 2 and have some experience with Sitemesh, but I'm

Struts 2 and Sitemesh

2008-05-16 Thread Asleson, Ryan
Hello, I'm new to Struts 2 and have some experience with Sitemesh, but I'm having trouble getting the two to work together. I have defined a decorator like this: /*.action So it should be decorating anything that goes to Struts 2. The default.jsp file has a line that loo

Struts 2 - Namespaces and hiding JSPs in WEB-INF

2008-05-16 Thread Jim Kiley
Hey gang, I'm doing something that appears to be a bit strange and I'd appreciate any advice anyone might have. I have two areas within my app -- "admin" and "user". So I have and . That seems simple enough. The problem I'm running into stems from an earlier decision to "hide" my JSPs within

Re: [Struts 2] Simple combobox behaviour

2008-05-16 Thread Milan Milanovic
I hope that someone can answer this simple question. If I have object Person buyer; in my Fruit class (with get/set methods), and I have fruit object in my action class, where I also have ListallBuyers in my action class. How can I define combo box so that when buyer is selected, that Person o

Re: No JavaScript in s:div

2008-05-16 Thread oscar perez
By setting executeScripts="true" and separateScripts="true" it is possible to execute Javascript included from remote content. However this is executed but not included in the rendered HTML. If I use executeScripts="false" and separateScripts="false" the script is included in the rendered html but

Re: [Struts 2] Simple combobox behaviour

2008-05-16 Thread Milan Milanovic
It is wierd that it generated for tag in my jsp page textbox and combobox too ? -- Thx, Milan Milan Milanovic <[EMAIL PROTECTED]> wrote: I fixed my first problem, it was naming issue. But I still have this question: If I have object Person buyer; in my Fruit class (with get/set method

Re: [struts2]how to configure the web app

2008-05-16 Thread dusty
Struts2 doesn't stop you from implementing a ServletContextListener.In fact in the Appfuse Struts2 application there is a StartupListener (extends ServletContextListener) that does what you talk about. It just so happens that Appfuse also uses Spring to configure its services including its d

Re: [Struts 2] Simple combobox behaviour

2008-05-16 Thread Milan Milanovic
I fixed my first problem, it was naming issue. But I still have this question: If I have object Person buyer; in my Fruit class (with get/set methods), and I have Fruit fruit object in my action class, where I also have ListallBuyers in my action class. How can I define combo box so that w

Re: [Struts 2] Simple combobox behaviour

2008-05-16 Thread Milan Milanovic
I'm just not sure when I put listValue = "name" and listKey="id" I get and emtpy combo box with exactly 4 places (it have value option good) ? One more thing, if I have object Person buyer; in my Fruit class (with get/set methods), and I have Fruit fruit object in my action class, where I also

RE: [Struts 2] Switching Color in every row

2008-05-16 Thread jeto
Volker Karlmeier wrote: > > Hi, > > then you could have this managed by your action class creating > a getter method for your counter. > > Maybe something like that: > > Action.class: > > public void initCounter() { > this.counter=0; > } > > public int getCounter() { >return counter+

Re: Re: [struts2]how to configure the web app

2008-05-16 Thread Jim Kiley
Spring is kind of mighty to use just for some initialization parameters; however, using Spring for dependency injection provides greatly improved management of object dependencies for the rest of your app. My current app is a Spring / Struts 2 app running on Tomcat. Here is a quick overview of ho

Re: [struts2]how to configure the web app

2008-05-16 Thread Giovanni Azua
hi Martin, I here, do not use Spring nor hibernate and indeed need defining a ServletContextListener implementation that I configure in web.xml that initializes database connections etc. In an ideal world: - You are starting a new web application project from scratch - You are open to see bes

Re: No JavaScript in s:div

2008-05-16 Thread Yoge
set executeScripts="true" in s:div tag. For ex --Yoge http://zoho.com On Fri, May 16, 2008 at 12:50 PM, Håken Stark <[EMAIL PROTECTED]> wrote: > Hi, > > Are there any solution to these issues: > > http://issues.apache.org/struts/browse/WW-1766 > http://issues.apache.org/struts/browse/WW-2501 >

Re: Display the Image from the Database

2008-05-16 Thread Jay Bose
Vaani, try the Stream result type - http://struts.apache.org/2.x/docs/stream-result.html --- Vaani <[EMAIL PROTECTED]> wrote: > > Hi i am new to struts... > > how to display the created image from database.i got the image in byte > array format. can any one tell me > how to convert the byte

Re: Display the Image from the Database

2008-05-16 Thread Alberto A. Flores
Please refer to: http://struts.apache.org/2.0.11.1/docs/how-can-we-display-dynamic-or-static-images-that-can-be-provided-as-an-array-of-bytes.html The search engine in the wiki is a pretty good tool :) I actually found that method very useful. Vaani wrote: Hi i am new to struts... how to dis

Aw: Re: [struts2]how to configure the web app

2008-05-16 Thread kindlerm
Hi Jim, could you detail on this? I am not really familiar with Spring and at first sight it looks much too mighty for just some little initialization, but maybe its providing the hook I am looking for. Martin - Original Nachricht Von: Jim Kiley <[EMAIL PROTECTED]> An: Strut

Re: [struts2]how to configure the web app

2008-05-16 Thread Jim Kiley
Hi Martin, This seems like an ideal situation for using Spring dependency injection. Are you familiar with Spring at all? jk On Fri, May 16, 2008 at 8:04 AM, <[EMAIL PROTECTED]> wrote: > Hi, > > I am new to Struts2 and stumbling immediately. > > I want to have an initialization routine in my we

[struts2]how to configure the web app

2008-05-16 Thread kindlerm
Hi, I am new to Struts2 and stumbling immediately. I want to have an initialization routine in my web app which will connect to a data base etc. at startup time. This routine needs some parameters (e. g. the path of a config file to be read). How can I access such external information? With Se

RE: [Struts 2] Switching Color in every row

2008-05-16 Thread volker
Hi, then you could have this managed by your action class creating a getter method for your counter. Maybe something like that: Action.class: public void initCounter() { this.counter=0; } public int getCounter() { return counter++; } Your JSP: Might work :) Volker

Re: How to change automatic type conversion error message

2008-05-16 Thread Alberto A. Flores
Read the section "Type Conversion Error Handling" in: http://struts.apache.org/2.x/docs/type-conversion.html You need to define an "invalid.fieldvalue." to do custom type conversion error. Arpan Debroy wrote: In my application "id" attribute is int type of "Group" bean. In my JSP I have wr

RE: [Struts 2] Switching Color in every row

2008-05-16 Thread jeto
Volker Karlmeier wrote: > > Hi, > > if you are using an s:iterator, you can do that like this: > > > > > > > > > > > > ... > > > > Hope that helps > > Volker > > Thanks for your help but I m not using an iterator in this table. -- View this message in context: htt

Display the Image from the Database

2008-05-16 Thread Vaani
Hi i am new to struts... how to display the created image from database.i got the image in byte array format. can any one tell me how to convert the byte array format into image format and display it using struts. Thanks in Advance With Regards vani -- View this message in context: http:/

RE: [Struts 2] Switching Color in every row

2008-05-16 Thread volker
Hi, if you are using an s:iterator, you can do that like this:       ... Hope that helps  Volker Hi, Im looking for a nice and easy way to alter the color of every second textfield. We are yousing a custom theme to render the textfields including a tablerow. Is something l

Re: [Struts 2] Video Action

2008-05-16 Thread Jeromy Evans
Yousri BENDI ABDALLAH wrote: Hello , I have a problem with the integration of a video (wmv format) within a JSP page. To that end I use the tag html which allows me to integrate my video played with Windows Media Player, these videos are stored on an application server Weblogic 8.1. But I faced

No JavaScript in s:div

2008-05-16 Thread Håken Stark
Hi, Are there any solution to these issues: http://issues.apache.org/struts/browse/WW-1766 http://issues.apache.org/struts/browse/WW-2501 I'm still not able to execute any Javascript included from remote content. Same issues persists in both Struts 2.0.11.1 and 2.1.2. Could someone give me some

[Struts 2] Switching Color in every row

2008-05-16 Thread jeto
Hi, Im looking for a nice and easy way to alter the color of every second textfield. We are yousing a custom theme to render the textfields including a tablerow. Is something like this possible? http://www.nabble.com/-Struts-2--Switching-Color-in-every-row-tp17268950p17268950.html Sent from th