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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

file name in dialog

Status
Not open for further replies.

javaone

Programmer
Nov 18, 2002
1
GB
I am wanting to open an excell file from the Struts action class

My code in the Sruts action class looks as follows:
ActionForward af = new ActionForward("/userdata/test.xls");

It opens a dialog box.

My problem is the name of the file(instead of test.xls) is the name of the .do function called from my JSP to run this action.

 
Set ActionForward to redirect instead.

i.e.

ActionForward af = new ActionForward("/userdata/test.xls", true);


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top