The moose likes Struts and the fly likes why cant we use normal html tags instead of struts html when using struts framework??? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Application Frameworks » Struts
Reply Bookmark "why cant we use normal html tags instead of struts html when using struts framework???" Watch "why cant we use normal html tags instead of struts html when using struts framework???" New topic
Author

why cant we use normal html tags instead of struts html when using struts framework???

Harishwar Madhya
Greenhorn

Joined: Sep 01, 2010
Posts: 14
I have a small doubt.. In interviews too they have been asked this question many times.. Could you please tell me "why cant we just use normal html tags instead of struts tags while using Struts framework??" what makes the difference of struts html and normal html tags??

waiting for quick reply...

Harishwar
Ankit Garg
Saloon Keeper

Joined: Aug 03, 2008
Posts: 9023

You can use normal HTML tags like <input type="text" /> in JSP pages when you use Struts. If you use the struts tags, you get certain advantages like validation messages, automatic form fill-up etc...


Javaranch SCJP FAQ | SCWCD Links
Harishwar Madhya
Greenhorn

Joined: Sep 01, 2010
Posts: 14
Ankit Garg wrote:You can use normal HTML tags like <input type="text" /> in JSP pages when you use Struts. If you use the struts tags, you get certain advantages like validation messages, automatic form fill-up etc...


Thnx Ankit for replying me.. Yeah I agree with your answer.. but i have a small doubt.. whats the diffference between <form> and <html:form> ?? why cant we just use <form> instead of <html:form>? and why cant we use normally <input type="text"> instead of using <html:text> ??


waiting for quick reply..



Harishwar
Harishwar Madhya
Greenhorn

Joined: Sep 01, 2010
Posts: 14
waiting for some replies..
 
 
subject: why cant we use normal html tags instead of struts html when using struts framework???
 
developer file tools