cancel
Showing results for 
Search instead for 
Did you mean: 

How to get jsp form object in the dynapagecontroller

Former Member
0 Kudos

Hi,

When i submit the form i have to get the form object in the controller to set the target for that jsp in the controller. I could set the target in jsp but i want to set the target in controller to open the targetted jsp in new window.

Thanks

Tatayya M

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Tatayya,

I suppose you are not using HTMLB? Otherwise the <form>-Tags would be generated automatically and always point to the controller class that called "this.setJspName(...)". So, for HTMLB, you would use thie method.

Otherwise, I think the best way would be use a bean for transferring the data from the controller to the JSP. Set the target value in the bean in your controller and read it out in the JSP.

Please provide some some details about your problem.

HTLMB yes/no

Some example code (what have you done so far, what would you like to do) for betting understanding

Regards,

Dominik

Former Member
0 Kudos

Hi Dominik ,

I am using HTMLB. I could set the target also to set the jsp pages using this.setJspName("Test.jsp");

After completing the process in controller i want to call another par file that has to be opened in new window.

How can i set the target for the new par file to open in new window.

Thanks

Tatayya M

jcvidaller
Participant
Former Member
0 Kudos

Hi Tatayya,

so I understand you right, that you want to launch a JSP from a different PAR file? You could do the following in this case.

Create an additional JSP in the (first) PAR that simply does a redirect to the second iView (form the other PAR). In the contoller class of your first PAR, perform a this.setJspName("redirectMe.jsp").

If you want to keep displaying the original JSP in the iView and simply display an additional popup, you could try:

don't change the this.setJspName() (i.e. set it to the original page)

Use a bean that stores a value like "showPopup yes/no"

Query the bean in the JSP and render some javascript:window.open() code if "showPopup=true".

Hope that helps,

Dominik

Former Member
0 Kudos

Thanks 1

Former Member
0 Kudos

Thanks 2

Answers (0)