Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6944149
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T13:14:56+00:00 2026-05-27T13:14:56+00:00

For a school assignment I have to make a connection to a database from

  • 0

For a school assignment I have to make a connection to a database from a JSP page using a Java bean, which works so far.
Everytime I press this button I want to call a method in my bean..

<INPUT TYPE=SUBMIT VALUE="To DB!"  OnClick="<% DBbean.InsertStatement(); %>" style="width:100%; height:50px ">

Only this doesn’t work.. does anyone have an idea how i can solve this?
Thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T13:14:57+00:00Added an answer on May 27, 2026 at 1:14 pm

    I have some advice:

    1. Don’t continue down this path. Learn and follow the Sun Java coding standards. You’re using C# style; it’d be confusing to another Java developer.
    2. Don’t continue down this path. Your app should use CSS, not mingle style in with markup.
    3. Don’t continue down this path. Your app should not be doing such back end things in the view layer.
    4. Don’t continue down this path. Your app will be susceptible to SQL injection, because you aren’t binding or validating input from users.
    5. Don’t continue down this path. You should not write JSPs with scriptlet code in them; learn JSTL.

    If you must, use JSTL <sql> tags or #include the bean of your choice and call its methods. But I wouldn’t recommend it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

For a database assignment I have to model a system for a school. Part
For an assignment at school, we have to use structs to make matrices that
For a school assignment, we have to make a Usecase diagram. But the documentation
I have an assignment from my university to continue a JAVA card project from
For a school assignment we have to make a client server chat program in
For a school assignment I have to write x86 assembly code, except I can't
I currently have a school assignment that involves both PHP and asp.net. Now the
I'm writing a little genetic algorithm in Java, as a school assignment. Up until
This is a school assignment and I have most of it under control, but
I am doing an assignment for school where we are to make two php

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.