|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Does anyone know of a code that does wat tis "javascript:history.back()" does..
but in java? request.setAttribute("exception", exception); getServletContext().getRequestDispatcher("/error.jsp").forward(request, response); I wanna replace the "/error.jsp" to someting tat "javascript:history.back()" do but in java instead. or is there no code tat replaces it? ![]() pls reply asap.. thx |
|
#2
|
|||
|
|||
|
btw i did "response.sendRedirect("javascript:history.back()");"
but it brings me back to "The page cannot be displayed" page wat i need is the data i entered into the fields to still be there... when i validate the field and haf error then it will go back but the data is not cleared.. |
![]() |
| Viewing: Dev Articles Community Forums > Programming > Java Development > history.back() to JAVA |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|