Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

How to Disable the browser back button of JSF page

user575682Mar 5 2008 — edited Dec 5 2008
Hi,
I want to disable the back button of a browser, like even if the user clicks the back button of the page he should not navigate to the previous page, he should be in same page only i tried with
<script language="javaScript">
history.go(1);
</script>
But it is not working, when the user clicks the back button it is going to the previous page, Please help me on the same.

Thanks in Advance
Abraham

Comments

odie_63
Answer
XMLParse is a SQL function, so you can't use a string literal longer than 4000 chars.

Instead, you may declare a PL/SQL VARCHAR2 variable, which can hold up to 32k characters, and then use the XMLType constructor :
DECLARE

 xmlstr VARCHAR2(32767) := '<xml string here>';
 xmldoc xmltype;
 
BEGIN

 xmldoc := xmltype(xmlstr);
 INSERT INTO your_table(xml_data) VALUES(xmldoc);

END;
For strings longer than 32k, you'll probably have to load it from a file.
Marked as Answer by 765321 · Sep 27 2020
1 - 1
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Jan 2 2009
Added on Mar 5 2008
5 comments
1,112 views