In a Gen Web application if a user executes a URL for a Procedure Step e.g. menu.jsp how can they be first redirected to a different PStep e.g. login.jsp
search cancel

In a Gen Web application if a user executes a URL for a Procedure Step e.g. menu.jsp how can they be first redirected to a different PStep e.g. login.jsp

book

Article ID: 45194

calendar_today

Updated On:

Products

Gen Gen - Workstation Toolset Gen - Host Encyclopedia Gen - Run Time Distributed

Issue/Introduction

Question:

In a Gen Web application if a user executes a URL for a Procedure Step e.g. menu.jsp, how can they be first redirected to a different PStep e.g. login.jsp  

 

Answer:

The way to achieve this behaviour is to use CLEAR SCREEN INPUTS.

For Web Generation an extra line needs to be added to the generated jsp before building the app i.e.

request.setAttribute("clearScreenInputs", "myValue");

This section of the Gen wiki has more details: Run Web Generation

 

Additional Information:

Attached are:

Example model with login & menu Procedure Steps to demonstrate: clear1.ief.zip

A document which describes the design and testing steps (using Gen DiagramTrace) after deploying to Tomcat: Gen_webapp_clearscreeninput_testing.docx

Environment

Release: KGNCRK05500-8-Gen-CLS Runtime Kit-for Unisys
Component:

Attachments

1558534658877TEC1850206.zip get_app