Discussion:
How Do I find The JSP Displayed By A View?
(too old to reply)
James Ellis
2007-04-04 14:47:33 UTC
Permalink
The URL in the browser displays https://ourhost/webapp/wcs/stores/servlet/ProductDisplay?storeId=10001
etc etc

I know that I can lookup which command this URL is mapped to in
URLREG, or I can also lookup in the "Cross reference of commands,
tasks, and tables" that this URL is mapped to the command
"ProductDisplayCmd" and to the view "ProductDisplayView", but how do I
figure out which JSP is displayed by this ProductDisplayView?

I know that sometimes the JSP page is listed in the column
VIEWREG.PROPERTIES but in this case that column is blank. Any idea
how I am supposed to figure out which JSP page is displayed?

Thanks,
Jim
Thomas Weidemann
2007-04-13 07:03:07 UTC
Permalink
Hi Janes!

This might be a little bit late, but I think a lokk to the table viewreg
might help.

Greetings
Thomas
Post by James Ellis
The URL in the browser displays https://ourhost/webapp/wcs/stores/servlet/ProductDisplay?storeId=10001
etc etc
I know that I can lookup which command this URL is mapped to in
URLREG, or I can also lookup in the "Cross reference of commands,
tasks, and tables" that this URL is mapped to the command
"ProductDisplayCmd" and to the view "ProductDisplayView", but how do I
figure out which JSP is displayed by this ProductDisplayView?
I know that sometimes the JSP page is listed in the column
VIEWREG.PROPERTIES but in this case that column is blank. Any idea
how I am supposed to figure out which JSP page is displayed?
Thanks,
Jim
Nicolai Dufva Nielsen
2007-04-13 08:10:23 UTC
Permalink
As James wrote, the properties column for the ProductDisplayView in
viewreg is typically NULL (or for V6, the path attribute in
struts-config*.xml is empty). The same goes for CategoryDisplayView. The
reason for this is that products and category display JSPs are
determined by the relations in the DISPENTREL and DISPCGPREL tables,
respectively.

These tables allow store developers to use custom display templates,
parametrised on store ID, catentry/catgroup ID, member group and other
factors (for catalog entries, the type (product, bundle, item, etc.) and
whether the entry is on auction are also parameters).

For the starter stores, I have only seen customisations based on
catentry type (product, bundle, etc), but as mentioned it is possible to
have specific JSPs for each individual product in the database.

The logic for determining the correct JSP is in ProductDisplayCmdImpl
and CategoryDisplayCmdImpl, respectively.

/Nicolai
Post by Thomas Weidemann
Hi Janes!
This might be a little bit late, but I think a lokk to the table viewreg
might help.
Greetings
Thomas
Post by James Ellis
The URL in the browser displays
https://ourhost/webapp/wcs/stores/servlet/ProductDisplay?storeId=10001
etc etc
I know that I can lookup which command this URL is mapped to in
URLREG, or I can also lookup in the "Cross reference of commands,
tasks, and tables" that this URL is mapped to the command
"ProductDisplayCmd" and to the view "ProductDisplayView", but how do I
figure out which JSP is displayed by this ProductDisplayView?
I know that sometimes the JSP page is listed in the column
VIEWREG.PROPERTIES but in this case that column is blank. Any idea
how I am supposed to figure out which JSP page is displayed?
Thanks,
Jim
Continue reading on narkive:
Loading...