# redirect to mautic from my own jsp application

**URL:** https://forum.mautic.org/t/redirect-to-mautic-from-my-own-jsp-application/3446
**Category:** Product Support
**Created:** [February 12, 2016, 12:13pm UTC](https://forum.mautic.org/t/redirect-to-mautic-from-my-own-jsp-application/3446 "2016-02-12T12:13:59Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![jothi](https://avatars.discourse-cdn.com/v4/letter/j/779978/32.png) [@jothi](https://forum.mautic.org/u/jothi)
#### Post date: [February 12, 2016, 12:13pm UTC](https://forum.mautic.org/t/redirect-to-mautic-from-my-own-jsp-application/3446/1 "2016-02-12T12:13:59Z")

</div>

i have my own apllication jsp and there is one form like mautic login .if the form submited by user it have to redirect to mautic dashbord . is it possible  
  
  
  
and here my own app login code.

  
  
\<input type="text" id="username" name="\_username"  
value="XXXXXX" required autofocus  
placeholder='Username or email' /\>  
  
\<input type="password" id="password" name="\_password" value="XXXXX"  
required  
placeholder='Password' /\>  
  
click here   
  
  
  
and when i submit the form it showing csrf token invalid  
help me thank you!!!

---

<div class="post-metadata">

### Author: ![jothi](https://avatars.discourse-cdn.com/v4/letter/j/779978/32.png) [@jothi](https://forum.mautic.org/u/jothi)
#### Post date: [February 12, 2016, 12:13pm UTC](https://forum.mautic.org/t/redirect-to-mautic-from-my-own-jsp-application/3446/2 "2016-02-12T12:13:59Z")

</div>

i have my own apllication jsp and there is one form like mautic login .if the form submited by user it have to redirect to mautic dashbord . is it possible

and here my own app login code.

click here

and when i submit the form it showing csrf token invalid  
help me thank you!!!

---

<div class="post-metadata">

### Author: ![jothi](https://avatars.discourse-cdn.com/v4/letter/j/779978/32.png) [@jothi](https://forum.mautic.org/u/jothi)
#### Post date: [February 24, 2016, 3:42am UTC](https://forum.mautic.org/t/redirect-to-mautic-from-my-own-jsp-application/3446/3 "2016-02-24T03:42:56Z")

</div>

yeah agree

and also i tried one technique that is i get the full content of mautic login page using file\_get\_content method and echo that into my own page .now it is like a real mautic login page . and now it have the CSRF token and everything .and i enter the username and password .now also telling that csrf token not valid  
then how can i login ? is there any way or suggestion ?

---

<div class="post-metadata">

### Author: ![escopecz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/escopecz/32/370_2.png) [@escopecz](https://forum.mautic.org/u/escopecz)
#### Post date: [February 15, 2016, 9:25am UTC](https://forum.mautic.org/t/redirect-to-mautic-from-my-own-jsp-application/3446/4 "2016-02-15T09:25:58Z")

</div>

I don’t think you can do that. CSRF token protection is there to avoid scammed submissions (logins) which you basically want to achieve.
