RE: [OT] Re: Image not getting displayed !
Hi Folks, I think it is nothing to do with server. Have you used any kind of filter patterns which excludes this gif files to serve on request? Are you getting my point?? - Dharmesh Patel -Original Message- From: Jitendra Kumar [mailto:[EMAIL PROTECTED] Sent: Monday, February 06, 2006 11:42 AM To: 'Struts Users Mailing List' Subject: RE: [OT] Re: Image not getting displayed ! Thanx Max ! (Wow Doesn't I sound poetic) Appreciate your effort to reply to my mail. I have used all the possible permutations/combinations for the image path. So there is no possibility of using a wrong root. I also tried to type the URL of the image directly to the browser. I get this error: HTTP Status 404 - /CMSystem/Webroot/images/struts-power.gif description The requested resource (/CMSystem/Webroot/images/struts-power.gif) is not available. Same error comes for all the paths It seems that there is some other configuration error. Do I need to add some lines in struts-config ??? Regards, Jeet -Original Message- From: Max Cooper [mailto:[EMAIL PROTECTED] Sent: Saturday, February 04, 2006 7:11 PM To: Struts Users Mailing List Subject: RE: [OT] Re: Image not getting displayed ! There are some useful browser plugins for finding (and correcting, based on the info they help you obtain) broken image references. For example, using Firefox with the Web Developer plugin, you can use Find Broken Images. 1. Type stuff into your browser address bar until you know what the full URL for the image *should* be. 2. Look at the source of your web page (View Source in browser) with the broken image reference and see what the img src is. It will probably start with / (a site-root relative reference). Browsers are completely unaware of webapp context paths and so will always evaluate the URL relative to the site root (e.g. http://your.server.com/ and not http://your.server.com/contextPath/). 3. Do stuff to make #2 look like #1 (or more likely a site-root-relative version of #1 -- Struts will add the contextPath for you if you use page="/path/to/image"). :-) Based on "The context is CMSystem folder" and "CMSystem/WebRoot/images/", I would expect that you need something like this: (You might need module="", too, but I can't remember.) which will become the following plain HTML when the JSP executes: (Is CMSystem really the contextPath, or is your app really rooted at WebRoot? Be careful not to confuse the contextPath with something in your development file tree -- they aren't the same thing. It seems like your webapp is probably rooted in WebRoot, in which case page="/images/..." is what you need.) -Max On Fri, 2006-02-03 at 10:23 +0530, Jitendra Kumar wrote: > I will try to be clearer this time !! > > I am developing a Struts project using myeclipse IDE. In this I have > developed a JSP page using struts tags. I want to insert a picture on > this page. For doing this I have used these two options: > > 1. > 2. /> > > The directory structure of my application is > CMSystem/WebRoot/images/... > CMSystem/WebRoot/WEB-INF/... > > The context is CMSystem folder. > > But, none of the above is showing the image on viewing in browser. I > am using JBOss 3.2.5 > > Please let me know what mistake I am doing. > > > -Original Message- > From: Dave Newton [mailto:[EMAIL PROTECTED] > Sent: Thursday, February 02, 2006 8:51 PM > To: Struts Users Mailing List > Subject: [OT] Re: Image not getting displayed ! > > > Jitendra Kumar wrote: > > I am using in myeclipse. > > > > In Design view the image is showing by when I view it in browser, > > the > > image doesn't show. Please let me know the reason. > > > I'm not sure how this is Struts-related. > > Even if it were, as you have provided essentially zero information > this will be difficult to diagnose. > > Dave > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] Re: Image not getting displayed !
Thanx Max ! (Wow Doesn't I sound poetic) Appreciate your effort to reply to my mail. I have used all the possible permutations/combinations for the image path. So there is no possibility of using a wrong root. I also tried to type the URL of the image directly to the browser. I get this error: HTTP Status 404 - /CMSystem/Webroot/images/struts-power.gif description The requested resource (/CMSystem/Webroot/images/struts-power.gif) is not available. Same error comes for all the paths It seems that there is some other configuration error. Do I need to add some lines in struts-config ??? Regards, Jeet -Original Message- From: Max Cooper [mailto:[EMAIL PROTECTED] Sent: Saturday, February 04, 2006 7:11 PM To: Struts Users Mailing List Subject: RE: [OT] Re: Image not getting displayed ! There are some useful browser plugins for finding (and correcting, based on the info they help you obtain) broken image references. For example, using Firefox with the Web Developer plugin, you can use Find Broken Images. 1. Type stuff into your browser address bar until you know what the full URL for the image *should* be. 2. Look at the source of your web page (View Source in browser) with the broken image reference and see what the img src is. It will probably start with / (a site-root relative reference). Browsers are completely unaware of webapp context paths and so will always evaluate the URL relative to the site root (e.g. http://your.server.com/ and not http://your.server.com/contextPath/). 3. Do stuff to make #2 look like #1 (or more likely a site-root-relative version of #1 -- Struts will add the contextPath for you if you use page="/path/to/image"). :-) Based on "The context is CMSystem folder" and "CMSystem/WebRoot/images/", I would expect that you need something like this: (You might need module="", too, but I can't remember.) which will become the following plain HTML when the JSP executes: (Is CMSystem really the contextPath, or is your app really rooted at WebRoot? Be careful not to confuse the contextPath with something in your development file tree -- they aren't the same thing. It seems like your webapp is probably rooted in WebRoot, in which case page="/images/..." is what you need.) -Max On Fri, 2006-02-03 at 10:23 +0530, Jitendra Kumar wrote: > I will try to be clearer this time !! > > I am developing a Struts project using myeclipse IDE. In this I have > developed a JSP page using struts tags. I want to insert a picture on > this page. For doing this I have used these two options: > > 1. > 2. /> > > The directory structure of my application is > CMSystem/WebRoot/images/... > CMSystem/WebRoot/WEB-INF/... > > The context is CMSystem folder. > > But, none of the above is showing the image on viewing in browser. I > am using JBOss 3.2.5 > > Please let me know what mistake I am doing. > > > -Original Message- > From: Dave Newton [mailto:[EMAIL PROTECTED] > Sent: Thursday, February 02, 2006 8:51 PM > To: Struts Users Mailing List > Subject: [OT] Re: Image not getting displayed ! > > > Jitendra Kumar wrote: > > I am using in myeclipse. > > > > In Design view the image is showing by when I view it in browser, > > the > > image doesn't show. Please let me know the reason. > > > I'm not sure how this is Struts-related. > > Even if it were, as you have provided essentially zero information > this will be difficult to diagnose. > > Dave > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] Re: Image not getting displayed !
There are some useful browser plugins for finding (and correcting, based on the info they help you obtain) broken image references. For example, using Firefox with the Web Developer plugin, you can use Find Broken Images. 1. Type stuff into your browser address bar until you know what the full URL for the image *should* be. 2. Look at the source of your web page (View Source in browser) with the broken image reference and see what the img src is. It will probably start with / (a site-root relative reference). Browsers are completely unaware of webapp context paths and so will always evaluate the URL relative to the site root (e.g. http://your.server.com/ and not http://your.server.com/contextPath/). 3. Do stuff to make #2 look like #1 (or more likely a site-root-relative version of #1 -- Struts will add the contextPath for you if you use page="/path/to/image"). :-) Based on "The context is CMSystem folder" and "CMSystem/WebRoot/images/", I would expect that you need something like this: (You might need module="", too, but I can't remember.) which will become the following plain HTML when the JSP executes: (Is CMSystem really the contextPath, or is your app really rooted at WebRoot? Be careful not to confuse the contextPath with something in your development file tree -- they aren't the same thing. It seems like your webapp is probably rooted in WebRoot, in which case page="/images/..." is what you need.) -Max On Fri, 2006-02-03 at 10:23 +0530, Jitendra Kumar wrote: > I will try to be clearer this time !! > > I am developing a Struts project using myeclipse IDE. In this I have > developed a JSP page using struts tags. I want to insert a picture on > this page. For doing this I have used these two options: > > 1. > 2. /> > > The directory structure of my application is > CMSystem/WebRoot/images/... > CMSystem/WebRoot/WEB-INF/... > > The context is CMSystem folder. > > But, none of the above is showing the image on viewing in browser. I am > using JBOss 3.2.5 > > Please let me know what mistake I am doing. > > > -Original Message- > From: Dave Newton [mailto:[EMAIL PROTECTED] > Sent: Thursday, February 02, 2006 8:51 PM > To: Struts Users Mailing List > Subject: [OT] Re: Image not getting displayed ! > > > Jitendra Kumar wrote: > > I am using in myeclipse. > > > > In Design view the image is showing by when I view it in browser, the > > image doesn't show. Please let me know the reason. > > > I'm not sure how this is Struts-related. > > Even if it were, as you have provided essentially zero information this > will be difficult to diagnose. > > Dave > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] Re: Image not getting displayed !
Hi, tag just defines the base directory of the application. This is the corresponding HTML version. http://127.0.0.1:8080/CMSystem/";> I have tried all possible permutations and combinations but nothing works !! :-( Do we need to put in some entry in web.xml or struts-config.xml for allowing .jpg or .gif images to be viewed ?? People Please help !! Jitendra -Original Message- From: Garner, Shawn [mailto:[EMAIL PROTECTED] Sent: Friday, February 03, 2006 9:00 PM To: 'Struts Users Mailing List' Subject: RE: [OT] Re: Image not getting displayed ! Or try the html:base tag. Not sure what it does exactly. Shawn -Original Message- From: Jitendra Kumar [mailto:[EMAIL PROTECTED] Sent: Thursday, February 02, 2006 10:54 PM To: 'Struts Users Mailing List' Subject: RE: [OT] Re: Image not getting displayed ! I will try to be clearer this time !! I am developing a Struts project using myeclipse IDE. In this I have developed a JSP page using struts tags. I want to insert a picture on this page. For doing this I have used these two options: 1. 2. The directory structure of my application is CMSystem/WebRoot/images/... CMSystem/WebRoot/WEB-INF/... The context is CMSystem folder. But, none of the above is showing the image on viewing in browser. I am using JBOss 3.2.5 Please let me know what mistake I am doing. -Original Message- From: Dave Newton [mailto:[EMAIL PROTECTED] Sent: Thursday, February 02, 2006 8:51 PM To: Struts Users Mailing List Subject: [OT] Re: Image not getting displayed ! Jitendra Kumar wrote: > I am using in myeclipse. > > In Design view the image is showing by when I view it in browser, the > image doesn't show. Please let me know the reason. > I'm not sure how this is Struts-related. Even if it were, as you have provided essentially zero information this will be difficult to diagnose. Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This email may contain confidential material. If you were not an intended recipient, Please notify the sender and delete all copies. We may monitor email to and from our network. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] Re: Image not getting displayed !
Or try the html:base tag. Not sure what it does exactly. Shawn -Original Message- From: Jitendra Kumar [mailto:[EMAIL PROTECTED] Sent: Thursday, February 02, 2006 10:54 PM To: 'Struts Users Mailing List' Subject: RE: [OT] Re: Image not getting displayed ! I will try to be clearer this time !! I am developing a Struts project using myeclipse IDE. In this I have developed a JSP page using struts tags. I want to insert a picture on this page. For doing this I have used these two options: 1. 2. The directory structure of my application is CMSystem/WebRoot/images/... CMSystem/WebRoot/WEB-INF/... The context is CMSystem folder. But, none of the above is showing the image on viewing in browser. I am using JBOss 3.2.5 Please let me know what mistake I am doing. -Original Message- From: Dave Newton [mailto:[EMAIL PROTECTED] Sent: Thursday, February 02, 2006 8:51 PM To: Struts Users Mailing List Subject: [OT] Re: Image not getting displayed ! Jitendra Kumar wrote: > I am using in myeclipse. > > In Design view the image is showing by when I view it in browser, the > image doesn't show. Please let me know the reason. > I'm not sure how this is Struts-related. Even if it were, as you have provided essentially zero information this will be difficult to diagnose. Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This email may contain confidential material. If you were not an intended recipient, Please notify the sender and delete all copies. We may monitor email to and from our network. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] Re: Image not getting displayed !
Try Shawn -Original Message- From: Jitendra Kumar [mailto:[EMAIL PROTECTED] Sent: Thursday, February 02, 2006 10:54 PM To: 'Struts Users Mailing List' Subject: RE: [OT] Re: Image not getting displayed ! I will try to be clearer this time !! I am developing a Struts project using myeclipse IDE. In this I have developed a JSP page using struts tags. I want to insert a picture on this page. For doing this I have used these two options: 1. 2. The directory structure of my application is CMSystem/WebRoot/images/... CMSystem/WebRoot/WEB-INF/... The context is CMSystem folder. But, none of the above is showing the image on viewing in browser. I am using JBOss 3.2.5 Please let me know what mistake I am doing. -Original Message- From: Dave Newton [mailto:[EMAIL PROTECTED] Sent: Thursday, February 02, 2006 8:51 PM To: Struts Users Mailing List Subject: [OT] Re: Image not getting displayed ! Jitendra Kumar wrote: > I am using in myeclipse. > > In Design view the image is showing by when I view it in browser, the > image doesn't show. Please let me know the reason. > I'm not sure how this is Struts-related. Even if it were, as you have provided essentially zero information this will be difficult to diagnose. Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This email may contain confidential material. If you were not an intended recipient, Please notify the sender and delete all copies. We may monitor email to and from our network. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] Re: Image not getting displayed !
I will try to be clearer this time !! I am developing a Struts project using myeclipse IDE. In this I have developed a JSP page using struts tags. I want to insert a picture on this page. For doing this I have used these two options: 1. 2. The directory structure of my application is CMSystem/WebRoot/images/... CMSystem/WebRoot/WEB-INF/... The context is CMSystem folder. But, none of the above is showing the image on viewing in browser. I am using JBOss 3.2.5 Please let me know what mistake I am doing. -Original Message- From: Dave Newton [mailto:[EMAIL PROTECTED] Sent: Thursday, February 02, 2006 8:51 PM To: Struts Users Mailing List Subject: [OT] Re: Image not getting displayed ! Jitendra Kumar wrote: > I am using in myeclipse. > > In Design view the image is showing by when I view it in browser, the > image doesn't show. Please let me know the reason. > I'm not sure how this is Struts-related. Even if it were, as you have provided essentially zero information this will be difficult to diagnose. Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]