Re: Velocity-Struts Tokens
Hello, I was wondering if someone could please give me the low down on using Tokens i.e. Struts tokens with velocity. I read through the velocity-tools (struts demo), and have not been able to get tokens to work. Have been using the $form.getToken() method to render the hash but always end up with a $form.getToken() i s not a valid reference. I use the saveToken(request) method. Not sure what i'm doing wrong. Any help/input would be welcome. Hi Sujay, $form.getToken() should work. I have the latest version of the software online and running at http://www.teamup.com:8080/velstrutsdemo/demo.do There you see a working example of all tool methods. A few things to check: - Do any of the other methods of the form tool work for you? Like $form.getCancelName() - Do any of the Velocity Struts tools work at all? For example $link.getBaseRef()? - What is the result if you embed this in your template: $form $link $msg $errors You should see string representations of these four tool objects. If not, your configuration of the view tools is probably not correct. - Make sure the location of the toolbox.xml is defined in web.xml - Make sure toolbox.xml is exists an is in the right directory. Hope this help Gabe thx a ton. Sujay __ Do You Yahoo!? HotJobs - Search Thousands of New Jobs http://www.hotjobs.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] . -- -- Gabriel Sidler Software Engineer, Eivycom GmbH, Zurich, Switzerland -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: summary table of velocity reflection?
Leos Literak wrote: public constructors, with args: not available workaround: add a public static method to the class or a helper class Yep - the idea is to provide all the objects necessary for the designer, not let them create them. Generally I agree. But see my example: ... So if there would be kind of nice way how to instantiate objects (with or without parameters), I would be very happy :-) Leos, Bill Boland contributed a tool loader tool to the mailing list a few weeks ago. See http://www.mail-archive.com/velocity-dev@jakarta.apache.org/msg06102.html A simpler and less powerful tool loader is availalble in the jakarta-velocity-tools project. See http://cvs.apache.org/viewcvs/jakarta-velocity-tools/tools/src/java/org/apache/velocity/tools/tools/ToolLoader.java?rev=1.3content-type=text/vnd.viewcvs-markup Hope this helps Gabe Leos -- -- Gabriel Sidler Software Engineer, Eivycom GmbH, Zurich, Switzerland -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Struts/VelocityTools/Template taglib problem
Ted Husted wrote: [...] If anyone is interested in pursuing this, I could add a Tiles sample to the Vel/Tools application, and we can proceed from there. Yes, I am very interested to pursue that. I need something like this for my next project and it would make a nice add-on to the Struts/Vel tools. Please share your example. Thanks Gabe Since Velocity is easiy to use with traditional HTML/GUI tools, there may be better ways to do this sort of thing in practice (Dreamweaver templates, for example). But if people could pop in a VM tile whenever they wanted, that would be pretty cool, and help with migrations. Tiles is living in the Struts contrib folder now, though Cedric and I plan to propose it to Taglibs. This would be a cool way to get Velocity's foot in the door over there =:o) -Ted. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Gabriel Sidler Software Engineer, Eivycom GmbH, Zurich, Switzerland -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Problems deploying Velstruts.war to BES 5.0
) at org.apache.xerces.readers.DefaultEntityHandler.startReadingFromExternalEntit y(DefaultEntityHandler.java:750) at org.apache.xerces.readers.DefaultEntityHandler.startReadingFromExternalSubse t(DefaultEntityHandler.java:566) at org.apache.xerces.framework.XMLDTDScanner.scanDoctypeDecl(XMLDTDScanner.java :1139) at org.apache.xerces.framework.XMLDocumentScanner.scanDoctypeDecl(XMLDocumentSc anner.java:2145) at org.apache.xerces.framework.XMLDocumentScanner.access$0(XMLDocumentScanner.j ava:2100) at org.apache.xerces.framework.XMLDocumentScanner$PrologDispatcher.dispatch(XML DocumentScanner.java:831) at org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner. java:381) at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1081) at org.xml.sax.helpers.XMLReaderAdapter.parse(XMLReaderAdapter.java:223) at javax.xml.parsers.SAXParser.parse(SAXParser.java:345) at javax.xml.parsers.SAXParser.parse(SAXParser.java:143) at org.apache.struts.digester.Digester.parse(Digester.java:755) at org.apache.struts.action.ActionServlet.initMapping(ActionServlet.java:1331) at org.apache.struts.action.ActionServlet.init(ActionServlet.java:465) at javax.servlet.GenericServlet.init(GenericServlet.java:258) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:911) at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:671) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:214) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:201) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2 46) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2408) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve. java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java :163) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java: 1013) at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1108 ) at java.lang.Thread.run(Thread.java:484) The contents of this e-mail (including any attachments) are intended only for the person or entity to which this e-mail is addressed and may contain confidential, privileged and/or commercially sensitive material. If you are not, or believe you may not be, the intended recipient, please advise the sender immediately by return e-mail, delete this e-mail and destroy any copies. -- Gabriel Sidler Software Engineer, Eivycom GmbH, Zurich, Switzerland -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Struts/Velocity integration
Konstantin Priblouda wrote: --- Ted Husted [EMAIL PROTECTED] wrote: Gabriel Sidler wrote: I will put something working together based on these ideas/code this coming weekend (I am tied up with my projects today/tomorrow). I hope this will simplify further discussions. That sounds great, Gabe. I can hack on it tomorrow over weekend . And can share my code with Gabriel ( if he likes :) ) Hallo Konstantin, How is it going? Anywhere I can jump in? Gabe -- Gabriel Sidler Software Engineer, Eivycom GmbH, Zurich, Switzerland -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]