Question

1
Replies
119
Views
Close popover
Wu Zhixian (Kite_Wu)
Accenture

Accenture
CN
Kite_Wu Member since 2016 11 posts
Accenture
Posted: April 18, 2018
Last activity: April 26, 2018
Closed

Has error when use response object in JSP rule

I have created a jsp rule and add the code as below:

<%   
    String site = new String("http://XXX");
    response.setStatus(response.SC_MOVED_TEMPORARILY);
    response.setHeader("Location", site);
%>

The code has run and display successfully in eclipse.But it has error msg in pega when I save the jsp rule:

response.setStatus(response.SC_MOVED_TEMPORARILY);
^^^^^^^^
response cannot be resolved

Can't I use response object in jsp pega rule?If I have to modify my code and how?

Data Integration Java and Activities
Moderation Team has archived post,
Close popover This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Question, please write a new Question.