Re: Templating Mechanism
Hi, We found the tag extension provided by Oleg V Alexeev very useful. Is there a plan to incorporate it into Struts 1.0 ? Regards, SiowBoon Oleg V Alexeev wrote: > Hello Andrew, > > Some time ago I write tag to extend template mechanism in this way. > Use it if you find it useful. > > This tag can be used like tag except one feature - if > you omit content property in it, then body of this tag will be treated > as content. For example - > > > Some content > > > Sourse you can find in attachment. This class - whole mirror of PutTag > except some strings of code. > > Strings to add to the struts-template.tld > > > extput > org.apache.struts.taglib.template.ExtPutTag > JSP > > name > true > true > > > content > false > true > > > direct > false > true > > > > Monday, November 13, 2000, 7:45:55 PM, you wrote: > > >> The template mechanism in the article is nearly identical to the one in > >> Struts. See org.apache.struts.taglib.template. > > AB> I've been looking at the templating code, and > AB> have what I hope is a simple question. > > AB> When using direct="true" in the tag, > AB> to place literal text into the template, the text must > AB> necessarily be very limited because it's contained in > AB> the value of the content attribute. What I'd like to be > AB> able to do is something like: > > AB> > > AB> > > AB> > AB>... page-specific navigation here > AB> > > AB> > AB>... page body here... > AB> > > AB> > > AB> which seems similar to your examples, except that the > AB> contents of the navigation and pagebody sections are > AB> stated in line, instead of loaded from external files, > AB> which I'd rather not do because of how many tiny > AB> little documents that would end up creating. > > AB> Is this feasible? If the tag lib doesn't already > AB> support this function (and I believe it doesn't), > AB> is it possible to implement, and is it contrary to > AB> the intent? I'm not comfortable enough with > AB> taglib implementation to know if doing it this way > AB> would affect the evaluation of the page body in > AB> some undesirable way. > > AB> Andy Boyko [EMAIL PROTECTED] > > -- > Best regards, > Olegmailto:[EMAIL PROTECTED] > > > Name: ExtPutTag.java >ExtPutTag.javaType: application/x-unknown-content-type-java_auto_file > Encoding: base64
Cannot find tag class: 'org.apache.struts.taglib.form.RewriteTag'
Hi, I encounterd the following error when trying out the Struts example using nightly build 20001119. It seems like the struts-form.tld contains a "RewriteTag" referencing a class 'org.apache.struts.taglib.form.RewriteTag' that does not exist. I managed to get the example working by removing the "RewriteTag". I should have reported this problem thru http://znutar.cortextity.com: but I just couldn't access it. Regards, SiowBoon Tue Nov 21 10:11:20 GMT+08:00 2000: reso lving taglib uri '/WEB-INF/struts-form.tld' to taglib-location /WEB-INF/struts-f orm.tld: Tue Nov 21 10:11:22 GMT+08:00 2000: Serv let failed with Exception weblogic.servlet.jsp.JspException: (line -1): Error in tag library at: 'form': c annot find tag class: 'org.apache.struts.taglib.form.RewriteTag' at weblogic.servlet.jsp.StandardTagLib.jspException(StandardTagLib.java: 138) at weblogic.servlet.jsp.StandardTagLib.processTag(StandardTagLib.java:22 9) at weblogic.servlet.jsp.StandardTagLib.processTagElements(StandardTagLib .java:146) at weblogic.servlet.jsp.StandardTagLib.(StandardTagLib.java:125) at weblogic.servlet.jsp.JspLexer.loadTagLib(JspLexer.java:87) at weblogic.servlet.jsp.JspLexer.mTAGLIB_DIRECTIVE_BODY(JspLexer.java:37 39) at weblogic.servlet.jsp.JspLexer.mTAGLIB_DIRECTIVE(JspLexer.java:3495) at weblogic.servlet.jsp.JspLexer.mDIRECTIVE(JspLexer.java:3356) at weblogic.servlet.jsp.JspLexer.mSTANDARD_THING(JspLexer.java:1694) at weblogic.servlet.jsp.JspLexer.mTOKEN(JspLexer.java:1535) at weblogic.servlet.jsp.JspLexer.nextToken(JspLexer.java:1425) at weblogic.servlet.jsp.JspLexer.parse(JspLexer.java:825) at weblogic.servlet.jsp.JspParser.doit(JspParser.java:69) at weblogic.servlet.jsp.JspParser.parse(JspParser.java:116) at weblogic.servlet.jsp.Jsp2Java.outputs(Jsp2Java.java:97) at weblogic.utils.compiler.CodeGenerator.generate(CodeGenerator.java:242 ) at weblogic.servlet.jsp.JspStub.compilePage(JspStub.java:265) at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:180) at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl. java:181) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm pl.java:118) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm pl.java:141) at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon textImpl.java:761) at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon textImpl.java:708) at weblogic.servlet.internal.ServletContextManager.invokeServlet(Servlet ContextManager.java:252) at weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.jav a:346) at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:246) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:135)
When will Struts 1.0 going to be released ?
Hi, We are quite interested to use Struts in our in-house project. It is a very nice MVC framework that separates business logic from the JSP page. Can I know when Struts 1.0 be released ? Regards, SiowBoon