Results 1 to 5 of 5
- 07-15-2008, 01:23 PM #1
Member
- Join Date
- Jul 2008
- Posts
- 6
- Rep Power
- 0
- 07-15-2008, 01:49 PM #2
Member
- Join Date
- Jul 2008
- Location
- chennai
- Posts
- 9
- Rep Power
- 0
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...
- 07-15-2008, 02:19 PM #3
Member
- Join Date
- Jul 2008
- Posts
- 6
- Rep Power
- 0
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.
- 07-15-2008, 02:54 PM #4
Member
- Join Date
- Jul 2008
- Location
- chennai
- Posts
- 9
- Rep Power
- 0
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)
- 01-13-2009, 09:21 AM #5
Member
- Join Date
- Jan 2009
- Posts
- 1
- Rep Power
- 0
Similar Threads
-
Log4j not working properly....
By prakash_dev in forum Advanced JavaReplies: 0Last Post: 03-17-2008, 12:13 PM -
how to display image in jsp page(Struts)
By rama6262 in forum Advanced JavaReplies: 1Last Post: 12-21-2007, 07:50 AM -
how to properly express adding...
By paul in forum New To JavaReplies: 1Last Post: 08-07-2007, 05:08 AM -
Struts, Some API to obtain wide and the high one of an image?
By Eric in forum Web FrameworksReplies: 1Last Post: 06-07-2007, 05:06 AM -
creating an image button when using struts
By yuchuang in forum Web FrameworksReplies: 1Last Post: 05-03-2007, 04:48 PM


LinkBack URL
About LinkBacks

Bookmarks