atg

How to generate a dynamic URL using <dsp:a> in Oracle Commerce(ATG)

大憨熊 提交于 2019-12-03 10:12:43
问题 I'm trying to display list of products in a jsp using ProductLookup droplet as shown below. I'm also trying to give a hyperlink to navigate to product details page of the individual product. <dsp:droplet name="/atg/commerce/catalog/ProductLookup"> <dsp:param param="element.id" name="id"/> <dsp:oparam name="output"><br/> <dsp:a href="display_product.jsp?itemId=${id}"> Product display Name: <b><dsp:valueof param="element.displayName"/></b><br/> Product description Name: <dsp:valueof param=

Using Mockito for writing ATG test case

ⅰ亾dé卋堺 提交于 2019-12-02 06:00:09
问题 Does anyone have idea about writing unit test case for ATG using Mockito? I came across following discussions while goggling - Automated unit tests for ATG development and Using PowerMock to obtain the ATG Nucleus in testing results in NPE But need a help in setting up Nucleus and other dependencies (DAS, DPS, DSS etc.) and a sample test class for droplet using Mockito. We are using ATG Dust where we have to set all the dependencies. I am wondering if we can replace ATG Dust completely with

Using Mockito for writing ATG test case

喜欢而已 提交于 2019-12-02 01:01:17
Does anyone have idea about writing unit test case for ATG using Mockito? I came across following discussions while goggling - Automated unit tests for ATG development and Using PowerMock to obtain the ATG Nucleus in testing results in NPE But need a help in setting up Nucleus and other dependencies (DAS, DPS, DSS etc.) and a sample test class for droplet using Mockito. We are using ATG Dust where we have to set all the dependencies. I am wondering if we can replace ATG Dust completely with Mockito. Here is the example how we are writing the test cases - A Base class for setting Nucleus -

Setting parent jsp variables in child jsp

*爱你&永不变心* 提交于 2019-12-01 19:10:10
I have a parent jsp a.jsp which includes another jsp b.jsp. I am calculating some values in b.jsp which needs to be used in parent jsp a.jsp , which will pass this calculated value to another jsp say c.jsp. How can I evaluate value in child jsp and pass it to parent jsp before that page completely loads? How are you including the "child" jar inside the parent? static or dynamic import? if you have <%@ include file="myFile.jsp" %> change it by <jsp:include file="myFile.jsp" /> then in the parent set a property in the request (not in the session, that would be "dirtier"): <% request.setAttribute