How can we redirect the servlet response with success/failure message to same page using sling selectors | Community
Skip to main content
Level 2
August 2, 2022
Solved

How can we redirect the servlet response with success/failure message to same page using sling selectors

  • August 2, 2022
  • 1 reply
  • 600 views

Hi,

 

We have implemented a form using OOTB forms tool kit. When we submit the form, an email is triggered to send the form data in that. So, on successful submission, we redirect to success page or else we redirect to a failure page.

 

Now, we don't want the redirect to happen but stay in the same page but show the success/failure message to user.

 

How can we achieve this?

 

I'm not looking at using Ajax for getting the success/failure message.

 

How can we use sling selectors to achieve this?

 

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by arunpatidar

Please check https://www.javatpoint.com/requestdispatcher-in-servlet 

1 reply

arunpatidar
Community Advisor
arunpatidarCommunity AdvisorAccepted solution
Community Advisor
August 2, 2022