Re: not displaying Action errors

2008-08-11 Thread Narasimha Raju Naidu
Thanks to all. my problem was resolved. thanks a lot. Regards, On Tue, Aug 12, 2008 at 11:51 AM, Umar Bilal <[EMAIL PROTECTED]> wrote: > > > Hello this is regarding your Bean Validation. Yesterday I only checked > if everything was right meaning that it wont submit the form until you > pass t

RE: not displaying Action errors

2008-08-11 Thread Umar Bilal
Hello this is regarding your Bean Validation. Yesterday I only checked if everything was right meaning that it wont submit the form until you pass the validation. I didn't realize you wanted the messages to come on the page anyway do the following Add these lines to your ApplicationProperties

Re: Remotely passing parameters to struts

2008-08-11 Thread jaki
What's the way to do it using request/response then? I tried it out with requestdispatcher only to later find out that requestdispatcher can only forward to servlets within the same web app. Is there a way to make it forward to a remote servlet? jaki wrote: > > Hi all, > > I have a web applica

Re: Simplified usage of:@com.company.Constants.StaticCOnstants

2008-08-11 Thread ravi_eze
hi, Thanks for the reply. We had done with the old approach (@[EMAIL PROTECTED]). However i think we can write an interceprotor read the constants (through java reflections) and put them in request scope. THe page can access them from there. The problem with this is that the action class variabl

Re: How to resolve list property for ModelDriven Action?

2008-08-11 Thread Haulyn R. Jason
Dave Newton : Oh. So what are you asking then? How to create a select list? How to use the tag? Dave --- On Mon, 8/11/08, Haulyn R. Jason <[EMAIL PROTECTED]> wrote: From: Haulyn R. Jason <[EMAIL PROTECTED]> Subject: Re: How to resolve list property for ModelDriven Action? To: "Struts Use

Re: not displaying Action errors

2008-08-11 Thread Richard Yee
Have you debugged your code with a source level debugger? Are you sure that the error messages are getting added? -R Narasimha Raju Naidu wrote: thanks for your reply. but itz not working. im getting the same output. for reference im sending screen shot of that output please check once. Rega

Re: How start with multilanguage app

2008-08-11 Thread Dave Newton
--- On Mon, 8/11/08, Felipe Lorenz <[EMAIL PROTECTED]> wrote: > I want to learn about multilanguages applications selected > by user, but i dont know how!? I tried google... but nothing > concrete about it > > Somebody have a tutorial? Or something to help me?! http://struts.apache.org/2.x/do

How start with multilanguage app

2008-08-11 Thread Felipe Lorenz
Hi people. I want to learn about multilanguages applications selected by user, but i dont know how!? I tried google... but nothing concrete about it Somebody have a tutorial? Or something to help me?! I think the user can change language in the "index" jsp, by a configuration or in any jsp(i

Re: Remotely passing parameters to struts

2008-08-11 Thread Randy Burgess
You can refactor your action so that the business logic in your action resides elsewhere, then expose that business logic using Spring/web services, EJB or really any remoting technology. Regards, Randy Burgess Sr. Software Architect D5 Systems, LLC > From: jaki <[EMAIL PROTECTED]> > Reply-To: S

[S2] using SSL; configuration error

2008-08-11 Thread xianwinwin
Hi all, I downloaded the SSL plugin from http://code.google.com/p/struts2-ssl-plugin/ I added the jar to my application path and as the tutorial describes: "The plug-in extends struts-default so you can extend the "ssl-default" package to get these additional features." /under usage I simply c

Re: [Struts 2] NetBeans can't find my ResourceBundle properties file (localization issue)

2008-08-11 Thread Ylva Degerfeldt
Thanks a lot for answering again, Dave! I felt that my latest questions hardly deserved an answer since they were too basic. For that reason I have been reading some stuff myself to try to find answers.. (See below.) > If you're calling a JSP page directly (almost never a good idea) it won't go >

Re: [Struts 2] NetBeans can't find my ResourceBundle properties file (localization issue)

2008-08-11 Thread Dave Newton
--- On Mon, 8/11/08, Ylva Degerfeldt <[EMAIL PROTECTED]> wrote: > Well the action that should be executed after a submit from > the first page (called "NameAndCv.jsp") extends ActionSupport. > > But maybe this problem is due to another thing I'm > insecure about... > > I run my application just b

The execute method of my Action is executed twice

2008-08-11 Thread ElCrackdel83
Hi! I'm writing because of a problem I have, and I think it has to do with a problem in Struts. I use Struts 1.3.8, Ubuntu, Netbeans 6.0 and JDK 6. The problem started as a NullPointerException, but after hours and hours trying everything I realized that my execute method is executed twice. Why d

Re: Struts 2 and radio buttons

2008-08-11 Thread Ramanathan RV
Hi, I would rather suggest you write some CSS code to achieve this. Something as simple like label { display: block; } should work. Changing a theme only makes sense when you need to make some drastic changes like modifying layout of forms. On Sun, Aug 10, 2008 at 1:48 AM, Michael Finney <[EMA

Re: Simplified usage of:@com.company.Constants.StaticCOnstants

2008-08-11 Thread Ramanathan RV
Hello, This has always been a problem. And a quick and decent way of solving this is to forget OGNL and write your own implementation. Below listed the code from AppFuse project which essentially creates a tag to expose all the constants. *package com.company.app.webapp.taglib; import java.lang.

Re: [Struts 2] NetBeans can't find my ResourceBundle properties file (localization issue)

2008-08-11 Thread Ylva Degerfeldt
Thanks Dave, for answering! Well the action that should be executed after a submit from the first page (called "NameAndCv.jsp") extends ActionSupport. But maybe this problem is due to another thing I'm insecure about... I run my application just by the Run command of NetBeans, having set the wel

Re: Remotely passing parameters to struts

2008-08-11 Thread Felipe Lorenz
hi... i dont think so... On Mon, Aug 11, 2008 at 8:45 AM, jaki <[EMAIL PROTECTED]> wrote: > > Hi all, > > I have a web application which needs to pass parameters to a struts app > which resides on another machine. I will not be calling the struts class > using a jsp but from a normal java method.

Re: How to resolve list property for ModelDriven Action?

2008-08-11 Thread Dave Newton
Oh. So what are you asking then? How to create a select list? How to use the tag? Dave --- On Mon, 8/11/08, Haulyn R. Jason <[EMAIL PROTECTED]> wrote: > From: Haulyn R. Jason <[EMAIL PROTECTED]> > Subject: Re: How to resolve list property for ModelDriven Action? > To: "Struts Users Mailing Li

Re: How to resolve list property for ModelDriven Action?

2008-08-11 Thread Haulyn R. Jason
Dave Newton : --- On Mon, 8/11/08, Haulyn R. Jason <[EMAIL PROTECTED]> wrote: I implement ModelDriven interface, but I have a list in my model. It looks like: public class Role(){ private String id; private String name ; private List privilegeList; } In my action, I have a set/get method for

Re: How to resolve list property for ModelDriven Action?

2008-08-11 Thread Dave Newton
--- On Mon, 8/11/08, Haulyn R. Jason <[EMAIL PROTECTED]> wrote: > I implement ModelDriven interface, but I have a list in my > model. It > looks like: > public class Role(){ > private String id; > private String name ; > private List privilegeList; > } > > In my action, I have a set/get method for

Re: [Struts 2] NetBeans can't find my ResourceBundle properties file (localization issue)

2008-08-11 Thread Dave Newton
Does the action being executed extend ActionSupport? Dave --- On Mon, 8/11/08, Ylva Degerfeldt <[EMAIL PROTECTED]> wrote: > From: Ylva Degerfeldt <[EMAIL PROTECTED]> > Subject: [Struts 2] NetBeans can't find my ResourceBundle properties file > (localization issue) > To: "Struts Users Mailing L

How to resolve list property for ModelDriven Action?

2008-08-11 Thread Haulyn R. Jason
Hi, I implement ModelDriven interface, but I have a list in my model. It looks like: public class Role(){ private String id; private String name ; private List privilegeList; } In my action, I have a set/get method for Role Object, but what about the list? I am confused for retrieve data from my

[Struts 2] NetBeans can't find my ResourceBundle properties file (localization issue)

2008-08-11 Thread Ylva Degerfeldt
Hi, I'm trying to use the localization method of having property files that define all the visible text using keys and values (e.g. "nameAndCv.title = Namn och cv"), but the problem is that NetBeans (5.5.1) can't seem to find my properties file (I only have one). I've read in "Struts 2 in Action"

Remotely passing parameters to struts

2008-08-11 Thread jaki
Hi all, I have a web application which needs to pass parameters to a struts app which resides on another machine. I will not be calling the struts class using a jsp but from a normal java method. So, is there a way to pass arguements without using a request/response object? -- View this message

Re: Redirect-Action Problem with struts 2.0.11 and multiple packages

2008-08-11 Thread Lukasz Lenart
> > >greeting.jsp > > > > > > >results >/ > > > You forgot to extends package administration from struts-default. Or you have to define such result for this package.

Redirect-Action Problem with struts 2.0.11 and multiple packages

2008-08-11 Thread DavidCAIT
Hi, I am having trouble getting the redirect-action syntax to work in struts 2.0.11. Here is the relevant portion of my struts.xml file: struts.xml: greeting.jsp results /

Re: value-stack data lost when using dynamic result.

2008-08-11 Thread Dwipin C
Thanks for your reply, but is that the scenario when we use a model driven action classes ? I am directly using javabeans in my action class and have actionClass-validation.xml for validations. What do I do in such scenario? Dwipin Chandran Experie

Re: redirect does not work with Tiles.

2008-08-11 Thread Jeromy Evans
Griffith, Michael * wrote: Jeromy, Thanks for the replies. In cases where I've needed this behaviour I've referenced the JSP instead of a Tile. Do you mean your result redirects to a JSP instead of a struts action? MG Not Redirect, DISPATCH to a JSP. http://struts.apache.or

Re: value-stack data lost when using dynamic result.

2008-08-11 Thread stanlick
I have a base domain with a currentPage property on it for this sort of requirement. My action maintains this currentPage on the model which is kept populated. Remember to set an initial value on the property in case there are validation errors from the start. Scott On Sun, Aug 10, 2008 at 11:5

Re: action-param

2008-08-11 Thread Lukasz Lenart
Hi, Could you post also your configuration? Did you add [1] to your stack? [1] http://struts.apache.org/2.0.11.2/docs/static-parameters-interceptor.html Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: [E