WebSphere Commerce suite - New View: Problem with include Files

This is Interesting: Free IT Magazines  
Home > Archive > WebSphere Commerce suite > January 2006 > New View: Problem with include Files





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author New View: Problem with include Files

2006-01-13, 10:51 pm

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 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?
Robert Brown

2006-01-13, 10:51 pm

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 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?

2006-01-13, 10:51 pm

> 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 everything 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 appreciated. I'm pulling my hair out here at the minute - and I don't have enough to spare.
Robert Brown

2006-01-13, 10:51 pm

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 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 everything is ok - and the

page 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 appreciated. I'm pulling my hair out here at the minute - and I don't have enough to spare.

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com