Expand my Community achievements bar.

SOLVED

How to create a non component JSP for AEM?

Avatar

Employee

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.

1 Accepted Solution

Avatar

Correct answer by
Employee

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"

View solution in original post

1 Reply

Avatar

Correct answer by
Employee

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"