posted 14 years ago
thank you Manu dv for your reply
I’ve two jsp pages attendReport.jsp and printAttendReport.jsp
attendReport.jsp contains inputs for attend duration and employee id and command button “view” to view attendance data entered employee during entered duration inside the same page(this work very good)
the problem is the same page includes another command button “print” its job is to get the same data but view them in the second page printAttendReport.jsp in another window in order to print the data in some suitable format , but the print button opens attendReport.jsp instead of printAttendReport.jsp and does not hold the inputs else if I set <managed-bean-scope> to session not request which cause caching data , please help me if you to solve this problem
and here the related lines of code
// here is managed bean code
attendReport.jsp
/the form tag appear in running source as <form id="attendReportForm" method="post" action="/newdiwan/faces/attend/attendReport.jsp" enctype="application/x-www-form-urlencoded" >
i.e. it always submit to attendReport.jsp page
/
/ some inputs and outputs /
//it works good/
// some outputs to view data /
//this has two problems 1)submit to attendReport.jsp not printAttendReport.jsp which I want to go to.
//2)does not get the inputs but return the default values only /
I use libraries { jsf-api.jar , jsf-impl.jar , jstl-1.1.0.jar and tomahawk-1.1.6.jar } and deploy on tomcat 6.0
I’m sorry for the prolongation, please help me if you can