The broken include is a symptom, not a cause. The real cause, I suspect, is
a difference in servlet containers between the two environments.
On 10 Nov 2014 20:39, "Andy Patil" <andybpa...@gmail.com> wrote:
> Hi Rick,
>
> The URL is specified in file
> apache-tomcat-7.0.41/conf/Catalina/localhost/imagedir.xml and contains:
> <Context path="/imagedir"
> docBase="/usr/local/econtr/eController/images" debug="0" />
>
> Here is the JSP:
>
> <center>
> <a href="javascript:big('<c:out
> value="${chexDetail.chex_image_f}"/>')" onmouseout="big_hide()">
> <img border="0" src='<c:out
> value="${chexDetail.chex_image_f}"/>' width="45%"></a>
> <a href="javascript:big('<c:out
> value="${chexDetail.chex_image_b}"/>')" onmouseout="big_hide()">
> <img border="0" src='<c:out
> value="${chexDetail.chex_image_b}"/>' width="45%"></a>
> </center>
>
>
> Here is the HTML rendered:
>
> <center> <a
> href="javascript:big('/imagedir/2013/01/09/Check_00000003030007401_000000000050765_000001308835326_front.jpg')"
> onmouseout="big_hide()"> <img border="0"
> src='/imagedir/2013/01/09/Check_00000003030007401_000000000050765_000001308835326_front.jpg'
> width="45%"></a> <a
> href="javascript:big('/imagedir/2013/01/09/Check_00000003030007401_000000000050765_000001308835326_back.jpg')"
> onmouseout="big_hide()"> <img border="0"
> src='/imagedir/2013/01/09/Check_00000003030007401_000000000050765_000001308835326_back.jpg'
> width="45%"></a> </center>
>
>
> As I have mentioned in my initial communication this works on Fedora
> system. The only difference is the #BROKEN_INCLUDE between the two.
>
>
>
> On Mon, Nov 10, 2014 at 11:13 AM, Rick Grashel <rgras...@gmail.com> wrote:
>
>> Andy,
>>
>> Can you send the excerpt of the JSP/html that is not rendering the
>> image? I am also curious what the resulting HTML is on the page(s) in
>> question.
>>
>> BTW, you can come to IRC (#stripes), and there are a few of us who might
>> be able to help you out faster.
>>
>> Thanks.
>>
>> -- Rick
>>
>> On Mon, Nov 10, 2014 at 9:10 AM, Andy Patil <andybpa...@gmail.com> wrote:
>>
>>> Rick,
>>>
>>> I am not doing anything with the attribute. I am certainly ignoring it.
>>> I just print it to my log file. I suspect it is this condition that is
>>> causing any images from being displayed from within the JSP. It is
>>> absolutely to have the images to be displayed. What can I do?
>>>
>>>
>>>
>>>
>>>
>>>
>>> On Mon, Nov 10, 2014 at 9:48 AM, Rick Grashel <rgras...@gmail.com>
>>> wrote:
>>>
>>>> Andy,
>>>>
>>>> That attribute is not harmful but it is necessary because there are
>>>> some containers which have issues with the way they do JSP includes. This
>>>> attribute is used by Stripes to know if it is executing in a container
>>>> which requires the "include hack" to be executed. Just ignore it. It is
>>>> fine and does not affect anything.
>>>>
>>>> Thanks.
>>>>
>>>> -- Rick
>>>>
>>>>
>>>> On Mon, Nov 10, 2014 at 8:24 AM, Andy Patil <andybpa...@gmail.com>
>>>> wrote:
>>>>
>>>>> Hi Rick,
>>>>>
>>>>> Thanks. That was a quick response.
>>>>> It was not an error but something that I catch in my listener and
>>>>> print the following in my log:
>>>>>
>>>>> Mon Nov 10 08:56:39 EST 2014> ServletContextListener.attributeAdded:
>>>>> Attribute Name =
>>>>> net.sourceforge.stripes.tag.layout.LayoutContext#BROKEN_INCLUDE
>>>>>
>>>>> where ServletContextListener is the class and attribute added is the
>>>>> method that catches any attributes that are added to the session.
>>>>>
>>>>> If you can guide me how to add a filter to execute doIncludeHack that
>>>>> might resolve the issue. I suspect it is not that straight forward.
>>>>>
>>>>> Hope that helps.
>>>>>
>>>>> On Mon, Nov 10, 2014 at 9:15 AM, Rick Grashel <rgras...@gmail.com>
>>>>> wrote:
>>>>>
>>>>>> Andy,
>>>>>>
>>>>>> Can you enter a defect here: https://stripesframework.atlassian.net/
>>>>>>
>>>>>> Also, is there a stack trace that accompanied this error?
>>>>>>
>>>>>> Thanks.
>>>>>>
>>>>>> -- Rick
>>>>>>
>>>>>>
>>>>>> On Mon, Nov 10, 2014 at 7:31 AM, Andy Patil <andybpa...@gmail.com>
>>>>>> wrote:
>>>>>>
>>>>>>> HI,
>>>>>>>
>>>>>>> This is my environment:
>>>>>>> CentOS 6.5
>>>>>>> Tomcat 7.0.41
>>>>>>> Java JDK1.8.0.25
>>>>>>> Stripes1.5.8
>>>>>>> Oracle 11g
>>>>>>>
>>>>>>> I get the the above Attribute name in the listener. This prevents
>>>>>>> the display of Jpg files. The problem persists whether the complete file
>>>>>>> path is specified or the path is an URL defined through a context file.
>>>>>>>
>>>>>>> I have since researched to find that a work around exists. I
>>>>>>> installed Stripes 1.5.8 but it did not fix my problem. What do I have
>>>>>>> to do
>>>>>>> to make stripes exceute doIncludeHack instead of doInclude to remedy the
>>>>>>> situation?
>>>>>>>
>>>>>>> I also have the same application runiing on:
>>>>>>> Fedora13
>>>>>>> Tomcat 7.0.41
>>>>>>> JDK 1.7.0.17
>>>>>>> Stripes 1.5.7
>>>>>>> MySQL
>>>>>>>
>>>>>>> and it works fine.
>>>>>>>
>>>>>>> Hope someone has encountered a similar situation and can share the
>>>>>>> solution.
>>>>>>>
>>>>>>> --
>>>>>>> Thank You and Regards,
>>>>>>>
>>>>>>> Andy
>>>>>>>
>>>>>>>
>>>>>>> ------------------------------------------------------------------------------
>>>>>>>
>>>>>>> _______________________________________________
>>>>>>> Stripes-users mailing list
>>>>>>> Stripes-users@lists.sourceforge.net
>>>>>>> https://lists.sourceforge.net/lists/listinfo/stripes-users
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>> ------------------------------------------------------------------------------
>>>>>>
>>>>>> _______________________________________________
>>>>>> Stripes-users mailing list
>>>>>> Stripes-users@lists.sourceforge.net
>>>>>> https://lists.sourceforge.net/lists/listinfo/stripes-users
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Thank You and Regards,
>>>>>
>>>>> Andy
>>>>>
>>>>>
>>>>> ------------------------------------------------------------------------------
>>>>>
>>>>> _______________________________________________
>>>>> Stripes-users mailing list
>>>>> Stripes-users@lists.sourceforge.net
>>>>> https://lists.sourceforge.net/lists/listinfo/stripes-users
>>>>>
>>>>>
>>>>
>>>>
>>>> ------------------------------------------------------------------------------
>>>>
>>>> _______________________________________________
>>>> Stripes-users mailing list
>>>> Stripes-users@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/stripes-users
>>>>
>>>>
>>>
>>>
>>> --
>>> Thank You and Regards,
>>>
>>> Andy
>>>
>>>
>>> ------------------------------------------------------------------------------
>>>
>>> _______________________________________________
>>> Stripes-users mailing list
>>> Stripes-users@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/stripes-users
>>>
>>>
>>
>>
>> ------------------------------------------------------------------------------
>> Comprehensive Server Monitoring with Site24x7.
>> Monitor 10 servers for $9/Month.
>> Get alerted through email, SMS, voice calls or mobile push notifications.
>> Take corrective actions from your mobile device.
>>
>> http://pubads.g.doubleclick.net/gampad/clk?id=154624111&iu=/4140/ostg.clktrk
>> _______________________________________________
>> Stripes-users mailing list
>> Stripes-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/stripes-users
>>
>>
>
>
> --
> Thank You and Regards,
>
> Andy
>
>
> ------------------------------------------------------------------------------
> Comprehensive Server Monitoring with Site24x7.
> Monitor 10 servers for $9/Month.
> Get alerted through email, SMS, voice calls or mobile push notifications.
> Take corrective actions from your mobile device.
>
> http://pubads.g.doubleclick.net/gampad/clk?id=154624111&iu=/4140/ostg.clktrk
> _______________________________________________
> Stripes-users mailing list
> Stripes-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/stripes-users
>
>
------------------------------------------------------------------------------
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://pubads.g.doubleclick.net/gampad/clk?id=154624111&iu=/4140/ostg.clktrk
_______________________________________________
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users