JSP question!!!!

Posted on 2001-07-10
Last Modified: 2010-04-16
on my site, i have a "button" called Members, when i push that button i want to make a call to the username/password frame, where i can write my username, password, and save my settings. How do i call this frame from my JSP-page and how do i obtain the two values to check if they are correct.
Question by:pattefar
  • 2
  • 2
  • 2
  • +3
LVL 15

Expert Comment

ID: 6271348
username/password frame ? Is this an applet you have written ?

If not, then you just need an HTML form that you can sumbit to your login servlet or jsp. Something like this :

<form name="login" action="login.jsp" method="post">
Username : <input type="text" name="username"/><br/>
Password : <input type="password" name="password"/><br/>
<input type="submit" value="login"/>

Expert Comment

ID: 6271351
have a link to the frame like
<input type="button" value="Button" name="B3" onclick='document.location=""'>

instead of put a call to your frame from username/password

Expert Comment

ID: 6271353
oops...wrong timing?
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.


Author Comment

ID: 6271385
no, the username/password frame i mean is the one windows provide. it looks like the alert-frame from javascript, but instead it contains:

and the checkbox where settings can be saved

it is not an applet or a frame i create. the frame i am talking about is used on alot of sites where you have to type username og password tp gain access
LVL 92

Accepted Solution

objects earned 75 total points
ID: 6271860
That frame is popped up automatically by the browser if you request a page that requires authentication.
So you don't need to explicitly link to this frame, just have your jsp link to a password protected page (ie. your members page) on the site and the login frame will be presented.
LVL 10

Expert Comment

ID: 6271861

Expert Comment

ID: 6271864
You can write an applet in a frame that looks similar to a Windows dialog, but if you want it to look exactly like one, your solution will either not be portable or require a plugin.

You could write a native Windows dialog in Visual C++ and invoke it via JNI, but it won't be portable and would cause all kinds of security issues.

You could also draw a windows frame in Macromedias flash and simulate the behaviour, but that would force your users to download the Flash plugin.

Finaly, you could use Microsoft Front Page Bots to obtain that behaviour, but Netscape browsers don't read MS Bots.

Author Comment

ID: 6272510
Thx for the answer!!!
LVL 92

Expert Comment

ID: 6272549
Thanks for the points :-)

Featured Post

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
groupNoAdj 7 96
starter POM and spring-boot-starter,  spring-boot-web 2 54
Java Server Faces parameter pass? 6 50
Tomcat: Unable to run tomcat service. 2 20
For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…

778 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question