Jump to content

Check out our Community Blogs

Register and join over 40,000 other developers!

Recent Topics

Recent Status Updates

View All Updates

- - - - -

using buttons on html forms in jsp files to load other forms

java jsp css

  • Please log in to reply
No replies to this topic

#1 SnydeMz


    CC Lurker

  • New Member
  • Pip
  • 8 posts

Posted 17 February 2016 - 03:22 AM

Hi guys,

Im working on a web application with numerous modules. Im on the first module which has three buttons, new account, sign in and exit. I am new to java web applications. I have just created a jsp file and put html buttons onto it and now want to know what code to write to make sure those buttons when clicked load the right form,


        <link rel="stylesheet" href="Style_SignIn.css" type="text/css" />
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <div id="title">
        <title>Welcome to Intellepetro | Please sign in | For first timers create an account</title>
    <body style="font-family: Segoe UI Light">
        <div id="welcome"> <h1 >Welcome</h1> </div>
        <div id "buttons">
            <div id="newaccount"> <input type="submit" value="New Account" name="New Account" /></div>
            <div id="signin"> <input type="submit" value="Sign In" name="Sign In" /></div>
            <div id="exit"> <input type="submit" value="Close" name="Exit" /></


the css:



#title { color: #00468C; font-size: 20px;}
#welcome{ font-size: 18px; font-weight: bold; color: #88C4FF; background: #00468C;}
#newaccount{background: #1C8DFF;}
#signin{background: #FF9D3C;}
#exit{background: #C400C4;}
#buttons{color: #FFFFFF; font-weight: bold; font-size: 13px; border-radius: 3px; border: solid 2px #FFFFFF; width: 180px; height: 45px; }

do i need to do some php scripting to enable functionality of the buttons or do i have the wrong approach and need to use JFrame and JButtton with action listeners?

  • 0

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download