aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes New Web Application using HTML5 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "New Web Application using HTML5" Watch "New Web Application using HTML5" New topic
Author

New Web Application using HTML5

R Patel
Greenhorn

Joined: May 24, 2010
Posts: 13
Hi All,

I have a question, how to use HTML5 to create new web application?. I have created JSP/JSF and also simple Servlet/JSP based web applications.

Can anyone please guide me if i want to create web application with HTML5 and Java as my back-end (service layer), then how should i proceed?

What i am guessing is HTML5 has some more extra HTML tags, but can it direct interact with Java class (like in JSF -- front-end JSP interact with Controller class)?

If anyone has worked on this, then please guide me.

Thanks in advance for your valueable time and help.

Regards,
Ronak.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42282
    
  64
HTML works on the client side, whereas Java is used on the server, so there is no direct interaction between them.

The SpecificationUrls link in my signature will lead you to the various specification working drafts that may end up as part of HTML 5. Note that different browsers support different parts of those, so be prepared for a lot of cross-browser testing.


Ping & DNS - my free Android networking tools app
R Patel
Greenhorn

Joined: May 24, 2010
Posts: 13
Hi Dittmer,

Thanks for your reply.

I got the scenario as per your reply. Is there any framework support HTML5. I mean when we talk in terms of web-application created using JSP/JSF or with Normal Servlet/JSP, finally at client side it gets converted in HTML.

So is it possible same way web-application created with JSF/JSP generate(or converted) finally in HTML 5 ? Is there any other framework like JSF (or JSF itself) provide any such feature which can support new HTML5 tags ?

As per my knowledge only HTML can not interact with back-end Java class. It has to implemented with JSP/Servlet or AJAX technology (Not sure for HTML 5).

hope I have described properly.

Thanks again.

-Ronak
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42282
    
  64
I think you misunderstand how HTML works. It's just text that gets generated at the server side, and then sent to the client for interpretation. You can use JSP (and JSF, or any other framework) to create any HTML you want, but that has nothing to do with what actual version of HTML is targeted - it's all just text to the server.
R Patel
Greenhorn

Joined: May 24, 2010
Posts: 13
I got it. I am new for HTML 5, so i was expecting too much from it. I was thinking it will have kind of plugin/scripting so it can interact with back-end classes.

Now i am clear, its same as HTML but having some more extra tags. And we can develope it with JSP/JSF or any other technology, which finally generate HTML 5 text. which browser display as UI.

So I can use same way JSP/JSF and can generate the UI in HTML 5, I may need to find some more on JSF tag library and all, which supports HTML 5 tags.

One more help, if you have any idea about any documentation for generating HTML 5 using JSP/JSF technology then can you please suggest me? or any other documentation which can guide me.

Thanks again for your valueable feedback.

-Ronak
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42282
    
  64
if you have any idea about any documentation for generating HTML 5 using JSP/JSF technology then can you please suggest me? or any other documentation which can guide me.

Again, as far as the server is concerned, it's just text that gets generated - any existing web framework or templating library can already do that. As to what's possible on the client, see the specifications I pointed you to; a web search will find lots of introductory articles on those as well.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: New Web Application using HTML5