wengjianqing Posted September 16, 2008 Share Posted September 16, 2008 I have used sub-reports to get a multi-panel look and feel for a report that fits on a single screen,but i don't know how show this report on the user's home page ?somebody help me! Post Edited by Lucian Chiriţă at 09/22/08 07:58 Link to comment Share on other sites More sharing options...
lucianc Posted September 22, 2008 Share Posted September 22, 2008 Edit jasperserver/WEB-INF/jasperserver-servlet.xml, search for "homePageByRole" and change the ROLE_USER or ROLE_ADMINISTRATOR home page to flow.html?_flowId=viewReportFlow&reportUnit=..URI of the dashboard report.. Regards,Lucian Link to comment Share on other sites More sharing options...
wengjianqing Posted September 23, 2008 Author Share Posted September 23, 2008 luciancWrote: Edit jasperserver/WEB-INF/jasperserver-servlet.xml, search for "homePageByRole" and change the ROLE_USER or ROLE_ADMINISTRATOR home page to flow.html?_flowId=viewReportFlow&reportUnit=..URI of the dashboard report.. Regards, Lucian Hi,luciancI have changed the jasperserver-servlet.xml, but when Start JasperServer, got this exception: org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 96 in XML document from ServletContext resource [/WEB-INF/jasperserver-servlet.xml] is invalid; nested exception is org.xml.sax.SAXParseException: The reference to entity "reportUnit" must end with the ';' delimiter.I used the URI is " /sysconfigure/rwerewrw&standAlone=true&ParentFolderUri=/sysconfigure". "rwerewrw" is the name of report.Maybe, this uri is wrong!So,how can i get the URI of the dashboard report?Thanks in advance!Code: <property name="homePageByRole"> <list> <value>ROLE_ADMINISTRATOR|redirect:/flow.html?_flowId=viewReportFlow&reportUnit=/sysconfigure/rwerewrw&standAlone=true&ParentFolderUri=/sysconfigure</value> <value>ROLE_USER|redirect:/flow.html?_flowId=viewReportFlow&reportUnit=/sysconfigure/rwerewrw&standAlone=true&ParentFolderUri=/sysconfigure</value> </list> </property> Link to comment Share on other sites More sharing options...
wengjianqing Posted September 23, 2008 Author Share Posted September 23, 2008 luciancWrote: Edit jasperserver/WEB-INF/jasperserver-servlet.xml, search for "homePageByRole" and change the ROLE_USER or ROLE_ADMINISTRATOR home page to flow.html?_flowId=viewReportFlow&reportUnit=..URI of the dashboard report.. Regards, Lucian Hi,luciancI have changed the jasperserver-servlet.xml, but when Start JasperServer, got this exception: org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 96 in XML document from ServletContext resource [/WEB-INF/jasperserver-servlet.xml] is invalid; nested exception is org.xml.sax.SAXParseException: The reference to entity "reportUnit" must end with the ';' delimiter. I used the URI is " /sysconfigure/rwerewrw&standAlone=true&ParentFolderUri=/sysconfigure"."rwerewrw" is the name of report.Maybe, this uri is wrong!So,how can i get the URI of the dashboard report?Thanks in advance!Code: <property name="homePageByRole"> <list> <value>ROLE_ADMINISTRATOR|redirect:/flow.html?_flowId=viewReportFlow&reportUnit=/sysconfigure/rwerewrw&standAlone=true&ParentFolderUri=/sysconfigure</value> <value>ROLE_USER|redirect:/flow.html?_flowId=viewReportFlow&reportUnit=/sysconfigure/rwerewrw&standAlone=true&ParentFolderUri=/sysconfigure</value> </list> </property> Link to comment Share on other sites More sharing options...
lucianc Posted September 23, 2008 Share Posted September 23, 2008 This is probably caused by "&" characters in the URIs. Try to either encode them as "&", or put the URIs into <![CDATA[..]]> sections.Regards,Lucian Link to comment Share on other sites More sharing options...
wengjianqing Posted September 24, 2008 Author Share Posted September 24, 2008 thanks! Link to comment Share on other sites More sharing options...
yashdeep Posted October 6, 2008 Share Posted October 6, 2008 Hi All! I made the changes the jasperserver-servlet.xml inorder to see my Own dashboard after the use login............... but still i am not able to my reports/dashboard after user login.Should i need to make some config. changes in another files too.... Link to comment Share on other sites More sharing options...
swood Posted October 30, 2008 Share Posted October 30, 2008 Could you explain again:you can see your own dashbaord after changing jasperserver-servlet.xml, "but still i am not able to my reports/dashboard after user login" ShermanJaspersoft Link to comment Share on other sites More sharing options...
dariogambi Posted July 4, 2017 Share Posted July 4, 2017 CDATA worked for me thx ! This is my changement an it works. For those who are driving crazy in finding the solution <bean id="homePageByRole" class="java.util.ArrayList"> <constructor-arg index="0" type="java.util.Collection"> <list> <value>ROLE_ADMINISTRATOR|redirect:/flow.html?_flowId=searchFlow</value><!-- <value>ROLE_USER|redirect:/flow.html?_flowId=searchFlow</value> --> <value>ROLE_USER|redirect:<![CDATA[flow.html?_flowId=viewReportFlow&_flowId=viewReportFlow&ParentFolderUri=%2F&reportUnit=%2F$ </list> </constructor-arg> </bean> Link to comment Share on other sites More sharing options...
dariogambi Posted July 4, 2017 Share Posted July 4, 2017 CDATA worked for me thx ! This is my changement an it works. For those who are driving crazy in finding the solution <bean id="homePageByRole" class="java.util.ArrayList"> <constructor-arg index="0" type="java.util.Collection"> <list> <value>ROLE_ADMINISTRATOR|redirect:/flow.html?_flowId=searchFlow</value><!-- <value>ROLE_USER|redirect:/flow.html?_flowId=searchFlow</value> --> <value>ROLE_USER|redirect:<![CDATA[flow.html?_flowId=viewReportFlow&_flowId=viewReportFlow&ParentFolderUri=%2F&reportUnit=%2F$ </list> </constructor-arg> </bean> 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