<jsp:useBean…> VS <bean:define…> in struts

Posted on 2005-05-05
Last Modified: 2008-03-04

I am wondering differences between <jsp:useBean…> and <bean:define…> in struts.

Question by:dkim18
    LVL 29

    Accepted Solution

    From the docs:

    The <bean:define> tag differs from <jsp:useBean> in several ways, including:

        * Unconditionally creates (or replaces) a bean under the specified identifier.
        * Can create a bean with the value returned by a property getter of a different bean (including properties referenced with a nested and/or indexed property name).
        * Can create a bean whose contents is a literal string (or the result of a runtime expression) specified by the value attribute.
        * Does not support nested content (such as <jsp:setProperty> tags) that are only executed if a bean was actually created.
    LVL 16

    Expert Comment


    Why bloodredsun always be the first to answer? You have a lot of points already....just kidding :) hehehe.

    However, thx bloodredsun to answer all my questions. I truly appreciate it :). You are truly excellent J2EE programmer.

    LVL 29

    Expert Comment

    >>thx bloodredsun to answer all my questions. I truly appreciate it :). You are truly excellent J2EE programmer.

    lol Dave, if you want to see  points machines look at arie and mick (aozarov and objects), they are guys who really know J2EE. Compared to them I'm just an amateur...

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Suggested Solutions

    If you're not part of the solution, you're part of the problem.   Tips on how to secure IoT devices, even the dumbest ones, so they can't be used as part of a DDoS botnet.  Use PRTG Network Monitor as one of the building blocks, to detect unusual…
    Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
    It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
    Need more eyes on your posted question? Go ahead and follow the quick steps in this video to learn how to Request Attention to your question. *Log into your Experts Exchange account *Find the question you want to Request Attention for *Go to the e…

    758 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

    11 Experts available now in Live!

    Get 1:1 Help Now