• Welcome to KonaKart Community Forum. Please login or sign up.

Losing header from page and logged in user

Started by sashwill, September 10, 2008, 02:13:39 pm

Previous topic - Next topic


When ever I try to view an item in the customer cart, i lose the header from the page and the
custId = this.loggedIn(kkAppEng, null); from ShowProductDetailsAction is returning -1; and there is no portlet info contained in the navigation bar of the browser like in the jetspeed demo site.  Upto this point everything has been working smoothly.

--konakart/jetspeed site


Has anybody else had this happen? Does anyone know why this might happen?


The link you give for your site is localhost and so unreachable.


My site is still in development and is not currently reachable from the public.  I was trying to show the difference between the urls on my site and the demo site. 

Also, I should add that if I deploy as a web app instead of a portal, all seems to work fine.


The link on the edit cart page uses struts nested tag library instead of the html tag library. i.e.

<nested:link page="/SelectProd.do" paramId="prodId".......

instead of

<html:link page="/SelectProd.do" paramId="prodId"........

It looks like the Struts Portlet Bridge doesn't actually do anything with the nested link and so the URL isn't relative to the portal and just points to the standard app which takes over the whole screen.

The fix is as follows:

In EditCartBody.jsp change the links to use the html tag:

<html:link page="/SelectProd.do" paramId="prodId" paramName="item" paramProperty="prodId"><img src="<html:rewrite href="<%="images/"+item.getProdImage()%>"/>" border="0" alt="<%=item.getProdName()%>" title=" <%=item.getProdName()%> " width="<%=kkEng.getSmallImageWidth()%>" height="<%=kkEng.getSmallImageHeight()%>"></html:link>


<html:link page="/SelectProd.do" paramId="prodId" paramName="item" paramProperty="prodId"><b><%=item.getProdName()%></b></html:link>


Is that what was done on the portal demo site?


Thanks Ryan!

That fixed it.  I'm still curious if any changes were made to the portal demo site to make it work?


I've found two more that are giving me the log message:

12-Sep 10:31:01 WARN  (StrutsPortlet.java:processRequest:503) Warning: Using the
original action URL for render URL: /AddToCartSubmit.do.
A redirect should have been issued.
12-Sep 10:31:05 WARN  (StrutsPortlet.java:processRequest:503) Warning: Using the
original action URL for render URL: /EditCartSubmit.do.
A redirect should have been issued.

so i added the redirect to these as well


Sorry the above post was a reply to another topic thread.