I am a very very new to this language and am confused.
I have a jsp page that I put an input box.
I want to take that input value and pass it to another page which will be used as a crystal reports parameter.
I am able to go to a second jsp page but I haven't been able to pass the value.
Does anyone have any recommendations on what to read or code suggestions?
I have:
I enter data on the inputbox and click submit which takes me to the next page ok but I don't know how to take the value from one page and display it on another page.
Any suggestions/help are definitely appreciated. I have spent 3 days just getting this far.
thanks
lhuffst
I have a jsp page that I put an input box.
I want to take that input value and pass it to another page which will be used as a crystal reports parameter.
I am able to go to a second jsp page but I haven't been able to pass the value.
Does anyone have any recommendations on what to read or code suggestions?
I have:
Code:
Dataform.jsp
Enter Employee Name
<h:inputText id="empName" styleClass="inputText" ></h:inputText>
<br>
<br>
View/Print Report </hx:jspPanel>
<hx:commandExButton type="submit" value="Submit" id="btnReport" styleClass="commandExButton" style="background-color: #eaffff"
action="#pc_DataForm.goToReportTest}">
</hx:commandExButton>
ON Dataform.java
public String goToReportTest(){
return "REPORTTEST";
}
Any suggestions/help are definitely appreciated. I have spent 3 days just getting this far.
thanks
lhuffst