Unable to Repopulate the select control once the validation failed
Hi, I am using struts validation frame work. if the validation fails I am returning to the same jsp page. Here in this page there is some date is which was populated when the jsp page initially loaded. when saving the data I am performing the validation if it fails I am doing ing something like this \XXX.jsp \XXX.jsp if I redirect the input action the data is getting populated but the error messages are not getting displayed Why it is heppening like is there anything to conifure im my application regards Vamsi
Re: Pls help me to find Struts 1.0.2 binary, library and source
Wendy , Thank you very much. On 9/3/07, Wendy Smoak <[EMAIL PROTECTED]> wrote: > On 9/2/07, Joey Watson <[EMAIL PROTECTED]> wrote: > > > I have to find Struts 1.0.2 Binary Distribution, Struts 1.0.2 Library > > Distribution and > > Struts 1.0.2 Source Code Distribution for a project, but I didn't find > > it on apache > > website(http://archive.apache.org/dist/jakarta/struts/binaries/), > > only 1.1 can be found, so anybody know where I can download 1.0.2 > > binary, library and source. > > It's here: http://archive.apache.org/dist/struts/struts-1.0.2/ > > -- > Wendy > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Pls help me to find Struts 1.0.2 binary, library and source
On 9/2/07, Joey Watson <[EMAIL PROTECTED]> wrote: > I have to find Struts 1.0.2 Binary Distribution, Struts 1.0.2 Library > Distribution and > Struts 1.0.2 Source Code Distribution for a project, but I didn't find > it on apache website(http://archive.apache.org/dist/jakarta/struts/binaries/), > only 1.1 can be found, so anybody know where I can download 1.0.2 > binary, library and source. It's here: http://archive.apache.org/dist/struts/struts-1.0.2/ -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Pls help me to find Struts 1.0.2 binary, library and source
Hi everybody. I have to find Struts 1.0.2 Binary Distribution, Struts 1.0.2 Library Distribution and Struts 1.0.2 Source Code Distribution for a project, but I didn't find it on apache website(http://archive.apache.org/dist/jakarta/struts/binaries/), only 1.1 can be found, so anybody know where I can download 1.0.2 binary, library and source. Many thanks. Joey - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ServletRequestAware
As far as I know, the only way is asking HttpServletRequest, and thus, implementing ServletRequestAware. If you want to keep HttpServletRequest code out of your actions, consider implementing an interceptor, or even a raw servlet filter. Alvaro. On 9/3/07, stanlick <[EMAIL PROTECTED]> wrote: > > I have an action that determines the requester IP address. The action > implements ServletRequestAware, but I don't like it being all tangled up in > the Servlet API. Is there a way to get the IP address another way. The > RequestAware interface seems to map to only request attributes. > > Thanks, > S > -- > View this message in context: > http://www.nabble.com/ServletRequestAware-tf4369669.html#a12454602 > Sent from the Struts - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Alvaro Sanchez-Mariscal Arnaiz Java EE Architect & Instructor [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
ServletRequestAware
I have an action that determines the requester IP address. The action implements ServletRequestAware, but I don't like it being all tangled up in the Servlet API. Is there a way to get the IP address another way. The RequestAware interface seems to map to only request attributes. Thanks, S -- View this message in context: http://www.nabble.com/ServletRequestAware-tf4369669.html#a12454602 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Struts2: How to handle errors and messages with ajax requests
Hi, I have no idea, how to handle ajax requests properly. My problem is, that I want to fill a list - by now it's just a simple struts action as normal http request. I now want that the list is filled with a ajax request so that the whole page doesn't need to be loaded. But sometimes it is possible that the action that is responsible to fill the list throws an exception or delivers actionerrors/actionmessages. If the action returns actionerrors this should not displayed in the div tag where the list is. Instead actionerrors are displayed in a different div tag. Or another problem if an exception occurs the errorpage is displayed in the div tag instead on a different error jsp. How can I deal with this situations? Any suggestions? Thanks in advance :-) Marc
[S2] error-page directive not working
Hello: I added this error-page directive in my web.xml: java.lang.Exception /error.action The error.action exists and loads correctly: http://cbsweb.jammconsulting.com/cbsweb/error.action I then created a jsp which throws an exception: <%throw new Exception("Testing error handling");%> Which I linked to this url: http://cbsweb.jammconsulting.com/cbsweb/createError.action When I load that url, I get an error in the tomcat log but the error page does not come up on the browser. Any ideas what went wrong? Here is the output in catalina.out: Sep 2, 2007 4:04:58 PM org.apache.catalina.core.ApplicationDispatcher invoke SEVERE: Servlet.service() for servlet jsp threw exception java.lang.Exception: Testing error handling at org.apache.jsp.createError_jsp._jspService(createError_jsp.java:54) // Rest of trace removed Thanks, Neil -- Neil Aggarwal, (832)245-7314, www.JAMMConsulting.com Eliminate junk email and reclaim your inbox. Visit http://www.spammilter.com for details. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Struts 2 !!!OK!!! cannot we live without Spring?
Hayrol -- How are you testing your actions? Using Spring, I can test all my actions with a simple tweak of the Spring file. If you step back and think about IoC using Spring, PICO, Orange Juice or whatever, you will realize that throwing the new keyword away is the best medicine in a highly dependent OO system. Scott On 9/1/07, Hayrol Reyes Mejía <[EMAIL PROTECTED]> wrote: > > Ok, thanks guys. > > But it's not completely clear for me why to use: Struts2 + Spring2 + > Hibernate3 ... if I can do the same with Struts2 + Hibernate3 avoiding a > layer of possible problems. Maybe it's because I think of a MVC framework > that provide me all the necessary to build the View of the application with > JSP the controler with Actions and Mappings and the interface model with > Hibernate without the need to look away for other solutions parts. > > Any way, I'll have to give a look to Spring sections that "rocks" and try > it according to documentations I found. > > Best Regards, > > Hayrol > > > > > Date: Fri, 31 Aug 2007 22:40:48 -0400> From: [EMAIL PROTECTED]> To: > user@struts.apache.org> Subject: Re: Struts 2 !!!OK!!! cannot we live > without Spring?> > Plus, if you haven't used Spring, you should give it a > try, it rocks,> except the MVC, IMO (but I'm biased anyway :) )> > musachy> > > > > On 8/31/07, Dave Newton <[EMAIL PROTECTED]> wrote:> > --- Hayrol > Reyes Mejía <[EMAIL PROTECTED]> wrote:> > > why I have found several > documentation, tutorials,> > > etc, that always include Spring? ... It's > supposed> > > that we need to live with Spring for the rest of> > > the > live?> >> > You don't need to use Spring if you don't want to.> >> > Spring > consists of many independent parts; you do not> > need to use all of it -- > the primary use in S2> > applications is primarily dependency injection, > which> > is very simple to set up and maintain.> >> > I suspect many of us > also use it for database access,> > but that's certainly not required > (although it's a> > pretty good idea, in my opinion).> >> > d.> >> >> > > -> > To > unsubscribe, e-mail: [EMAIL PROTECTED]> > For additional > commands, e-mail: [EMAIL PROTECTED]> >> >> > > -- > "Hey you! > Would you help me to carry the stone?" Pink Floyd> > > -> To > unsubscribe, e-mail: [EMAIL PROTECTED]> For additional > commands, e-mail: [EMAIL PROTECTED]> > _ > Explore the seven wonders of the world > http://search.msn.com/results.aspx?q=7+wonders+world&mkt=en-US&form=QBRE -- Scott [EMAIL PROTECTED]