• Post Reply Bookmark Topic Watch Topic
  • New Topic

RequestDispatcher

 
sujesh Katri
Ranch Hand
Posts: 115
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have some problem displaying my desired output. I'm placing my html,filter and servlet below.
html
filter

servlet
my problem is when i entered wrong password ,out dislays my html description not html output. I'm placing my output when i entered wrong password below
password is wrong
<form action="filter1">
username<input type="text" name="s1"><br>
password<input type="text" name="s2"><br>
<input type="submit">
</form>
 
sujesh Katri
Ranch Hand
Posts: 115
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
someone please tell me where i did mistake.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65516
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Two things I would suggest:
  • Do not emit text from your filgter. Leave that to the JSP.
  • forward to the JSP, not include.
  •  
    • Post Reply Bookmark Topic Watch Topic
    • New Topic
    Boost this thread!