vishal29bhp Posted November 21, 2009 Share Posted November 21, 2009 Code:Hello Everybody, I trying to add some Static HTML pages in Jasperserver which contains help contents. I tried using UrlFilenameViewController but no luck.Is there any filter mechanism which restrict this to do so.Plz helpVishalCode:[code]Hello Everybody, I trying to add some Static HTML pages in Jasperserver which contains help contents. I tried using UrlFilenameViewController but no luck.Is there any filter mechanism which restrict this to do so. The Jasperserver log says : WARN PageNotFound,http-8080-Processor25:1005 - No mapping for [/consulting101server/html/test.html] in DispatcherServlet with name 'jasperserver'Plz helpVishal Post Edited by vishal29bhp at 11/21/2009 09:17 Link to comment Share on other sites More sharing options...
vishal29bhp Posted November 23, 2009 Author Share Posted November 23, 2009 Code:Any Pointer Sherman Plz Vishal Link to comment Share on other sites More sharing options...
kitakura Posted December 18, 2009 Share Posted December 18, 2009 I was wondering the same thing and I think I finally figured out reading below page:http://static.springsource.org/docs/Spring-MVC-step-by-step/part1.htmlI could be wrong but here is what I did.I use JS 3.1 and maybe different for other JS version. But here it is:* Create hello.jsp and put it in /jasperserver/WEB-INF/jsp/hello.jsp* Add following line in /jasperserver/WEB-INF/jasperserver-servlet.xml in <bean id="handlerMapping" --<prop key="/hello.html">MyControl</prop>* Add following line in /jasperserver/WEB-INF/jasperserver-servlet.xml in <bean id="paramResolver" -- <prop key="/hello.html">hello</prop>* Add following line in very bottom of /jasperserver/WEB-INF/jasperserver-servlet.xml before "</beans>"<bean id="MyControl" class="com.mycompany.control.MyCommonController"/> (Attached is a final version of jasperserver-servlet.xml after above changes.)* Create a class com.mycompany.control.MyCommonController (see the code below)Restart your app then click onhttp://XXXXXX/jasperserver/hello.html Code: Post Edited by kitakura at 12/18/2009 21:13 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now