Struts input tag

Posted on 2007-09-28
Last Modified: 2013-12-15
Purpose of struts input tag
Question by:iharsh

    Author Comment

    Please let me know in what cases should I use struts input tag in struts-config.xml, its benefits
    Also in what cases I should NOT use the input tag.
    LVL 14

    Accepted Solution

    The struts "input" attribute is used together with "validate" attribute on the <action>.
    The "validate" attribute is to enable/disable struts validator and the "input" is the page to display when struts validator fail.

    <action path="/sample_insert" ... validate="true" input="form1.jsp">
        <forward name="success" path="confirm1.jsp"/>
    When user submit the page to action "sample_insert", struts validation will perform, if error occurred, it will forward to "form1.jsp". otherwise struts will continue invoke the execute() method on the action.

    Boon Leng
    LVL 1

    Expert Comment

    Forced accept.

    EE Admin

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Better Security Awareness With Threat Intelligence

    See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

    Suggested Solutions

    Here is a helpful source code for C++ Builder programmers that allows you to manage and manipulate HTML content from C++ code, while also handling HTML events like onclick, onmouseover, ... Some objects defined and used in this source include: …
    Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
    The viewer will learn how to implement Singleton Design Pattern in Java.
    The viewer will learn how to use and create new code templates in NetBeans IDE 8.0 for Windows.

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now