Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

where do you put ? 1

Status
Not open for further replies.

Lhuffst

Programmer
Jun 23, 2003
503
US
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:
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";
 }
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
 
This forum is for JavaScript questions.

Your code is not javascript - and it isn't simple JSP either. With the tags like <h: and <hx: I would guess Hibernate. You will have more luck getting an answer in a JSP or Hibernate forum.

Good Luck!

Einstein47 (Starbase47.com)
“PI is like love - simple, natural, irrational, endless, and very important“
 
Thanks. I wasn't sure what I was trying and/or where I should be. I was just going off samples that I had been given from coworkers.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top