willhogan11 / Golf_n_HomeSwap

4th Year Project for module "Applied project & Minor Dissertation"
0 stars 0 forks source link

Page url, should change to 'successapply' #35

Closed willhogan11 closed 7 years ago

willhogan11 commented 7 years ago

After a user applies for membership, they are directed to the 'successapply.jsp' page, however the url still shows '/docreate'. I've changed the relevant code in the various files, any suggestions?

AndrejLavrionovic commented 7 years ago

I am not completely sure that understood the problem, but if I am right you don't need ReqwestMapping(...) for successapply, contrariwise you need return this value in docreate controller as a string.

@RequestMapping(/docreate)
public String whatEverMethodIs(){
// code is here...
return "successapply";
}

Try this, should work.

AndrejLavrionovic commented 7 years ago

I looked at your commits and I thing that successapply should be allowed for all. Is it only notification? if yes I thing should be like this:

<security:intercept-url pattern="/successapply" access="permitAll" />

Hope I could help.

willhogan11 commented 7 years ago

Thanks Andrej. Essentially all i want is for the url to show /successapply . It's redirecting fine. It's actually not that big a deal to be honest, because it's still all part of the registration process.

willhogan11 commented 7 years ago

We might have a look at this tomorrow....

willhogan11 commented 7 years ago

Thanks Andrej!