Jump to content
We've recently updated our Privacy Statement, available here ×

rohit.shinde9690

Members
  • Posts

    9
  • Joined

  • Last visited

 Content Type 

Profiles

Forum

Events

Featured Visualizations

Knowledge Base

Documentation (PDF Downloads)

Blog

Documentation (Test Area)

Documentation

Dr. Jaspersoft Webinar Series

Downloads

Everything posted by rohit.shinde9690

  1. Fixed this issue by following method: Changed com.jaspersoft.jasperreports.export.html.type to html in …WEB-INFclassesjasperreports.properties file Take a look at following link in section Enabling the XHTML or HTML Exportershttp://community.jaspersoft.com/documentation/jasperreports-server-administration-guide-beta/configuring-jasperreports-library#system-config_3127404271_1074343
  2. I'm facing Page break issue with my report. I migrated report from SQL to MDX and Cube. Page break and one page per sheet property for excel was working fine in SQL report but after migration to MDX it stopped working and all 3 pages coming on single pages and hence excel functionality is also not working. Then i came to know about property called as net.sf.jasperreports.page.break.no.pagination, i set 'apply' value to this property and now i get following error : net.sf.jasperreports.engine.JRRuntimeException: Out of range start value -2147483305 at net.sf.jasperreports.engine.export.tabulator.DimensionEntries.getRange(DimensionEntries.java:75) at net.sf.jasperreports.engine.export.tabulator.Tabulator.placeElement(Tabulator.java:143) at net.sf.jasperreports.engine.export.tabulator.Tabulator.layoutElements(Tabulator.java:133) at net.sf.jasperreports.engine.export.tabulator.Tabulator.tabulate(Tabulator.java:84) at net.sf.jasperreports.engine.export.HtmlExporter.exportPage(HtmlExporter.java:641) at net.sf.jasperreports.engine.export.HtmlExporter.exportReportToWriter(HtmlExporter.java:601) at net.sf.jasperreports.engine.export.HtmlExporter.exportReport(HtmlExporter.java:397) Full Error in attached file. I'm using ireport designer 4.8 and Jasper Server 5.2 community version. Please help me out. Thanks in advance. :) P.S : Ignore Pagination - True Page breaks in the report net.sf.jasperreports.export.xls.one.page.per.sheet - true
  3. Due to Bad formatting of answer by Text Box answer is not clear in post. please find well formated answer in attachment .
  4. Procedure to add new login page: Create a new login jsp page. Example entry.jsp Keep it in jasperserver-war/src/main/webapp/WEB-INF/jsp/modules/login/ Add entry of property of page in urlHandlerMapping bean section in jasper-servlet.xml in anonymous pages section as follows: "urlHandlerMapping" class="org.springframework.beans.factory.config.PropertiesFactoryBean"> "properties"> "/fileview/**">jsFileViewContr "/entry.html">jsCommContr "/login.html">jsCommContr "/logout.html">jsCommContr Also add following code in same file in paramResolver bean section. "paramResolver" class="org.springframework.web.servlet.mvc.multiaction.PropertiesMethodNameResolver"> "mappings"> "/entry.html">entry "/home.html">homePage "/login.html">login "/entry.html">jsCommContr This will call controller servlet which is mapped as "jsCommContr" class="com.jaspersoft.jasperserver.war.control.JSCommonController"> Add following code in com.jaspersoft.jasperserver.war.control.JSCommonController.java public ModelAndView entry(HttpServletRequest req, HttpServletResponse res) throws ServletException { setupLoginPage(req); return new ModelAndView("modules/login/entry"); } This will load entry.jsp from folder modules/login/ folder for url localhost:8080/jasperserver/entry.html We also have to add this page entry to the filterInvocationInterceptor bean in applicationContext-security-web.xml Modify applicationContext-security.xml as follows: "filterInvocationInterceptor" class="org.springframework.security.intercept.web.FilterSecurityInterceptor"> "authenticationManager"> "authenticationManager"/> "accessDecisionManager"> "httpRequestAccessDecisionManager"/> "objectDefinitionSource"> CONVERT_URL_TO_LOWERCASE_BEFORE_COMPARISON PATTERN_TYPE_APACHE_ANT /entry.html=ROLE_ANONYMOUS,ROLE_USER,ROLE_ADMINISTRATOR /login.html=ROLE_ANONYMOUS,ROLE_USER,ROLE_ADMINISTRATOR /logout.html=ROLE_ANONYMOUS,ROLE_USER,ROLE_ADMINISTRATOR,IS_AUTHENTICATED_FULLY Build the war file again and redeploy it on server. Now you can use http://localhost:8080/jasperserver/entry.html as login page. To change UI of login page customize entry.jsp and pageSpecific.css. Locations of files: entry.jsp :- /jasperserver/jasperserver-war/src/main/webapp/WEB-INF/jsp/modules/login/entry.jsp jasperserver-servlet.xml :- /jasperserver/jasperserver-war/src/main/webapp/WEB-INF/jasperserver-servlet.xml JSCommonController.java :- Physical path: /jasperserver/jasperserver-war-jar/src/main/java/com/jaspersoft/jasperserver/war/control/JSCommonController.java Package Path: com.jaspersoft.jasperserver.war.control/ JSCommonController applicationContext-security-web.xml :- /jasperserver/jasperserver-war/shared-config/applicationContext-security-web.xml
  5. Hi, I want to add multiple login pages to single jasperserver. i have customize the code and added login1.jsp and login2.jsp in moudles/login/ folder. also i have added following code in jasperserver-warsrcmainwebappWEB-INFjasperserver-servlet.xml .............................. and I have also added following code to JSCommonController.java in com.jaspersoft.jasperserver.war.control package. public ModelAndView login1(HttpServletRequest req, HttpServletResponse res) throws ServletException { setupLoginPage(req); return new ModelAndView("modules/login/login"); } public ModelAndView login2(HttpServletRequest req, HttpServletResponse res) throws ServletException { setupLoginPage(req); return new ModelAndView("modules/login/login"); } i deployed server after rebuilting it. but when i enter http://localhost:8080/jasperserver/login1.html it takes me to http://localhost:8080/jasperserver/login.html and after login on this page it takes me to http://localhost:8080/jasperserver/login1.htmlbut when i try to login on this page login event occures succesfully but it keeps me on same page. Anybody know how to add multiple login pages in jasper server?? Please help me out. Thanks.
  6. i used this pattern but it is giving me a problem for whole numbers. for no "12345" it prints "12345." and i want "12345" and for decimal numbers it works fine Thanks for help.
  7. Hello, I want to load URL in report and want to show data about clicks on links in that Page. I have data in DB about click analysis.. Thank you..
×
×
  • Create New...