Inserting a Div element directly into JSP

Discussion in 'Java' started by Zeba, Sep 25, 2007.

  1. Zeba

    Zeba Guest

    Hi,

    I'm using jsp to render a large part of my page. However, i also need
    to use a 'Component' that is a bit of complex standardized code being
    generated through Java. This 'component' is a DOM element( in my case,
    a Div ). I have a java function that returns this DOM element. How can
    I actually insert this element right into my jsp/html by calling that
    java function?

    Please reply soon ! Thanks !!
     
    Zeba, Sep 25, 2007
    #1
    1. Advertising

  2. Zeba

    Lew Guest

    Zeba wrote:
    > I'm using jsp [sic] to render a large part of my page. However, i [sic] also need
    > to use a 'Component' that is a bit of complex standardized code being
    > generated through Java. This 'component' is a DOM element( in my case,
    > a Div ). I have a java [sic] function that returns this DOM element. How can
    > I actually insert this element right into my jsp [sic] /html [sic] by calling that
    > java [sic] function?
    >
    > Please reply soon ! Thanks !!


    Newsgroups are not for those in a hurry.

    I'd try first to <jsp:include> it, generating the <div> in a JSP or .java servlet.

    You can also write a custom tag to do it, which is likely more compatible with
    your current approach.

    --
    Lew
     
    Lew, Sep 25, 2007
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Anand
    Replies:
    4
    Views:
    441
    Fredrik Lundh
    Sep 26, 2007
  2. Replies:
    1
    Views:
    414
    sengsational
    Oct 13, 2007
  3. K Viltersten

    <div ... /> and <div ...></div>

    K Viltersten, Mar 30, 2009, in forum: ASP .Net
    Replies:
    4
    Views:
    814
  4. CRPietschmann
    Replies:
    1
    Views:
    268
    marss
    Apr 28, 2006
  5. ddolheguy
    Replies:
    2
    Views:
    103
    James Black
    May 26, 2006
Loading...

Share This Page