It is not working :-( here are the sniplets from my code
public void doPost(HttpServletRequest request,
| HttpServletResponse response)
| throws IOException {
| // String username = request.getParameter("j_username");
|
| Principal user = request.getUserPrincipal();
| String username = user.getName();
|
| String message;
| message = processRequest(request);
| generateResponse(message, username, response);
| }
private void generateResponse(String message, String username,
| HttpServletResponse response)
| throws IOException {
|
| response.setContentType("text/html");
| PrintWriter out = response.getWriter();
|
| out.println("<HTML>");
| out.println("<HEAD>");
| out.println("<TITLE>Message Servlet</TITLE>");
| out.println("</HEAD>");
| out.println("<BODY BGCOLOR=\"white\">");
| out.println("Hi" + username);
| out.println("The message is: <BR>");
| out.println("<BLOCKQUOTE><B>" + message + "<B></BLOCKQUOTE>");
| out.println("</BODY>");
| out.println("</HTML>");
|
| out.close();
| }
<a
href="http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3825387#3825387">View
the original post</a>
<a
href="http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3825387>Reply
to the post</a>
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user