Win a copy of Murach's Python Programming this week in the Jython/Python forum!
    Bookmark Topic Watch Topic
  • New Topic

JSP and AJAX  RSS feed

 
Johan Greyling
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Report post to moderator
How does one isert a record into a oracle database via link on a jsp page.

Using jsp 2.0
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65830
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Report post to moderator
With JDBC.

Perhaps a more specific question can result in a more specific answer.
 
Johan Greyling
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Report post to moderator
I have to insert a record into a table in a oracle database every time a link is clicked without reloading the page. There are lots of links on the jsp - this is for auditing.

I hope this is more clear
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65830
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Report post to moderator
Not really. What part has you flummoxed? The JDBC? The JSP? The Ajax?

What have you already got set up or thought of?

Be sure to show some effort to make the most of the help you can get here.
 
Johan Greyling
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Report post to moderator
I have NEVER EVER worked with Ajax. I have no idea what to do.

I am developer and know how to insert data into a databse, use servlets the whole 9yards, just not using Ajax.

Let me give describe my perdicament - we have a portal jsp with lots of links in the menu that open new windows, the menu is built dynamically out of the database.

I need to find a way of recording what the user clicked in the menu and write it to a table, without the page housing the link menu reloading.

Thank you.

[ August 18, 2008: Message edited by: Johan Greyling ]
[ August 19, 2008: Message edited by: Johan Greyling ]
 
Hussein Baghdadi
clojure forum advocate
Bartender
Posts: 3479
Clojure Mac Objective C
  • Mark post as helpful
  • send pies
  • Report post to moderator
Originally posted by Johan Greyling:
I have NEVER EVER worked with Ajax. I have no idea what to do.

I am developer and know how to insert data into a databse, use servlets the whole 9yards, just not using Ajax.

Let me give describe my perdicament - we have a portal jsp with lots of links in the menu that open new windows, the menu is built dynamically out of the database.

I need to find a way of recording what the user clicked in the menu and write it to a table, without the page housing the link menu reloading.

Thank you.

[ August 18, 2008: Message edited by: Johan Greyling ]

[ August 19, 2008: Message edited by: Johan Greyling ]


I think you should learn an Ajax framework like jQuery, Prototype or DWR (a Java centric solution very useful in your case).
 
Johan Greyling
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Report post to moderator
Hi, I am working on a project, I don't have time to learn this right now, I would love to get into it, but there are deadlines to be met.

I can't seem to get any help here. I don't know what to do or how to ask it better.

I'm at a loss.
 
Hussein Baghdadi
clojure forum advocate
Bartender
Posts: 3479
Clojure Mac Objective C
  • Mark post as helpful
  • send pies
  • Report post to moderator
You can grasp Prototype or DWR in a matter of a couple of hours.
How you are supposed to build applications if you don't have time to learn new things (or not allowed to learn)?
Yes, time line is a major issue but it shouldn't stops you from learning new shenanigans.
Consider evaluating DWR as a spike
http://www.extremeprogramming.org/rules/spike.html
 
Johan Greyling
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Report post to moderator
Thank you, will have a look.

Cheers
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65830
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Report post to moderator
Please do not post more than one topic for a question. As you have continued this discussion into another topic that has ongoing activity, I'm closing this one.
 
It is sorta covered in the JavaRanch Style Guide.
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!