How to create a non component JSP for AEM? | Community
Skip to main content
Community_Admin
Adobe Employee
Adobe Employee
October 16, 2015
Solved

How to create a non component JSP for AEM?

  • October 16, 2015
  • 1 reply
  • 852 views

Hi,

 

I want to apply a password policy in our site, so I need redirect to a new jsp called changepassword after sucessfully login. I try to change the action of login's form but it desn't work. How can I do it?

I have copy all of /libs/cq/core/component/login and /libs/cq/core/content/login to /apps/cq/core/component/login and /apps/cq/core/content/login before I try do it.

 

After I changed the action of login's form to changepassword.html, I got a respose as below.

Content modified /libs/cq/core/content/changepassword/changepassword.html

                             
Status

200

Message

OK

Location/libs/cq/core/content/changepassword/changepassword.html
Parent Location/libs/cq/core/content/changepassword
Path

/libs/cq/core/content/changepassword/changepassword.html

Refererhttp://localhost:4502/libs/cq/core/content/login.html?mode=login
ChangeLog

<pre>modified("/libs/cq/core/content/changepassword/changepassword.htm l/resource");<br/></pre>

Go Back

Modified Resource

Parent of Modified Resource

 

Thanks a lot.

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 Community_Admin

From the message, it looks like the default POST servlet is being called. for redirection after login you can give the path to be redirected as a parameter value for "resource"

1 reply

Community_Admin
Adobe Employee
Community_AdminAdobe EmployeeAuthorAccepted solution
Adobe Employee
October 16, 2015

From the message, it looks like the default POST servlet is being called. for redirection after login you can give the path to be redirected as a parameter value for "resource"