This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
It's just making a web request. It will display whatever the server returns (JSP ouput, PHP output, static HTML output). The browser has no idea if the content was generated dynmically or read from a static page.
Moving to our Sockets and internet protocols forum. This really isn't a JSP issue.
you did not get my question. I have a program running at work place which is a hsp servlet that talks to database. I want to make a program that would automate the process of logging on by sending username and password and just display the page that is returned. so basically i just want some one to double clik on some icon on desktop that would talk with servlet send username and password and open a web browser and display the output. I do not not how to do this.
Joined: Jan 26, 2008
I added some more bits so now it saves the input in a html file and displays it in the browser. But the problem now is that response is not just a html file but some other picture files and other STUFF [edit: please watch your language] as well. I am stuckkkk.
[ February 29, 2008: Message edited by: Manish Khurana ] [ February 29, 2008: Message edited by: Manish Khurana ]
And please be sure to use UBB code tags when posting code to the forums. Unformatted code is extremely hard to read and many people that might be able to help you will just move along. Please read this for more information.
You can go back and change your post to add code tags by clicking the .
I am sorry it dosent work it dosent even send the login name and password via post. I get the html login form when i use this code. am i going about this the wrong way help appreciated
Joined: Jan 26, 2008
Can some one please help me about this. Maybe i have not explained the problem properly or am goin about it in the wrong way. I have at my work place a servlet running. What we do is that we go to the website a form comes up, we enter login name and password and we get another page where we can check up details about people from the database. What I wanted was some sort of automated login where we skip going through the login page and get straight to the details page. I am not sure if i use sockets instead or do something else.
1)As you said when you go to the website i think jsp executes and displays the logon.jsp page there you will be entering the username and password. and once you submit the jsp file then a servlet executes which validates the user and displays another jsp...if this is correct..
and you question is you want to by pass the logon.jsp file and directly you want to validate and display say welcome jsp..then for this
create a servlet class by name say logon.class and in web.xml you map this class to your url pattern.
in the servlet class you will get the request object. then set the request object with the username and password..as