any advice on how to modify the login.jsp page?

Wang, Holly holly.wang at csun.edu
Mon Apr 16 21:31:37 BST 2012


Hi,

I am asked to modify shib login.jsp page so the form with take multiple submit command. Depending on the submit button value, we send the form to different places. 

I did some testing, tried to add a new jsp page to handle it. But I can't find a place to define the servlet definition for the new jsp page. 

Does anyone has an example on the login.jsp which takes multiple submit commend? 

Current login.jsp form:

<form action="j_security_check" method="post" autocomplete="off">
<input type="text" id="uid" name="j_username" style="width:100px" value=""/>
<input type="password" name="j_password" style="width:100px"/>
<input type="submit" value="Login" />
</form>


We want it to be like following, but action lead to different places per the submit value: 

<form action=" "  method="post" autocomplete="off">
<input type="text" id="uid" name="j_username" style="width:100px" value=""/>
<input type="password" name="j_password" style="width:100px"/>
<input type="submit" value="Login" />
<input value="moodleadmin" type="submit" name="moodleadmin" id="moodleadmin">
</form>

thanks

Holly Wang, IT Department  CSUN, 818-677-2031



More information about the users mailing list