[Last Call] Learn how to a build a cloud-first strategyRegister Now

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 250
  • Last Modified:

basics of JSp...

first time i am going to make a report from jsp and i want some link about how to create report like in MSWORD ,when in msword we enter a word which is new to dictionary of MSWord it underlines it but it does not print while printing,how can we perform this action...pls help me..500 points now and i will give more points for next four days as i am on this issue for next for days and i have lots of questions as a beginer..help me i am in histeria..
what does following mean in JSP.....or HTML
1)META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1252">
2)<META NAME="Generator" CONTENT="Microsoft Word 97">
3)META NAME="Template" CONTENT="D:\Program Files\Microsoft Office\Office\html.dot">

1 Solution
It sounds like you are trying to program HTML/JSP in word. This is a bad idea for many reasons. You can either progam in a plain text editor like notepad(comes with windows) or TextPad (http://www.textpad.com/) (which are free/shareware) or you cuold buy a proper HTML editor such as Macromedia's Dreamweaver (http://www.macromedia.com/software/dreamweaver/?promoid=home_prod_dw_082403).

I have no idea about what printing from Word has to do with JSP, but you can get around the unrecognised word underlining in WOrd by adding the word to a custom dictionary so that wor does recognise it (right-click/Add to Dictionary).

Your last question about meta tags.
The META tag is used to convey meta-information about the document, but can also be used to specify headers for the document. You can use either HTTP-EQUIV or NAME to name the meta-information, but CONTENT must be used in both cases. By using HTTP-EQUIV, a server should use the name indicated as a header, with the specified CONTENT as its value.

1)META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1252">
This header tells the browser what the content is in this download. In this case it is "text/html". This is the one used for html, but it could equally be "text/csv" for a csv file or "application/vnd.ms-excel" for an excel document

2)<META NAME="Generator" CONTENT="Microsoft Word 97">
This indicates the program used to generate this document. It is often the name of the HTML editor used.

3)META NAME="Template" CONTENT="D:\Program Files\Microsoft Office\Office\html.dot">
An extra header added by word when making HTML files from a word document. Not requred by the browser.
DilrajSingh123Author Commented:
Hi bloodredsun ,
I am given a job on JSP formatting,We are making a report in some format specified by customer and now he wants some changes..i never did JSP before...how can i write one JSP page,for example, that will give me output as two pages if the content (according to bugger fonts) does not fit in one page...do you understand what is my problem,i can give more information if you think u need..pls help me from this problem..
>>how can i write one JSP page,for example, that will give me output as two pages if the content (according to bugger fonts) does not fit in one page

use javascript

I'll need more info on anything else. You need to ask some specific questions as at the moment you are just asking vague ones.
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

If you really want MS word format as output, one way you can do is to convert your hmtl/text format file to word using OpenOffice filter (you need to install openoffice).
Any more information on this?
Have you tried to save your MSWORD Doc as web page format. And try to create another file like this:


<%@include file="file_msword_name.mht"%>

And save something.jsp. See whether it works.

Or Simply just put the msword, which has been save as .mht, file to the web directory.

I hope it helps.


Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now