473,396 Members | 1,847 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Store URL in oracle database and access the link from html web page on click of a but

I want to store url in oracle database and when ever I click button from my html page it should navigate to that url page. Is is possible?
Oct 22 '13 #1
10 4072
Dormilich
8,658 Expert Mod 8TB
Is is possible?
yes .
Oct 22 '13 #2
@Dormilich
Hi Could you please give the idea how to store URL in database and retrieve it each time when I click on links from my html webpage.

Thanks in advance.
Oct 23 '13 #3
Dormilich
8,658 Expert Mod 8TB
have you ever worked with a server-side language?
Oct 23 '13 #4
@Dormilich
I am new to programming but I am working on java/jsp and javascript. I need idea how to do that.
Oct 23 '13 #5
Frinavale
9,735 Expert Mod 8TB
This has to be done by your server-side code (this would be your java code). JavaScript cannot store data into a database.

In the appropriate server-side method you will need to use Java to insert the url into your database.

-Frinny
Oct 23 '13 #6
Thanks I have already done the programming To insert the url in the database , but I want to access the url and navigate to the page when button is clicked . The url will be stored in the oracle database ,but how to access the url on click of the button from my webpage .
Oct 23 '13 #7
Frinavale
9,735 Expert Mod 8TB
After your Java code stores the url into the database, have it send a response back to the browser to redirect it to the url provided.
Oct 24 '13 #8
Can please give me the code
Oct 25 '13 #9
Frinavale
9,735 Expert Mod 8TB
It is unfair to ask people for do your work for you.

Please attempt to solve the problem first and then if you have a particular question about the implementation you have attempted ask for help.

Start by researching the suggested solutions that have been discussed so far.

For example, the first result in a google search for "jsp response redirect" came up with this article: jsp - page redirecting. It explains how to use Java code send a redirect to the browser (which you can use after you save the URL into your database).


-Frinny
Oct 25 '13 #10
Frinavale
9,735 Expert Mod 8TB
I think I miss read your question.

You wanted to know how to access the URL from a button click?

What URL?

As you know, your button will submit the page to the server for processing. Are you trying to store the URL of the page that the button submitted to? I'm really not sure why you would want to do this but this is possible.

First we need to cover a few things...

JSP pages and other Java hosted web applications require a web server component to handle page requests from browsers. The web server I used to use many years ago wasTomcat Apache. I'm pretty sure it is the server you are using now.

When Apache receives a request it determines what code should be executed to handle the request and then creates a context for the Java code to run under. In your Java code, you can use the PageContext you can access the requested URL through PageContext.request.contextPath property.

If you are trying to store some other URL that is somehow submitted to your jsp code, then you need to explain where you are getting that URL from.

It has been a very very long time since I've developed Java applications and I don't know how much further I can help you.

I moved your question to the Java forum since your question has nothing to do with JavaScript.


-Frinny
Oct 25 '13 #11

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: vishal | last post by:
i am creating a news site. i am adding new news in database and it must be visible to user at top. and then second latest news and so on. i am displaying 15 news on each page and then put a link...
0
by: Daisy | last post by:
Download Oracle Data Provider for .NET (http://otn.oracle.com/tech/windows/odpnet/index.html) today to empower your .NET applications with the Oracle Database! Try out the new features for XML...
0
by: Daisy | last post by:
To empower your .NET web services with the Oracle Database, download Oracle Data Provider for .NET (ODP.NET) from : http://otn.oracle.com/tech/windows/odpnet/index.html Try out the new features...
0
by: oracleaudit | last post by:
Hello everyone, Can a user with System Adminsitrator access and privileges in the Oracle application (SYSADMIN) access the Oracle database by signing onto the application? If so, how is the...
0
by: Jack | last post by:
Training Classes for Oracle10g, 9i, 8i Certification training in Oracle10g and 9i: DBA, Developer, Discoverer. training conducted at your location worldwide. Courseware licensing also available....
0
by: Winder | last post by:
Training Classes for Oracle10g, 9i, 8i Certification training in Oracle10g and 9i: DBA, Developer, Discoverer. training conducted at your location worldwide. Courseware licensing also available....
2
by: satyaanandandra | last post by:
Hi All, I am using a html page and in that page i have to get the values from the database. My total application is written in asp.net with c# only this page is html page I am not...
1
by: abhishekbrave | last post by:
Hi All, I have developed a web service that return a userid, and i access this webservice from HTML page that will deployed on IIS server. Now i want to access the html page from VB form. Can i...
2
by: zaifi | last post by:
I how to use asp login control with oracle databse..please explain me and source code.
4
aegisteam2
by: aegisteam2 | last post by:
Hi All, I have created one HTML online quality tracker for my QA team once you select the option/fill the data and after click on the submit button the HTML page redirect that data into .asp page...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.