Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8997129
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T23:50:48+00:00 2026-06-15T23:50:48+00:00

I am new to struts , and wanna know why do we refer struts

  • 0

I am new to struts , and wanna know why do we refer struts tags over previous html tags when they both seem to be doing the same thing ,
what is the advantage of using struts tags over html tags .
like

<s:form action="myAction">
    <s:textfield name="username"></s:textfield>
    <s:textfield name="password"></s:textfield>
    <s:submit name="submit" value="submit"></s:submit>
</s:form>

<form action="myAction" method="post">
    <input type="text" name="username"/>
    <input type="text" name="password"/>
    <input type="submit" name="submit"/>
</form>

I have googled it , but have not got any satisfying answer , help is appreciated in advance

I know it adds some extra things like labels or something , that is fine with me , but what i wanna know if it does anything with the performance or anything specifically to the request object , anything other just avoiding the extra typing for the programmer .

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T23:50:49+00:00Added an answer on June 15, 2026 at 11:50 pm

    There are different types of Struts 2 tags.

    Form tags in particular are beneficial, but their functionality depends entire on the Struts 2 theme being used. The "simple" theme provides almost no benefit beyond standard HTML tags. The default "xhtml" theme emits form table rows and some styling. Custom themes implement whatever functionality you desire. Regardless of the theme the underlying JSP source never needs to change.

    The primary advantages being:

    • Validation error messages
    • Form presentation/styling
    • Framework integration (e.g., value automatically filled from action)

    There are also a set of Dojo (very deprecated) and jQuery tags that wrap up a fair amount of JavaScript functionality in custom tags, which makes simple dynamic functionality very simple.

    There are also non-view tags, like <s:iterator> etc. Some of their functionality is a duplicate of JSTL (<c:forEach> in the case of the iterator tag). There aren’t a huge number of benefits to using the S2 tags in this case when functionality overlaps.

    Some tags have no JSTL analog, like <s:merge> or <s:sort>. , Whether or not that’s functionality suitable for the view layer is a different discussion. Some provide integration into other aspects of Struts 2, like I18N (e.g., <s:text>). Some understand about Struts 2 configuration (e.g., <s:url>).

    The purpose of any custom tag is to simplify view layer programming (e.g., JSP). S2 provides a lot of tags to help with that. Some are simple and generic (non-UI tags), while the UI tags are implemented using FreeMarker and are heavily customizable.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am new to struts. I dont know exactly if my solution for my
I am new to struts and as far as i know that .do extension
I am new to Struts and hibernate. For understanding it i tried doing a
I'm trying to start a new struts 2 project using maven (struts2 blank archetype)
I am new to struts 2.I am designing a page in struts 2.I want
I am new to struts. I want to load a list of data in
I am new to struts 2. I am facing problem in filling Select tag
I am new to Struts . I downloaded Struts2 from its website. Now I
I am fairly new to jquery and I am working with jsp and struts
I am new to use session management & I am using struts with MySQL

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.