Creating Login Page
Hi,
I have create a Login page and after checking the user credentials, I displayed a new page.(say "Success.jsp")
I have a Logout button on the new page displayed.
When I clicked Logout button again Login page was displayed.(Login.jsp)
But if I click back button on Internet explorer after doing Logout, the browser is displaying success.jsp.
How to avoid that. I want to display Login.jsp even user clicks back button on explorer.
The browser is display the page that it cached for you. Make sure you tell it not to cache the success.jsp or any other page you do not want to allow them to go back to. Have the servlet set it in the header or do it on the jsp. Lots of help is you google it
response.setHeader("Cache-Control","no-cache");
response.setHeader("Pragma","no-cache");
response.setDateHeader ("Expires", 0);[http://www.google.com/search?q=preventing+browser+caching&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a]
Similar Messages
-
i m trying to create login page for oracle adf (HTML) but while compile the application i am getting below error message
[01:58:01 PM] ERROR: Unable to create user "oracleadf". Reason: MBean invoke failed: weblogic.management.utils.InvalidParameterException: [Security:090282]password cannot be null
i m using below reference
http://www.youtube.com/watch?v=C14FmuhTt8I
please help me out.Hi arun,
yes i provided but i found one strange this,
when i entered my password in password then in the confirm password field.
then confirm password field get frezzed then i click on save button after that both the password field get null automatically. -
How to create Login page in Jdev11.1.1.4
Hi All,
can anyone please share how to create Login Page in Jdev11.1.1.4
TIA,
Bob
Edited by: Bob on Feb 18, 2011 12:40 AMBob,
[url http://download.oracle.com/docs/cd/E17904_01/web.1111/b31974/adding_security.htm#BABDEICH]The documentation tells you how.
John -
Create login page using jsp, servlet & Oracle
hi,
i need the sample application for creating login page using jsp, servlet & Oracle,can you please post one sample application.
thanks
sonaSee
http://www.oracle.com/technology/products/jdev/collateral/papers/10g/adfstrutsj2eesec.pdf
Frank -
Creating login page - direct users to a unique file based on unique id?
Hello - I am in the process of creating a login page that will direct users to a unique page based on their unique id. I would normally go to Server Behaviors>User Auth>Log In User, but that gives me the option of browsing only one file for all usernames and that's not what I need. So basically, if the user logs in with the Caterpillars username, it takes them directly to the Caterpillars page and if they log in with the Butterflies username, it takes them to the Butterflies page (yes, it's a preschool with goofy classroom names!). If it matters, I'm using MySql and the page is .php. I tried to upload the php, but it gave me an error "the content type of this attachment is not allowed" - not sure what that's all about - sorry.
Thanks in advance!!I was trying to do the latter - store the path for each individual file (catepillars.html, butterflies.html, etc) in the database with the login info.
My problem is that I can't get it to direct to that page in the code. My understanding is that I have to tell it in within this code <?php echo $row_MM_Username['login']; ?> that if username is caterpillars then they go directly to caterpillars.html...
For your desire you don't need extra database fields, recordsets, session variables or anything else if you want to direct username to a static username.html file
Instead use a dynamic META redirect in <head> of success.php page based on session variable for Username and append .html to the username.
<META http-equiv="refresh" content="0;URL=http://example.com/<?php echo $SESSION['MM_Username']; ?>.html">
You could add the show if users is logged in server behavior to success.php and wrap the meta redirect in it so that if the user is logged in then you are redirected to username.html or just add a restrict access SB so that you can not visit success.php (and be redirected to username.html) unless you are logged in.
Does that solve your problem?
It may have been easier to explain if your original inquiry mentioned that you wanted logged in users to go to a static .html page based on their username like username.html (sighs). FWIW I would still follow my original recommendation of using one dynamic file to display different users info on one page because as mentioned you only have to maintain one file vs. multiple static files. -
How to create login page for application with jheadstart
Is there a how to section for jheadstart?
After reviewing the jheadstart developer's guide. I am still left with lot of questions:
1. how to create a login page to allow access to an application using username/password from a database table
2. how to change the title graphic (jheadstart demo) to (my application)
3. how to execute a query by hitting enter instead of a mouse clicking a button
Any suggestion to search for such practical questions in this forum or other blogs and such is appreciated.Mahin,
You can set Authentication Schemes for your applications. If you are using Application Express Authentication, you can create additional users from here:
1. From Application Express home, click Manage Application Express users.
2. Click Create to create users. To create end user, select "no" to developer and admin.
- Christina -
Problem creating login page in portal webapplication
Hi all,
I have been working with ADF for quite some years. Now, I have found webcenter portal on my path.
I'm telling you this is square one all over again.......trying to figure out why the most simple things do not work like they should. like this one
I'm on a project that has to build a new portal application. when you start it, you should be taken to a page where you have to log in.
This is the only public page in the portal app. after logging in, you will see the start page of the portal app. From here you can go to other pages through a menu tree on the left side of the page (=within the page template).
Anyway, I seem to no even get this to work........
I have made two pages. a loginPage and a landingPage. I know you get a login.jspx and a home.jspx for free, but I want to make my own since I had problems attaching my custom pagetemplate. Some other thing that doesn't work........
Anyway, I have made these two pages within the faces-config.xml I have tied the login_success action to my landingPage and the logout_success to the loginPage. I have also altered the login.html to redirect to my loginPage.jspx instead of the login.jspx On the loginPage Ideally, I would like to drag a login taskflow with a page-fragment where I have two inputfields and a button, which are connected to the o_w_s_l_LoginBackingBean. But that is for later, since it doesn't even work when I have put those two inputfields and button directly on my loginPage.jspx
I have tried several different configurations using both the pages.xml file and the jazn-data.xml, but to no avail.
What am I doing wrong? in the pages.xml, what should be the one with home as it's id? should both the loginPage and the landingPage be in there?
Even when I manage to get the loginPage first at startup, the button (who's action is pointing to the doLogin of the o_w_s_l_LoginBackingBean) does nothing. Also nothing in the logs.
Can anyone please tell me how I can get this to work?
thanks a lot in advance.....Hi fisherman,
custom login page can be created and it can be used in your custom template by simply creating your own login class :o_w_s_l_LoginBackingBean instead of using the default one.
otherwise the second type of solution is :
create a subform and write the following type of code in your jspx/jsff page.
<af:subform id="sub_id">
<af:panelFormLayout id="pt_pfl1" >
<af:panelGroupLayout id="pgl1" layout="vertical" >
<table>
<tr>
<td width="50%">
<af:activeOutputText value="username"
id="aot199"/>
</td>
</tr>
<tr>
<td width="50%">
<af:inputText id="pt_it1" simple="true"
value="#{o_w_s_l_LoginBackingBean.userName}"
/>
</td>
</tr><tr>
<td width="50%">
<af:activeOutputText value="password"
id="aot198"/>
</td>
</tr>
<tr>
<td width="50%">
<af:inputText id="pt_it2" simple="true"
value="#{o_w_s_l_LoginBackingBean.password}"
columns="30" secret="true"
/>
</td>
</tr>
</table>
</af:panelGroupLayout>
</af:panelFormLayout>
<af:spacer width="3" height="3" id="pt_s2"/>
<af:panelGroupLayout id="pt_pgl14" layout="horizontal" halign="end" >
<af:commandButton id="pt_logincb"
action="#{o_w_s_l_LoginBackingBean.doLogin}"
>
</af:commandButton>
this is a sample code,may be some errors are present.but it should work definity if you mention the login success page in faces-config.xml.
Hope ,it will help you.
Regards,
Hoque -
Creating Login Pages - Server Behavior Issues
Hello,
I been trying to find a solution to this problem for this
past week.
I'm having issues with creating a login page. First, I get
the page created with a username text box, password text box, save
username checkbox, etc. Next, I add the server behavior for 'User
Auth' - 'Login User'. Now..here's the problem. When I complete
that, I get this error (SEE BELOW). Somehow the server behavior
duplicates. I can't go on until I make one of them unique from the
other. I tried every which way to delete it, but I can't. Any
suggestions?
SERVER BEHAVIOR ERROR
"The server behavior panel cannot determine whether "Log In
User" or "Log In User" is applied to your page. Please select Edit
Server Behaviors and change one of the 2 behaviors to ensure that
each is uniquely identifiable."
NOTE: By using the "-" sign above the panel, I can't remove
the duplicate.
Also, when I create a login page, I do need to insert a form
first("form1") and then place the username, password, checkbox
inside that "form1" form I just created, correct?
Thanks for all your help!
CraigGD WebDev wrote:
> Hi,
>
> I have set-up up a database based upon username,
password and security access
> level, the access level contains 3 types of groups.
group 1, group 2 and group
> 3.
>
> I've used the dreamweaver login user server behavior.
Looking at this it only
> allows you to go to one succeed page.
> Because i have got three user access levels, i'm looking
for it to send each
> set of users from each access level to three different
succeed pages.
> In other words, group 1 is sent to one succeed page,
group 2 is sent to a
> different and group 3 to another.
>
> Is there away of doing this?
>
You could do a redirect on the page that they do land on once
succeeded.
My personal preference would be to make one page, and only
show the user
groups parts of the page that they are allowed to see.
Steve -
How to create login page using OAF
Hi,
I am using Jdeveloper 11.1.1.6.0
Plese give me Sample Code creating the log in page .
Thanks
RamHi,
here i am using the webcenter application using the adf faces need secured login page using the OAM.
Thanks
Ram -
How to create login page in JDev
Hi,
First of all I'd like to apologize for posting this, but I just can't find what I'm looking for. I have a project to create an internal application to networked users via JDev/ADF that simply has a login and menu to run some reports and maybe a search screen. I am wondering the best approach since it's not a true web application and also wondering if anyone has a simple example to login to the database where the users are created as database users with assigned roles for table access? Any good advice will be appreciated!
Thanks,
LeeThe link below will walk you through how to implement security in your ADF application.
http://download-west.oracle.com/docs/html/B25947_01/adding_security.htm#BGBGJEAH -
How can i create member login page for my site???
I want to create login page for members on my site.
Hi,
Please refer to the following link Re: secure account login
Regards,
Aish -
Hello Friends>
I want to create Login Page. but main problem is when user click Login Button it checks for validity & display next page but if user click Back Buton of Browser it goes to Login PAge. It should not b like that because if agin user click next button it enters. Pls provide mi solution for this.
THNKS & REGARDStry this
Make all the pages Jsp pages which are pure html pages
and add this
response.setHeader( "Pragma", "no-cache" );
response.addHeader( "Cache-Control", "must-revalidate" );
response.addHeader( "Cache-Control", "no-cache" );
response.addHeader( "Cache-Control", "no-store" );
response.setDateHeader("Expires", 0); -
Hi Experts,
In Hybrid App Design,i am creating login page and giving the values of username and password.These username and password are from oracle ebs work flow database.
In SMP 2.3, function method calling is available or not,the below one is function,i got from oracle,
select fnd_web_sec.validate_login('user123', 'pass123') from dual
with this function i want to u get output values from yes or no condition in login page.
yes :- it goes to next screen.
no :- it fails the condition.
can any one have the output for these function method,please let me know and get materials or links.
Thanks & Regards,
Lokesh Reddy G.Madhukb,
Get your users to create a icon on their page to get around this, the URL should be:
https://secure-ausomxPOD.crmondemand.com/OnDemand/logon.jsp?userid={Username}
substitute POD for your POD name and {username} for the username to appear in the login window.
This will get around the problem.
cheers
Alex -
I m using ms access as database and i want to create a login page in java
hye frnz... plz help me m new to java
m using ms access as database and try to create a login page where user type username and pw
i had enter valid user entries in database i checked connectivity is working i want as user login the main window must open after checking username and pw field to database but
now there is an error class not found exception sun:jdbc...... error
plz help me i had stuck frm 4 days */
import java.sql.DriverManager;
import java.sql.Connection;
import java.sql.Statement;
import java.sql.ResultSet;
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
class Login extends JFrame
//Component Declarations
JLabel jlb1,jlb2;
JTextField jtf1;
JPasswordField jpf1;
JButton jb1,jb2;
//Constructor
Login()
//frame settings
setTitle("Login Dialog");
setLayout(new GridBagLayout());
GridBagConstraints gbc = new GridBagConstraints();
setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
Dimension d= Toolkit.getDefaultToolkit().getScreenSize();
setBounds(d.width/2-175,d.height/2-100,350,200);
gbc.insets=new Insets(7,7,7,7);
//adding components
jlb1=new JLabel("User ID");
gbc.gridx=0;
gbc.gridy=0;
add(jlb1,gbc);
jlb2=new JLabel("Password");
gbc.gridx=0;
gbc.gridy=1;
add(jlb2,gbc);
jtf1=new JTextField(10);
gbc.gridx=1;
gbc.gridy=0;
add(jtf1,gbc);
jpf1=new JPasswordField(10);
gbc.gridx=1;
gbc.gridy=1;
add(jpf1,gbc);
jb1=new JButton("Login");
gbc.gridx=0;
gbc.gridy=2;
add(jb1,gbc);
jb1.addActionListener(new ActionListener()
public void actionPerformed(ActionEvent ae)
Connection conn=null;
Statement stmt=null;
boolean found=false;
try
Class.forName("sun.jdbc.driver.JdbcOdbcDriver");
String dataSourceName = "Inventory";
String dbURL = "jdbc:odbc:" + dataSourceName;
conn=DriverManager.getConnection(dbURL, "","");
stmt=conn.createStatement();
ResultSet rst=stmt.executeQuery("Select * from User");
System.out.println(jtf1.getText()+"/t"+jpf1.getPassword());
while(rst.next())
System.out.println( rst.getString(1) +"/t"+ rst.getString(2));
if(jtf1.getText().equals(rst.getString(1).trim()) && new String(jpf1.getPassword()).equals(rst.getString(2).trim()))
found=true;
rst.close();
dispose();
MainWindow mw= new MainWindow(); /*created min window object created to be opend after login but not working*/
break;
rst.close();
stmt.close();
conn.close();
catch(ClassNotFoundException e){System.out.print(e);}
catch(Exception e){System.out.print(e);}
if(found==false) /*this portion is executing and dialog box appears invalid name and pw with class not found exception sun:jdbc.......on console */
JOptionPane.showMessageDialog(null,"Invalid username or password",
"Error Message",JOptionPane.ERROR_MESSAGE);
jb2=new JButton("Clear");
gbc.gridx=1;
gbc.gridy=2;
add(jb2,gbc);
jb2.addActionListener(new ActionListener()
public void actionPerformed(ActionEvent ae)
jtf1.setText("");
jpf1.setText("");
jtf1.requestFocus();
setSize(350,200);
setVisible(true);
jtf1.requestFocus();
public static void main(String args[])
Login l=new Login();
}http://forums.oracle.com/forums/ann.jspa?annID=599
Oh, and by the way, your keyboard seems to be broken as your words are not getting spelled correctly. -
Plz help using ms access as database,i want to create a login page in java
hye frnz... plz help me m new to java
m using ms access as database and try to create a login page where user type username and pw
i had enter valid user entries in database i checked connectivity is working i want as user login the main window must open after checking username and pw field to database but
now there is an error class not found exception sun:jdbc...... error
plz help me i had stuck frm 4 days */
import java.sql.DriverManager;
import java.sql.Connection;
import java.sql.Statement;
import java.sql.ResultSet;
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
class Login extends JFrame
//Component Declarations
JLabel jlb1,jlb2;
JTextField jtf1;
JPasswordField jpf1;
JButton jb1,jb2;
//Constructor
Login()
//frame settings
setTitle("Login Dialog");
setLayout(new GridBagLayout());
GridBagConstraints gbc = new GridBagConstraints();
setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
Dimension d= Toolkit.getDefaultToolkit().getScreenSize();
setBounds(d.width/2-175,d.height/2-100,350,200);
gbc.insets=new Insets(7,7,7,7);
//adding components
jlb1=new JLabel("User ID");
gbc.gridx=0;
gbc.gridy=0;
add(jlb1,gbc);
jlb2=new JLabel("Password");
gbc.gridx=0;
gbc.gridy=1;
add(jlb2,gbc);
jtf1=new JTextField(10);
gbc.gridx=1;
gbc.gridy=0;
add(jtf1,gbc);
jpf1=new JPasswordField(10);
gbc.gridx=1;
gbc.gridy=1;
add(jpf1,gbc);
jb1=new JButton("Login");
gbc.gridx=0;
gbc.gridy=2;
add(jb1,gbc);
jb1.addActionListener(new ActionListener()
public void actionPerformed(ActionEvent ae)
Connection conn=null;
Statement stmt=null;
boolean found=false;
try
Class.forName("sun.jdbc.driver.JdbcOdbcDriver");
String dataSourceName = "Inventory";
String dbURL = "jdbc:odbc:" + dataSourceName;
conn=DriverManager.getConnection(dbURL, "","");
stmt=conn.createStatement();
ResultSet rst=stmt.executeQuery("Select * from User");
System.out.println(jtf1.getText()+"/t"+jpf1.getPassword());
while(rst.next())
System.out.println( rst.getString(1) +"/t"+ rst.getString(2));
if(jtf1.getText().equals(rst.getString(1).trim()) && new String(jpf1.getPassword()).equals(rst.getString(2).trim()))
found=true;
rst.close();
dispose();
MainWindow mw= new MainWindow(); /*created min window object created to be opend after login but not working*/
break;
rst.close();
stmt.close();
conn.close();
catch(ClassNotFoundException e){System.out.print(e);}
catch(Exception e){System.out.print(e);}
if(found==false) /*this portion is executing and dialog box appears invalid name and pw with class not found exception sun:jdbc.......on console */
JOptionPane.showMessageDialog(null,"Invalid username or password",
"Error Message",JOptionPane.ERROR_MESSAGE);
jb2=new JButton("Clear");
gbc.gridx=1;
gbc.gridy=2;
add(jb2,gbc);
jb2.addActionListener(new ActionListener()
public void actionPerformed(ActionEvent ae)
jtf1.setText("");
jpf1.setText("");
jtf1.requestFocus();
setSize(350,200);
setVisible(true);
jtf1.requestFocus();
public static void main(String args[])
Login l=new Login();
Edited by: 795772 on Sep 19, 2010 4:44 AM795772 wrote:
hye frnz... plz help me m new to java
m using ms access as database and try to create a login page where user type username and pw
i had enter valid user entries in database i checked connectivity is working i want as user login the main window must open after checking username and pw field to database but
now there is an error class not found exception sun:jdbc...... error
plz help me i had stuck frm 4 days */
<snip>The subject of this forum is Oracle databases. How does your problem relate to that subject?
Two bits of advice:
1) Make sure you ask questions in a forum related to your problem.
2) If you want to be taken seriously as a professional, drop the MS IM Speak and use the language of the forum. In this forum it is English, which is successfully used by many people for whom English is far from their native language.
Maybe you are looking for
-
My PCI-6503 card does not get a device number
I have a PCI-6503 I/0 card installed and it apperas corret in the Device Manager. In the MAX explorer it is identified as PXI device. But I don't get a device number for it. What can I do?
-
Can't publish project. "Error -50"?
Can someone please help me out?
-
hi, i have installed the webas ABAP 6.40 system now when i am going for the transaction se80 i am getting the error : "C:\perforce\bas\620_COR\src\fes\few\sapfewin\guifunctionality.xml contains an invalid path " can you please suggest me how to reso
-
Are there any responsive menus for mobile in BC?
Hi folks, I've created mobile/responsive menus in DW but not dynamic ones, so I'm not sure how to do CSS for the non static content, or to address the menu specifically. I know you can govern your menu with custom css, but I'm nt sure how to write i
-
so i just purchased an album off the itunes store and it downloaded fine. but the 2nd song on the album won't download and it says file may be corrupted err -100000. so i called the customer support line and after being tossed around for a half hour