Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Linux Archive
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-15-2008, 03:23 PM
Member
 
Join Date: Jul 2008
Posts: 6
ganesan is on a distinguished road
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.
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 07-15-2008, 03:49 PM
Member
 
Join Date: Jul 2008
Location: chennai
Posts: 9
Satheeshhere is on a distinguished road
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...
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 07-15-2008, 04:19 PM
Member
 
Join Date: Jul 2008
Posts: 6
ganesan is on a distinguished road
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.
Bookmark Post in Technorati
Reply With Quote
  #4 (permalink)  
Old 07-15-2008, 04:54 PM
Member
 
Join Date: Jul 2008
Location: chennai
Posts: 9
Satheeshhere is on a distinguished road
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)
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Log4j not working properly.... prakash_dev Advanced Java 0 03-17-2008 02:13 PM
how to display image in jsp page(Struts) rama6262 Advanced Java 1 12-21-2007 09:50 AM
how to properly express adding... paul New To Java 1 08-07-2007 07:08 AM
Struts, Some API to obtain wide and the high one of an image? Eric Web Frameworks 1 06-07-2007 07:06 AM
creating an image button when using struts yuchuang Web Frameworks 1 05-03-2007 06:48 PM


All times are GMT +3. The time now is 08:33 PM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org