New View: Problem with include Files
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > WebSphere > WebSphere Commerce suite > New View: Problem with include Files




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    New View: Problem with include Files  


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-14-06 03:51 AM

Hi,

I created a new view, registered it and set the access policies. Its a new p
age for the StoreInfoArea on a ConsumerDirect store.

When I try to run this view (and the JSP) with includes to the store headers
 etc. then the page dies (nothing useful in the error message). Take out the
 includes and everything works fine.

I tried copying and pasting the code from PrivacyDisplay.jsp (so that my new
 file is a clone of that one) and the same thing happens. This new view can'
t seem to run the include files.

Does anyone know what is going wrong?





[ Post a follow-up to this message ]



    Re: New View: Problem with include Files  
Robert Brown


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-14-06 03:51 AM

I'd guess your includes are including other JSPs or HTML fragments and
you aren't using the latest 1.2 syntax.  How is your JSP including your
other code?

You can't nest multiple

<%@ include file="<some filename here>" %>

Convert to JSP 1.2 syntax

<jsp:include page="<some page here>" flush="true" />

for best portability.  My best guess without seeing your code...

R

> Hi,
>
> I created a new view, registered it and set the access policies. Its a new
 page for the StoreInfoArea on a ConsumerDirect store.
>
> When I try to run this view (and the JSP) with includes to the store heade
rs etc. then the page dies (nothing useful in the error message). Take out t
he includes and everything works fine.
>
> I tried copying and pasting the code from PrivacyDisplay.jsp (so that my n
ew file is a clone of that one) and the same thing happens. This new view ca
n't seem to run the include files.
>
> Does anyone know what is going wrong?





[ Post a follow-up to this message ]



    Re: New View: Problem with include Files  


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-14-06 03:51 AM

> How is your JSP including your other code?
>
> Convert to JSP 1.2 syntax
>
> <jsp:include page="<some page here>" flush="true" />
It's using the JSP 1.2 syntax - the file is now a total copy of the HelpView
.jsp that comes stock with the ConsumerDirect store in Websphere Commerce.

The only thing I can think of at this point is that there's something wrong 
in the AC policies for this file. I didn't have the XML handy so I added the
 entries in by hand to the AC tables in the database. As far as I can tell e
verything is ok - and the p
age works fine without the includes - but I've since found the xml I needed 
so will give that a try.

If you've got any other ideas or explanations it would be greatly appreciate
d. I'm pulling my hair out here at the minute - and I don't have enough to s
pare. 





[ Post a follow-up to this message ]



    Re: New View: Problem with include Files  
Robert Brown


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-14-06 03:51 AM

So nothing in SystemOut.log that helps?  If it is access control
problems then there will be errors in your log.

Only the JSP defined in VIEWREG should be setup for access control.  You
do not need to create access control policies for included content by
default.

R
 
>
> It's using the JSP 1.2 syntax - the file is now a total copy of the HelpVi
ew.jsp that comes stock with the ConsumerDirect store in Websphere Commerce.
>
> The only thing I can think of at this point is that there's something wrong in the
 AC policies for this file. I didn't have the XML handy so I added the entries in by
 hand to the AC tables in the database. As far as I can tell everything is ok - and 
the
page works fine without the includes - but I've since found the xml I needed so will give th
at a try.[vbcol=seagreen]
>
> If you've got any other ideas or explanations it would be greatly appreciated. I'm
 pulling my hair out here at the minute - and I don't have enough to spare. [/vbco
l]





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 09:19 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register