Hi I have to print 2 reports in 2 diff formats so for what i have created is 2 textfiles compirsing of 2 different HTMls , which effectively means that there are 2 diff designs. I have also hardcoded jsp variables in the textfile only ... now There is my jsp which reads from the textfile1 (the frist design) Also it makes a connection to the db and extracts the values to be printed . e.g Sting Idno = ""; String name=""; String sex=""; I make a connection and get the values , store them in theses varibles. Now what i wish to do is to read the text file , get the html content( with the hardcoded jsp variables which are same as the ones declared in the jsp) So the net effect would be that i get a report format and my jsp variables just overwrite the ones extraxted from the text file which also mean that i did not have to wite the html part for my report. Can anybody help me achieving this task. I hope i am clear enough . Thanks in advance
Hope that helps you a bit, sorry if this reply seems a bit hurried. Damien
Joined: Jan 12, 2001
Thanks I guess i found an alternative of reading from files ... Why not make diff methods and call the class in the jsp ... what that class will contain would be 4 different methods for generating 4 diff types of report formats. The method would return to me a String comprising of the html i want ( report format). Whatever i shall pass to the method would be printed. i tried it and it worked the way i wasnted it to work Thanks anyways .