Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Conversion of html to JSP  RSS feed

 
Venkatesh Sagadevan
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
I have requirement to convert the HTML to JSP ,please give me your suggestion.

purpose:
From the mobile i will get the HTML content and need the change content so need to convert html to JSP.

Regards,
Venkatesh S

 
Tim Cooke
Marshal
Posts: 3871
233
Clojure IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HTML code is valid JSP code so no conversion required.

When you say "need the change content", what exactly do you mean by that?
 
Venkatesh Sagadevan
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Cooke,
as per the requirement, because of administrator only can change the content in server side.

Regards,
Venkatesh S
 
Tim Cooke
Marshal
Posts: 3871
233
Clojure IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What requirement? What content?

Tim
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66201
151
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As pointed out, change the file type from .html to .jsp and, voila, it's now a valid JSP file. But, it doesn't do very much that is interesting at that point. To include dynamic context, you'll need to learn about the EL (Expression Language) and JSTL (JSP Standard Tag Library). Whatever you do, do not succumb to obsolete practices from long ago and start putting Java code in the JSP. That's a big no-no.

I recommend novices to JSP read
  • The Secret Life of JSPs
  • The Front Man


  • Hope that helps.
     
    With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
    • Post Reply Bookmark Topic Watch Topic
    • New Topic
    Boost this thread!