Re: Tool to convert HTML to Struts JSP's?
To attain such a task, I think you need to develop a framework over struts setting your standard way to proceed with data feeding to pages. In other words you need to do some asumptions since Struts is too general for this task. A friend of me did something similar with quite success. Regards, Adolfo. From: Vic Cekvenich [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: Tool to convert HTML to Struts JSP's? Date: Fri, 06 Aug 2004 08:31:29 -0500 ren *.html *.jsp Adam Lipscombe wrote: Folks, My Web Designer is supplying HTML files straight from DreamWeaver. I need to convert them to JSP for use with Struts 1.1. If there a tool to assist with this? (doing it by hand is going to be tedious) Previous list answers include Struts Console from James Holmes. I downloaded this but I cant see how it will help. It appears to be a GUI for the struts config file. TIA -Adam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tool to convert HTML to Struts JSP's?
To attain such a task, I think you need to develop a framework over struts setting your standard way to proceed with data feeding to pages. In other words you need to do some asumptions since Struts is too general for this task. A friend of me did something similar with quite success. A tip: use JTidy to do the conversion HTML - XHTML and parse and replace the tags with the struts ones. No so difficult. Regards, Adolfo. From: Vic Cekvenich [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: Tool to convert HTML to Struts JSP's? Date: Fri, 06 Aug 2004 08:31:29 -0500 ren *.html *.jsp Adam Lipscombe wrote: Folks, My Web Designer is supplying HTML files straight from DreamWeaver. I need to convert them to JSP for use with Struts 1.1. If there a tool to assist with this? (doing it by hand is going to be tedious) Previous list answers include Struts Console from James Holmes. I downloaded this but I cant see how it will help. It appears to be a GUI for the struts config file. TIA -Adam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [very OT] 16 kb limit in XML from Tomcat?
I did have similar experiences parsing files by myself using SAX parsing. Xerces and other parsers chop files in blocks. 16k is the default size for xerces, or at least it was. Hander code must be aware of that, in the events handling, and hold strings from one block to the other if one tag is broken in between two blocks. Otherwise, results can be unpredictable. I guess, just a guess, could happen something similar in Tomcat parsing but a deeper investigation must be developed. Anyway, that you say could have meaning. Regards, Adolfo. From: Kransen, J. [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Subject: [very OT] 16 kb limit in XML from Tomcat? Date: Mon, 17 May 2004 12:31:44 +0200 Hello, I generate an XML file from within a JSP in Tomcat. Especially after 16384 bytes the contents are really interesting. Unfortunately, Tomcat disagrees and truncates it. It can't be coincidence that this is 16k precisely, so I hoped to find a configuration item set to 16k (in fact I hoped not to have a limit at all), but I can't find one. There are also no stack traces or any errors/warnings, it just gets truncated and that's it. It can't be the browser, because it happens with IE6 and Opera 7.23. By the way, do I have to (can I) set a content type text/xml in JSP? Regards, Jeroen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Struts 1.0 -- 1.1 on iPlanet
Well, I run in similar issues deploying in iplanetAS 6.0 SP5. I was able to make it start the application by patching the class loading in struts and digester jars, but I rejected in patching the custom tags, so I decided to use plain HTML instead. WHY this happends? Maybe because iPlanet 6.0 is not a fully J2EE 1.2 compliant appserver? I suspects that core APIs as servlets and JSPs behaves differently. Any more opinions? Regards, Adolfo. From: [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Struts 1.0 -- 1.1 on iPlanet Date: Fri, 14 May 2004 14:34:43 -0400 (EDT) All- In an attempt to find the limits of iWS6.0SP5, I created a simple Hello World Struts app using 1.0 and have it successfully deployed and running. To take it to the next level, I made the same app Struts 1.1 compliant by changing the struts-config.xml to 1.1 format, upgrading stuts.jar and including the required commons libs (digester, beanutils, etc). Deploying this newer version of the app causes the server to bomb with the stack trace below. Looking into the Stuts 1.1 source, if you trace back the line in ActionServlet that seems to be causing the NPE, it's based on it loading/finding the config file and then being able to find the mapping for the incoming request. I can't understand why iWS would be able to find the struts-config.xml when using Struts 1.0, but not with Struts 1.1. Has anyone run into this before? Offer any thoughts on how to debug? I'd really like to get Struts 1.1 running on this baby. -Billy [14/May/2004:11:04:30] failure ( 678): Internal error: exception thrown from the servlet service function (uri=/hello-world/SampleAction.do): java.la ng.NullPointerException, Stack: java.lang.NullPointerException at org.apache.struts.action.ActionServlet.getRequestProcessor(ActionServlet.java:854) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.iplanet.server.http.servlet.NSServletRunner.invokeServletService(NSServletRunner.java:919) at com.iplanet.server.http.servlet.WebApplication.service(WebApplication.java:1061) at com.iplanet.server.http.servlet.NSServletRunner.ServiceWebApp(NSServletRunner.java:981) at com.iplanet.server.http.servlet.NSServletSession.internalRedirect(Native Method) at com.iplanet.server.http.servlet.NSRequestDispatcher.forward(NSRequestDispatcher.java:48) at org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:415) at _jsps._index_jsp._jspService(_index_jsp.java:61) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:248) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.access$6(JspServlet.java:238) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:519) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:588) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.iplanet.server.http.servlet.NSServletRunner.invokeServletService(NSServletRunner.java:919) at com.iplanet.server.http.servlet.WebApplication.service(WebApplication.java:1061) at com.iplanet.server.http.servlet.NSServletRunner.ServiceWebApp(NSServletRunner.java:981) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Add photos to your messages with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]