cancel
Showing results for 
Search instead for 
Did you mean: 

regarding jsp dynpro component

Former Member
0 Kudos

hello ,

i am creating jsp dynpro component . my approach is trying to get information from jsp page, read the data in the jspDynPage , setting the data temporarily in bean and retreiving thru jsp. my problem is i am trying to from to jsp using setJspName like this.setJspName("JspPrg1.jsp"); and this.setJspName("JspPrg2.jsp");

based on a condition flag.

do i need to add both the jsp names in portalapp.xml , if so it is going to the one that is added is property as last ..

i think i am doing some thing wrong in the portalapp.xml ..

can any one help me in this..

thanks..

rajesh

Accepted Solutions (1)

Accepted Solutions (1)

former_member197348
Active Contributor
0 Kudos

HAI RAJESH,

you need to add them both in portalapp.xml using the property "ComponentType" in two separate tags.

It will work.

regards,

Siva.

Former Member
0 Kudos

hi siva,

thanks for the reply but i already did it ..

<property name="ClassName" value="JavaPrg"/>

<property name="ComponentType" value="jspnative"/>

<property name="JSP" value="pagelet/JspPrg2.jsp"/>

<property name="JSP" value="pagelet/JspPrg.jsp"/>

this is the actual code in portalapp.xml .. when i export it , application is taking only the last jsp what ever my code in java prg

thanks..

rajesh

Former Member
0 Kudos

Hi Rajesh,

When

<property name="JSP" value="pagelet/JspPrg.jsp"/> is used then automatically this page is displayed. In order to solve your problem remove these two property tags placed in your portalapp.xml and then check.You will see the difference.

Regards,

ND.

Answers (0)