How to pass data from one Action class to another Action class?

2018-01-05 Thread Akash khare
first action class code getRequest().setAttribute("RncPartnerID", model.getId()); 2nd action class code String rncPartnerId=(String)getRequest().getAttribute("RncPartnerID"); RncPartnerData rncPartnerData = new RncPartnerData(); rncPartnerData.setId(rncPartnerId); rateCardData.setRncPartnerData(rn

Re: About error-code 404 is called for each struts action class

2018-01-05 Thread Yasser Zamani
On 1/6/2018 12:04 AM, Emi wrote: > 404.jsp is called by web.xml when going from one page to another. Maybe other requests like a missing favicon, css or javascript causes this. - To unsubscribe, e-mail: user-unsubscr...@struts.

Re: About error-code 404 is called for each struts action class

2018-01-05 Thread Emi
Any clue why action classes are shown correctly, but 404.jsp still called? In 404.jsp only one line: System.out.println("test"); All struts action classes can be shown correctly, but 404.jsp is called by web.xml when going from one page to another. Thanks. Hello, In web.xml: 40

Annotation validation setter level

2018-01-05 Thread José Antonio Delgado Trujillo
Annotations validations an alternative way of XML validation or the simplest way to implement the validate method. Yo have two options: At method level At setter level In the second if you don’t have the setter in the Action class because it is a property of an object, where do i put the annot

Re: validation checkboxlist

2018-01-05 Thread José Antonio Delgado Trujillo
> “personBean.levels.isEmpty” Yes, it’s empty an in the form the first time rendered all the options are unchecked. > > You should use "name" instead of "key" Why not key? i have the correspondan property files personBean.levels=Cursos I also see the label Cursos and the options The proble

About error-code 404 is called for each struts action class

2018-01-05 Thread Emi
Hello, In web.xml: 404 /WEB-INF/pages/errorinfo/tiles_404.jsp For each struts2 action class shows/direct to correct page, but the above line is always called. Could someone let me know what may cause the above section called please? Thanks a lot! -- struts2.5.14.1, tiles3.0.8,

Re: run the class ComponentTagExampleTest

2018-01-05 Thread Lukasz Lenart
2018-01-05 13:30 GMT+01:00 albert kao : > I downloaded a zip file of Showcase App from > https://github.com/apache/struts. > Then I unzipped it and run mvn. > I saw the class ComponentTagExampleTest. > How to run it? cd showcase mvn it:testOnly *. ComponentTagExampleTest Regards -- Łukasz + 48

run the class ComponentTagExampleTest

2018-01-05 Thread albert kao
I downloaded a zip file of Showcase App from https://github.com/apache/struts. Then I unzipped it and run mvn. I saw the class ComponentTagExampleTest. How to run it?