Question

1
Replies
119
Views
Wu Zhixian (Kite_Wu)
Accenture

Accenture
CN
Kite_Wu Member since 2016 12 posts
Accenture
Posted: April 18, 2018
Last activity: April 26, 2018
Posted: 18 Apr 2018 2:15 EDT
Last activity: 26 Apr 2018 13:25 EDT
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, 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.