• Post Reply Bookmark Topic Watch Topic
  • New Topic

can I assign HTML tag to variable in JSP?

 
bat ken
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello

Can I assign HTML tag to variable and pass to my bean file? I have created a sendMail bean, and one of my company system will pass in the data to sendMail bean and send to recipient. All in text file. I would like to make it look beter which is in HTML format.possible for me to design the layout + passing in the data and then I assign this whole html tag+ data to 1 variable then only pass to my bean file?

thank you.

regards,
bk
 
Chetan Parekh
Ranch Hand
Posts: 3640
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It is possible to assign HTML tags to String varible.

Create a jsp file using following code and run it.
 
joe woods
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You also make sure that the content type is"TEXT/HTML"
otherwise,the letter should't be HTML FORMAT
 
bat ken
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thank you chetan and joeee
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!