Results 1 to 5 of 5
  1. #1
    ganesan is offline Member
    Join Date
    Jul 2008
    Posts
    6
    Rep Power
    0

    Default Image not showed properly in struts

    Hi friends,

    In Struts,

    How to show the images(*.gif) files in JSP Pages.
    and aslo How to set the image as button instead of submit button?
    here how to call the submit action?


    can you any one help me?

    regards
    Ganesan N.

  2. #2
    Satheeshhere is offline Member
    Join Date
    Jul 2008
    Location
    chennai
    Posts
    9
    Rep Power
    0

    Default

    Hi ganesh,

    u can use jstl <html:img> tag to display image on jsp page

    and instead submit button u can use <html:link action=""> with img tag..

    For Example:

    <html:link action="/action.do" >

    <html:img width="30" src="g.jpg"/>

    </html:link>

    Satheesh...

  3. #3
    ganesan is offline Member
    Join Date
    Jul 2008
    Posts
    6
    Rep Power
    0

    Default

    Hi Satheesh,

    Thanks for you valuable reply.
    Action properly worked. I have given the src path correctly but I cant view the image at browser window why?.


    for eg
    <html:link action="/Newuser.do" ><html:img width="30" src="images/submit.jpg"/></html:link>

    i put the static file submit.jpg in this given path images/submit.jpg


    Regards
    Ganesan N.

  4. #4
    Satheeshhere is offline Member
    Join Date
    Jul 2008
    Location
    chennai
    Posts
    9
    Rep Power
    0

    Default

    Hi ganesh,

    welcome:)
    thing is you jus confirm that whether Both ur images folder and jsp page are in same directory.
    then it wil be displayed properly.


    ( And thx 4 ur reply for my STRUTS VALIDATOR FRAMEWORK FORUM but
    stil not working go thro that forum again if u find time)

  5. #5
    Join Date
    Jan 2009
    Posts
    1
    Rep Power
    0

    Default Wanna to dowload XRumer 5.0 shared!

    Subj.
    Anybody have?

    I'ts better, if you have XRumer 5.04...
    Gimme link

    Thanks.

Similar Threads

  1. Log4j not working properly....
    By prakash_dev in forum Advanced Java
    Replies: 0
    Last Post: 03-17-2008, 12:13 PM
  2. how to display image in jsp page(Struts)
    By rama6262 in forum Advanced Java
    Replies: 1
    Last Post: 12-21-2007, 07:50 AM
  3. how to properly express adding...
    By paul in forum New To Java
    Replies: 1
    Last Post: 08-07-2007, 05:08 AM
  4. Replies: 1
    Last Post: 06-07-2007, 05:06 AM
  5. creating an image button when using struts
    By yuchuang in forum Web Frameworks
    Replies: 1
    Last Post: 05-03-2007, 04:48 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •