property file outside war file.
Hi , I need to have my applicationresource.properties outside my war file say it will be resided in some server location which will be reffered frm my application inside jsps and actions. will this be possible? if u know kindly descirbe me -- View this message in context: http://www.nabble.com/property-file-outside-war-file.-tp23230253p23230253.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
How to use validator frame work.
i am using struts for my front end handling of data. now i wish to go for validator framework for handling form validation given by user, I have put the validaton.xml and validaton-rules.xml into web-inf and i hav plugged in the plugin with className and paramnames as the xml files but when my application startsup im getting such an exception can any one help me in this. thanks in advance. my validation.xml minlength 1 my validation-rules.xml INFO: Loading validation rules file from '/WEB-INF/validation.xml' Apr 1, 2008 2:38:53 PM org.apache.commons.digester.Digester endElement SEVERE: End event threw exception java.lang.NoSuchMethodException: No such accessible method: addArg0() on object: org.apache.commons.validator.Field at org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:250) at org.apache.commons.digester.SetNextRule.end(SetNextRule.java:256) at org.apache.commons.digester.Rule.end(Rule.java:276) at org.apache.commons.digester.Digester.endElement(Digester.java:1058) at oracle.xml.parser.v2.NonValidatingParser.parseElement(NonValidatingParser.java:1287) at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:328) at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:295) at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:201) at org.apache.commons.digester.Digester.parse(Digester.java:1568) at org.apache.commons.validator.ValidatorResourcesInitializer.initialize(ValidatorResourcesInitializer.java:259) at org.apache.struts.validator.ValidatorPlugIn.initResources(ValidatorPlugIn.java:222) at org.apache.struts.validator.ValidatorPlugIn.init(ValidatorPlugIn.java:161) at org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:1158) at org.apache.struts.action.ActionServlet.init(ActionServlet.java:473) at javax.servlet.GenericServlet.init(GenericServlet.java:257) at com.evermind.server.http.HttpApplication.loadServlet(HttpApplication.java:2231) at com.evermind.server.http.HttpApplication.findServlet(HttpApplication.java:4617) at com.evermind.server.http.HttpApplication.findServlet(HttpApplication.java:4541) at com.evermind.server.http.HttpApplication.initPreloadServlets(HttpApplication.java:4730) at com.evermind.server.http.HttpApplication.initDynamic(HttpApplication.java:1019) at com.evermind.server.http.HttpApplication.(HttpApplication.java:649) at com.evermind.server.ApplicationStateRunning.getHttpApplication(ApplicationStateRunning.java:428) at com.evermind.server.Application.getHttpApplication(Application.java:512) at com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.createHttpApplicationFromReference(HttpSite.java:1975) at com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.createHttpApplicationFromReference(HttpSite.java:1958) at com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.getHttpApplication(HttpSite.java:1910) at com.evermind.server.http.HttpSite.getApplication(HttpSite.java:427) at com.evermind.server.http.HttpRequestHandler.resolveApplication(HttpRequestHandler.java:395) at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:437) at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:218) at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:119) at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:112) at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260) at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:230) at oracle.oc4j.network.ServerSocketAcceptHandler.access$800(ServerSocketAcceptHandler.java:33) at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:831) at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:298) at java.lang.Thread.run(Thread.java:595) Apr 1, 2008 2:38:53 PM org.apache.commons.validator.ValidatorResourcesInitializer initialize SEVERE: Error at (8, 39: No such accessible method: addArg0() on object: org.apache.commons.validator.Field java.lang.NoSuchMethodException: No such accessible method: addArg0() on object: org.apache.commons.validator.Field at org.apache.commons.digester.Digester.createSAXException(Digester.java:2540) at org.apache.commons.digester.Digester.createSAXException(Digester.java:2566) at org.apache.commons.digester.Digester.endElement(Digester
Tiles in 1.3.9
I need to integrate tiles in struts 1.3.9 i have included the jar files and tlds as needed but im getting the exception... i don know whats the error Apr 4, 2008 10:25:48 AM org.apache.struts.action.ActionServlet initChain INFO: Loading chain catalog from code-source:/C:/Jdeveloper 1014/jdev/mywork/test/ViewController/public_html/WEB-INF/lib/struts-core-1.3.9.jar!org/apache/struts/chain/chain-config.xml Apr 4, 2008 10:25:48 AM org.apache.struts.tiles.TilesPlugin initDefinitionsFactory INFO: Tiles definition factory loaded for module ''. Apr 4, 2008 10:25:49 AM org.apache.struts.chain.ComposableRequestProcessor init INFO: Initializing composable request processor for module prefix '' Apr 4, 2008 10:25:49 AM org.apache.struts.chain.commands.AbstractExceptionHandler execute WARNING: Unhandled exception java.lang.IllegalArgumentException: path must begin with a "/" at com.evermind.server.http.HttpApplication.getRequestDispatcher(HttpApplication.java:1532) at org.apache.struts.chain.commands.servlet.PerformForward.handleAsForward(PerformForward.java:107) at org.apache.struts.chain.commands.servlet.PerformForward.perform(PerformForward.java:96) at org.apache.struts.chain.commands.AbstractPerformForward.execute(AbstractPerformForward.java:54) at org.apache.struts.chain.commands.ActionCommandBase.execute(ActionCommandBase.java:51) at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:190) at org.apache.commons.chain.generic.LookupCommand.execute(LookupCommand.java:304) at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:190) at org.apache.struts.chain.ComposableRequestProcessor.process(ComposableRequestProcessor.java:283) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:450) at javax.servlet.http.HttpServlet.service(HttpServlet.java:743) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:719) at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:376) at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:870) at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:451) at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:218) at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:119) at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:112) at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260) at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303) at java.lang.Thread.run(Thread.java:595) Apr 4, 2008 10:25:49 AM org.apache.struts.chain.commands.ExceptionCatcher postprocess WARNING: Exception from exceptionCommand 'servlet-exception' java.lang.IllegalArgumentException: path must begin with a "/" at com.evermind.server.http.HttpApplication.getRequestDispatcher(HttpApplication.java:1532) at org.apache.struts.chain.commands.servlet.PerformForward.handleAsForward(PerformForward.java:107) at org.apache.struts.chain.commands.servlet.PerformForward.perform(PerformForward.java:96) at org.apache.struts.chain.commands.AbstractPerformForward.execute(AbstractPerformForward.java:54) at org.apache.struts.chain.commands.ActionCommandBase.execute(ActionCommandBase.java:51) at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:190) at org.apache.commons.chain.generic.LookupCommand.execute(LookupCommand.java:304) at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:190) at org.apache.struts.chain.ComposableRequestProcessor.process(ComposableRequestProcessor.java:283) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:450) at javax.servlet.http.HttpServlet.service(HttpServlet.java:743) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:719) at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:376) at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:870) at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:451) at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:218) at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandle
Re: Tiles in 1.3.9
i point the issue by myself. the main issue is i have not given the in struts-config.xml. after i give its working... thanks for giving me the best pratices on tiles... if u still find any issues in my code pls say so that i can have a correction Lukasz Lenart wrote: > > Hi, > >> >> >> forward=".tiles-defs"/> >> > >> tiles-defs.xml > > > There is good practice to start Tiles definitions with dot -> .tiles-defs > I don't see ant forwards in your struts-config.xml, could you past them > here? > > > Regards > -- > Lukasz > > http://www.linkedin.com/in/lukaszlenart > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Tiles-in-1.3.9-tp16483416p16490795.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
how to set dynamic name for html:radio
hi... i am using tag lib in struts 1.3.5, I am in a requirement that we need to give the names of the html form components dynamically...(ie) if i say above code goes inside an interation the html outputs as
inheritance...
i have one doubt.. i need to iterate a indexed bean propery say List can i be able to do with the parent from bean reference...? BaseFrom extends ActionForm { private List myList = null; } ChildForm extends BaseForm now i want to do a iteration of ChildForm in jsp with the BaseForm reference... if we can how to get the BaseForm reference in jsp... -- View this message in context: http://www.nabble.com/inheritance...-tp16926881p16926881.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: inheritance...
ya its not a problem but i am asking can we able to reffer a childform bean object specified in struts config with the baseform reference.. in the time of rendering into a jsp...? Antonio Petrelli-3 wrote: > > 2008/4/27 balaji.m.cs <[EMAIL PROTECTED]>: >> BaseFrom extends ActionForm { >> >> private List myList = null; >> } >> >> ChildForm extends BaseForm > > ChildForm is also BaseForm, it's OOP inheritance, so I don't see the > problem here. > > Antonio > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/inheritance...-tp16926881p16952816.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
error page and tiles.
i want to show an error page with a application error messages 2 the users when there is an technical error... i am using tiles 1.2 with struts 1.3.5 when there is an error in a jsp tile say a body part or a left part the error page is replaced @ that particular tile is there any way to show the full error page rather than replacing the particular tile part... of the layout. -- View this message in context: http://www.nabble.com/error-page-and-tiles.-tp16952850p16952850.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: error page and tiles.
i have taken the tld version of struts-tiles which i have taken from struts-blank. Antonio Petrelli-3 wrote: > > 2008/4/29 balaji.m.cs <[EMAIL PROTECTED]>: >>i am using tiles 1.2 with struts 1.3.5 > > What? Why Tiles 1.2 with Struts 1.3.5? > Tiles 1.x and Struts 1.x must have the same version number. > > Antonio > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/error-page-and-tiles.-tp16952850p16955223.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: error page and tiles.
no i don want to show an error page made with tiles definition wat i need is an error page say an simple jsp stating there is an application error java.lang.Exception /jsp/sample/error.jsp if i add the above entry in web.xml it will redirect to error page but when using tiles its replacing the particular tile say a body or a footer.jsp where the error orrurs with this error page... not the whole page... hope u got now...? Antonio Petrelli-3 wrote: > > 2008/4/29 balaji.m.cs <[EMAIL PROTECTED]>: >> >> i want to show an error page with a application error >> messages 2 the users when there is an technical error... >>i am using tiles 1.2 with struts 1.3.5 when there is an >> error >> in a jsp tile say a body part or a left part the error page is replaced >> @ >> that particular tile >>is there any way to show the full error page rather than >> replacing the particular tile part... of the layout. > > I cannot understand, do you want to display an error page made with a > Tiles definition? > > Antonio > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/error-page-and-tiles.-tp16952850p16955727.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: error page and tiles.
error jsp or the tiles jsps...with the layout.? Antonio Petrelli-3 wrote: > > 2008/4/29 balaji.m.cs <[EMAIL PROTECTED]>: >> >> no i don want to show an error page made with tiles definition wat i >> need >> is an error page say an simple jsp stating there is an application error >> >>java.lang.Exception >> /jsp/sample/error.jsp >> >> >> >> if i add the above entry in web.xml it will >> redirect >> to error page but when using tiles its replacing the particular tile say >> a >> body or a footer.jsp where the error orrurs with this error page... not >> the >> whole page... hope u got now...? > > Can I see this JSP page? > > Antonio > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/error-page-and-tiles.-tp16952850p16956891.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: error page and tiles.
Clearly stating you My application uses tiles for my view purpose in the normal flow if every thing goes fine if some exception raises @ jsp level i will show a clean error jsp stating "sorry for the trouble u have been met with an application error . (while rendering into the tiled jsp's if there is an error i want to forward to that error jsp which is not a tilled one.) hope i have explained you thanks & regards Balaji.M Antonio Petrelli-3 wrote: > > 2008/4/29 balaji.m.cs <[EMAIL PROTECTED]>: >> >> error jsp or the tiles jsps...with the layout.? > > Your "/jsp/sample/error.jsp" obviously. > Wait a moment: are you using Tiles tags in that JSP files? But you > told that you don't want to use Tiles. > I just don't get your point. > > Antonio > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/error-page-and-tiles.-tp16952850p16957442.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: error page and tiles.
its my /jsp/sample/error.jsp http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";> <%@ page isErrorPage="true"%> <%@ page import="java.io.PrintWriter,java.io.StringWriter"%> http://www.w3.org/1999/xhtml";> you have met with an application error sorry for the trouble caused <% StringWriter stringWriter = new StringWriter(); PrintWriter printWriter = new PrintWriter(stringWriter); if(exception != null) { exception.printStackTrace(printWriter); } %> <%=stringWriter.toString()%> Antonio Petrelli-3 wrote: > > 2008/4/29 balaji.m.cs <[EMAIL PROTECTED]>: >> >> Clearly stating you >> >>My application uses tiles for my view purpose in the normal flow >> if >> every thing goes fine >> >> if some exception raises @ jsp level >> >> i will show a clean error jsp stating "sorry for the trouble u >> have >> been met with an application error >> . (while rendering into the tiled jsp's if there is an error i want to >> forward to that error jsp which is not a tilled one.) > > Ok let me see this page then, that should be: > /jsp/sample/error.jsp > > Antonio > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/error-page-and-tiles.-tp16952850p16958475.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: error page and tiles.
finally u got it man.. its wat im sayin.. im using oracle app server 10 g. as production server .locally im using jdevloper with oc4j embedded server Antonio Petrelli-3 wrote: > > 2008/4/29 balaji.m.cs <[EMAIL PROTECTED]>: >> >> when there is an error >> in a jsp tile say a body part or a left part the error page is replaced >> @ >> that particular tile > > > Oh finally I think that I understood :-) > You are saying that, when you have an error occurring in a "tile", you > see the error page instead of the tile itself, along with the rest of > the layout. > You wish to see the error page alone. > AFAIK it's a bug (feature?) of various servlet containers, such as > Tomcat <= 5.0. > What server are you using? > > Antonio > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/error-page-and-tiles.-tp16952850p16958653.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]