Advanced Customization > Business Logic Customization > Report Generation > Reporting Input Page Customization > Solution > Procedure – Specifying a Windchill JSP Input Page
  
Procedure – Specifying a Windchill JSP Input Page
1. Create a Windchill JSP page, <WindchillHome>/codebase/wtcore/jsp/<MyInputPagePackage>/<MyInputPage>.jsp.
The JSP specified an input field for “param1” with default value “default1” and a pre-specified value, “value2” that is passed as a hidden input field for “param2”. This contrived example does not do any meaningful programmatic manipulation of the parameters, input fields, or values. It only demonstrates the basic mechanism for specifying parameters to a report. The details of JSP syntax and programming are beyond the scope of this document.
<%@page contentType="text/html"
%><%@page pageEncoding="UTF-8"

%><%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"
%><%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"

%><fmt:requestEncoding value="UTF-8"
/>

<html>
<head>
<title>My Input Page</title>
</head>
<body>
<h2>My Input Page</h2>
<form>
<%
String paramName = “param1”;
String defaultInputValue = “default1”;
%>
Name: <input type="text" name="<c:out value='<%=paramName%>'/>"
value="<c:out value='<%=defaultInputValue%>'/>" size="60"/><br
/>
<blockquote><input type="submit" value='Execute
Report'/></blockquote>

<%
String hiddenParamName = “param2”;
String hiddenValue = “value2”;
%>

<input type="hidden" name="<c:out
value='<%=hiddenParamName%>'/>" value="<c:out
value='<%=hidenValue%>'/>"/>

%>
</form>
</body>
</html>
2. Update <MyReport> to specify the input page. Navigate to the Windchill “Site > Reports” page, select the edit action for <MyReport>.
3. Enter “wtcore/jsp/<MyInputPagePackage>/<MyInputPage>.jsp” into the “Input Page” text field and click “OK”.
4. Verify the report in Windchill. Navigate to the “Home > Reports” page and Select the “View Report” action for the <MyReport> object.