Ankit Garg wrote:
ram kumar wrote:The pop-up thing will work with this servlet solution (I think you want the pop-up to appear as it is the correct behavior)...
Yes ! Isint it right !
Ankit Garg wrote:Just read this to find out what you are doing wrong.
The pop-up thing will work with this servlet solution (I think you want the pop-up to appear as it is the correct behavior)...
Ankit Garg wrote:Ram you are still doing it wrong. You need to do something like this in a Servlet
Ankit Garg wrote:Ram what are you doing. You have added some HTML to that page, then later on you are creating a excel sheet in your JSP
. You should separate the two things. Also when you say that the excel file is empty, what do you mean by that?? Do you mean to say that the excel file saved at C:\excelExample.xls??
K. Tsang wrote:Looks ok to me. As long as you get the "expected" output once the Properties is loaded then you should be fine.
Well since you are loading from within jar, but if you are generating on the fly - just to get your head think, what happens if the properties file has read/write access permission problems.
K. Tsang wrote:
ram kumar wrote:Later i will start using it in all my logics
Hey Ram, honestly if you want to hard-code the path to the properties file bundle with jar, why don't you just generate it on the fly. Exactly what is in this properties file? Enter these things as properties -D when running java can be another option.
If the really want to bundle the ClassLoader.getResource(...) should work as is. Although the path of the properties file inside the jar needs to be fixed. And I don't suggest you put that file in the default package. Suppose your package structure is:
Put the file in say toppackage then you use "ClassLoader.getResource("toppackage/abc.properties");"
ram kumar wrote:
Gamini Sirisena wrote:Try here first...
Is that possible to include that line of code to read as resourceBundle.
Later i will start using it in all my logics
Gamini Sirisena wrote:Try here first...