Posting from HTML DB to OFO
Does anyone have an idea for how to post files from an HTML DB application to an OFO folder?
Hello,
Hi i want to know what is OFP process.
quick response will be appreciable please...
You've given us almost nothing to go on....
Exactly what do you want? What are you trying to achieve? What is the problem?
John.
http://jes.blogs.shellprompt.net
http://www.apex-evangelists.com
Similar Messages
-
JEditorPane can't handle POST from HTML form?
I posted this before but i never got an answer so i'll try again :-)
Im running a tomcat server were i have a jsp script that uploads files to the server. What i need to do to is to use a regular java application for the rest of the "project" im working on.
And i can get the JSP page to be displayed properly using JEditorPane but i cant get the html FORM POST in the JSP to execute... i dont know if theres some limits in JEditorPane or if im just using the wrong type of approach on this one.
This is the server
http://chilly-schrimp.kicks-ass.org/uploadbean/SimpleUpload.jsp
(only works if my computer is turned on)
Heres the code:
=======================================================================
import javax.swing.*;
import javax.swing.event.*;
import java.io.*;
public class JSPtest {
public static void main(String[] args) {
JEditorPane pane = null;
try {
pane = new JEditorPane("http://chilly-schrimp.kicks-ass.org/uploadbean/SimpleUpload.jsp");
catch (IOException ex) {
ex.printStackTrace(System.err);
System.exit(1);
pane.setEditable(false);
// Add a hyperlink listener.
final JEditorPane finalPane = pane;
pane.addHyperlinkListener(new HyperlinkListener() {
public void hyperlinkUpdate(HyperlinkEvent ev) {
try {
if (ev.getEventType() == HyperlinkEvent.EventType.ACTIVATED)
finalPane.setPage(ev.getURL());
} catch (IOException ex) { ex.printStackTrace(System.err); }
JFrame frame = new JFrame();
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.setContentPane(new JScrollPane(finalPane));
frame.setSize(350,400);
frame.setVisible(true);
=======================================================================
any suggestions??
thanx
/ericI am using request.getParameter(passed variable name)
to pass data from HTML form to JSP with no problem.
WHen I try to pass data from HTML form of
multipart/form-dta type to JSP as following:
< form enctype="multipart/form-data" name="theForm"
method="post"
ACTION="http://titan.ssd.loral.com:7778/ifs/jsp-bin/if
-cts/stringsecond.jsp">
The passed value is null. Why?because the jsp most likely does not handling of POST parameters like this.
How can I pass data successfully from this form to
JSP?jsp's are not meant to read such amounts of data. this (= uploading) is a typical task for a specialized servlet. there you have full control over input and output. if you need to, you can still forward to a jsp after processing in the servlet.
How can I pass data from JavaScript to JSP???? i'm not sure what exactly you mean. normally you put it into an url and submit it.
robert -
Solved: process POST from html form
Hello,
I have the next question, I have a public website (in an other technology) that uses the "POST" method of an html form to navigate to my application.
One of the fields on the html form is the field "name".
I was wondering if their is any possibility to get the value of the field "name" when I come on my ApEx page?
I hope i'm making some sense here.
Thanks in advance
Kind regards,
OliPerhaps this will help....
http://htmldb.oracle.com/pls/otn/f?p=9487:65
Run the demo and try the view_http_post_flex_redirect procedure call. -
Read values from html response
Hi,
I am trying to make a call to an API using UTL_HTTP POST method over SSL and read the response html page and extract the values from the reponse.
I am able to call and get a response back in html format. I have stored the html response in a clob variable.
Now i want to parse this html and extract values from the form input items and send them out through OUT parameters.
For example, from below reponse i want to extract the value '1111d7nhcwse30wq' from 'I4GO_UNIQUEID'
Can anyone help me with the code to parse this html response and extract the values.
Any help is greatly appreciated.
Thanks
Sharath
sample Code:
PROCEDURE get_token (
p_requesterreference IN VARCHAR2,
p_cardnumber IN VARCHAR2,
p_cardtype IN VARCHAR2,
p_cardholdername IN VARCHAR2,
p_expirationmonth IN VARCHAR2,
p_expirationyear IN VARCHAR2,
p_streetaddress IN VARCHAR2,
p_postalcode IN VARCHAR2,
p_cvv2code IN VARCHAR2,
po_uniqueid OUT VARCHAR2,
po_errorindicator OUT VARCHAR2,
po_primaryerrorcode OUT VARCHAR2,
po_response OUT VARCHAR2,
po_status_code OUT VARCHAR2,
po_reason_phrase OUT VARCHAR2
IS
v_url VARCHAR2 (200);
v_url_params VARCHAR2 (32767);
v_resp_str VARCHAR2 (32767);
l_http_req UTL_HTTP.req;
l_http_resp UTL_HTTP.resp;
v_requesterreference VARCHAR2 (12) := p_requesterreference;
v_i4go_cardnumber VARCHAR2 (32) := p_cardnumber;
v_i4go_streetaddress VARCHAR2 (30) := p_streetaddress;
v_i4go_postalcode VARCHAR2 (9) := p_postalcode;
v_i4go_expirationmonth VARCHAR2 (2) := p_expirationmonth; -- MM format
v_i4go_expirationyear VARCHAR2 (2) := p_expirationyear; -- yy format
v_i4go_cvv2code VARCHAR2 (3) := p_cvv2code;
v_name VARCHAR2 (256);
v_value VARCHAR2 (1024);
l_clob CLOB;
pv_amp CONSTANT CHAR (1) := CHR (38);
CURSOR setup_cur
IS
SELECT interface_id, interface_name, interface_url, account_id, site_id
FROM rsv.shift4_setup
WHERE interface_name = 'I4GO';
v_setup_rec setup_cur%ROWTYPE;
BEGIN
OPEN setup_cur;
FETCH setup_cur
INTO v_setup_rec;
CLOSE setup_cur;
v_url := 'https://certify.i4go.com//index.cfm?fuseaction=account.PostCardEntry';
v_url_params :=
pv_amp
|| 'i4GO_AccountID='
|| v_setup_rec.account_id
|| pv_amp
|| 'i4Go_SiteID='
|| v_setup_rec.site_id
|| pv_amp
|| 'i4Go_CardNumber='
|| v_i4go_cardnumber
|| pv_amp
|| 'i4Go_ExpirationMonth='
|| v_i4go_expirationmonth
|| pv_amp
|| 'i4Go_ExpirationYear='
|| v_i4go_expirationyear
|| pv_amp
|| 'i4Go_CVV2Code='
|| v_i4go_cvv2code
|| pv_amp
|| 'i4Go_PostalCode='
|| v_i4go_postalcode;
-- begin request using POST method
UTL_HTTP.set_response_error_check (FALSE);
UTL_HTTP.set_transfer_timeout (180);
UTL_HTTP.set_wallet ('file:/etc/ORACLE/WALLETS/oracle', 'welcome1');
l_http_req := UTL_HTTP.begin_request (v_url, 'POST');
UTL_HTTP.set_header (l_http_req, 'User-Agent', 'Mozilla/4.0');
UTL_HTTP.set_header (l_http_req, 'Content-Type', 'application/x-www-form-urlencoded');
UTL_HTTP.set_header (l_http_req, 'content-length', LENGTH (v_url_params));
UTL_HTTP.write_text (l_http_req, v_url_params);
-- get response
l_http_resp := UTL_HTTP.get_response (l_http_req);
po_status_code := l_http_resp.status_code;
po_reason_phrase := l_http_resp.reason_phrase;
-- read response into a clob
DBMS_LOB.createtemporary (l_clob, FALSE);
BEGIN
LOOP
UTL_HTTP.read_text (l_http_resp, v_resp_str, 32767);
DBMS_LOB.writeappend (l_clob, LENGTH (v_resp_str), v_resp_str);
END LOOP;
EXCEPTION
WHEN UTL_HTTP.end_of_body
THEN
-- end response
UTL_HTTP.end_response (l_http_resp);
END;
-- Fre resources
DBMS_LOB.freetemporary (l_clob);
EXCEPTION
WHEN OTHERS
THEN
DBMS_LOB.freetemporary (l_clob);
DBMS_OUTPUT.put_line (UTL_HTTP.get_detailed_sqlerrm);
RAISE;
END;
sample response:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Return With Payment Token</title>
<script src="js/jquery-1.6.4.min.js" type="text/javascript"></script>
<script type="text/javascript"><!--
picSpinner= new Image(40,40);
picSpinner.src="images/loading040.gif";
bodyOnLoad = function() {
$("#noScriptDiv").hide();
$("#scriptDiv").show();
$("#i4GoMainForm").submit();
//--></script>
</head>
<body onload="bodyOnLoad();">
<form name="i4GoMainForm" id="i4GoMainForm" action="http://google.com" method="POST" onsubmit="$('#i4Go_submit').attr('disabled','disabled');">
<input name="I4GO_RESPONSE" type="hidden" value="SUCCESS" />
<input name="I4GO_RESPONSECODE" type="hidden" value="1" />
<input name="I4GO_CARDTYPE" type="hidden" value="VS" />
<input name="I4GO_UNIQUEID" type="hidden" value="1111d7nhcwse30wq" />
<input name="I4GO_EXPIRATIONMONTH" type="hidden" value="12" />
<input name="I4GO_EXPIRATIONYEAR" type="hidden" value="2012" />
<input name="I4GO_CARDHOLDERNAME" type="hidden" value="" />
<input name="I4GO_STREETADDRESS" type="hidden" value="" />
<input name="I4GO_POSTALCODE" type="hidden" value="65000" />
<div id="scriptDiv" style="font-family:Arial, Helvetica, sans-serif;font-size:18px;visibility:hidden;">
<img src="images/loading040.gif" alt="Spinner..." /> Loading...
</div>
<div id="noScriptDiv" style="font-family:Arial, Helvetica, sans-serif;">
<noscript>
<h1>Statement of Tokenization</h1>
<p>The payment information you have submitted has been securely stored in the Shift4 PCI-DSS certified data center and a token representing this information will be sent to the merchant for processing. Below is the information that will be returning to the originating merchant:</p>
<ul>
<li>Response: <strong>SUCCESS</strong></li>
<li>Response Code: <strong>1</strong></li>
<li>Card Type: <strong>VS</strong></li>
<li>Token: <strong>1111d7nhcwse30wq</strong></li>
</ul>
</noscript>
<input type="submit" name="i4Go_submit" id="i4Go_submit" value="Continue" />
</div>
</form>
</body>
</html>
Edited by: sgudipat on Apr 24, 2012 1:20 PMHere is working example for your HTML using xpath to extract values from html
You can store your html response in clob variable and then extract the value with xpath
declare
l_clob clob;
l_value varchar2(100);
l_xml xmltype;
begin
l_clob :='<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Return With Payment Token</title>
<script src="js/jquery-1.6.4.min.js" type="text/javascript"></script>
<script type="text/javascript"><!--
picSpinner= new Image(40,40);
picSpinner.src="images/loading040.gif";
bodyOnLoad = function() {
$("#noScriptDiv").hide();
$("#scriptDiv").show();
$("#i4GoMainForm").submit();
//--></script>
</head>
<body onload="bodyOnLoad();">
<form name="i4GoMainForm" id="i4GoMainForm" action="http://google.com" method="POST" onsubmit="$(''#i4Go_submit'').attr(''disabled'',''disabled'');">
<input name="I4GO_RESPONSE" type="hidden" value="SUCCESS" />
<input name="I4GO_RESPONSECODE" type="hidden" value="1" />
<input name="I4GO_CARDTYPE" type="hidden" value="VS" />
<input name="I4GO_UNIQUEID" type="hidden" value="1111d7nhcwse30wq" />
<input name="I4GO_EXPIRATIONMONTH" type="hidden" value="12" />
<input name="I4GO_EXPIRATIONYEAR" type="hidden" value="2012" />
<input name="I4GO_CARDHOLDERNAME" type="hidden" value="" />
<input name="I4GO_STREETADDRESS" type="hidden" value="" />
<input name="I4GO_POSTALCODE" type="hidden" value="65000" />
<img src="images/loading040.gif" alt="Spinner..." /> Loading...
<noscript>
Statement of Tokenization
The payment information you have submitted has been securely stored in the Shift4 PCI-DSS certified data center and a token representing this information will be sent to the merchant for processing. Below is the information that will be returning to the originating merchant:
Response: SUCCESS
Response Code: 1
Card Type: VS
Token: 1111d7nhcwse30wq
</noscript>
<input type="submit" name="i4Go_submit" id="i4Go_submit" value="Continue" />
</form>
</body>
</html>';
execute immediate 'alter session set events =''31156 trace name context forever, level 2''';
l_xml := xmltype(l_clob);
execute immediate 'alter session set events =''31156 trace name context off''';
select extractvalue( l_xml
, '/html/body/form/input[@name="I4GO_CARDTYPE"]/@value'
, 'xmlns="http://www.w3.org/1999/xhtml"' )
into l_value
from dual;
dbms_output.put_line(l_value);
end;
Problem when parsing html with xpath and xmltype
Edited by: peterv6i.blogspot.com on Apr 26, 2012 9:38 AM -
Problem while calling java function from html
when i tried to call a java function from html i'm getting an error
object don't support this property.
what could be the reason.
This is my html.
I got this from this forum only.
My applet is accessing the system property "user.home".
I ran it in IE
<DIV id="dvObjectHolder">Applet comes here</DIV>
<br><br>
<script>
if(window.navigator.appName.toLowerCase().indexOf("netscape")!=-1){ // set object for Netscape:
document.getElementById('dvObjectHolder').innerHTML = " <object ID='appletTest1' classid=\"java:test.class\"" +
"height=\"0\" width=\"0\" onError=\"changeObject();\"" +
">" +
"<param name=\"mayscript\" value=\"Y\">" +
"<param name=\"archive\" value=\"sTest.jar\">" +
"</object>";
}else if(window.navigator.appName.toLowerCase().indexOf('internet explorer')!=-1){ //set object for IE
document.getElementById('dvObjectHolder').innerHTML = "<object ID='appletTest1' classid=\"clsid:8AD9C840-044E-11D1-B3E9-00805F499D93\"" +
" height=\"0\" width=\"0\" >" +
" <param name=\"code\" value=\"test.class\" />" +
"<param name=\"archive\" value=\"sTest.jar\">" +
" </object>"
</script>
<LABEL id="lblOutputText">This text will be replaced by the applet</LABEL>
<BR>
<input value="Javascript to java" type=button onClick="document.appletTest1.fromJavaScript()">I tried this example using the repy given to an earlier post.
But its not working with me.
What i did in addition was adding plugin.jar to classpath to import netscape.javascript.*;
Let me add some more details
1) I'll add the stack trace
2) my java progrma
3) batch file to sign the applet.
1) This is the stack trace i don't know whether u will undertand this
load: class test.class not found.
java.lang.ClassNotFoundException: test.class
at sun.applet.AppletClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadCode(Unknown Source)
at sun.applet.AppletPanel.createApplet(Unknown Source)
at sun.plugin.AppletViewer.createApplet(Unknown Source)
at sun.applet.AppletPanel.runLoader(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.io.FileNotFoundException: C:\FastranJava\AppletObject\bin\test\class.class (The system cannot find the path specified)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(Unknown Source)
at java.io.FileInputStream.<init>(Unknown Source)
at sun.net.www.protocol.file.FileURLConnection.connect(Unknown Source)
at sun.net.www.protocol.file.FileURLConnection.getInputStream(Unknown Source)
at sun.applet.AppletClassLoader.getBytes(Unknown Source)
at sun.applet.AppletClassLoader.access$100(Unknown Source)
at sun.applet.AppletClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
... 10 more
Exception in thread "Thread-5" java.lang.NullPointerException
at sun.plugin.util.GrayBoxPainter.showLoadingError(Unknown Source)
at sun.plugin.AppletViewer.showAppletException(Unknown Source)
at sun.applet.AppletPanel.runLoader(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
2) Java Program
import netscape.javascript.*;
import java.applet.*;
public class test extends Applet
private JSObject win;
private JSObject outputLabel;
private boolean buttonFromJavaClicked=false;
checkJavaScriptEvent evt=new checkJavaScriptEvent();
public void init()
try
evt.start();
win=JSObject.getWindow(this);
outputLabel=(JSObject)win.eval("document.getElementById('lblOutputText')");
outputLabel.setMember("innerHTML", "<center><h1>From Init<br>Your Home directory" + System.getProperty("user.home") + "</h1></center>");
catch(Exception e)
e.printStackTrace();
public void fromJavaScript()
buttonFromJavaClicked=true;
public void fromJavaScript2()
System.out.println("Started Form JavaScript2");
try
String strLbl="<center><h1>From JavaScript<br>Your Homedir:" + System.getProperty("user.home") + "</h1></center>";
outputLabel.setMember("innerHTML", strLbl);
catch(Exception e)
e.printStackTrace();
class checkJavaScriptEvent extends Thread
public void run()
while(true)
if(test.this.buttonFromJavaClicked)
System.out.println("OK buttonfromjava is true");
test.this.buttonFromJavaClicked=false;
fromJavaScript2();
try
Thread.sleep(3000);
catch(Exception e)
e.printStackTrace();
3) Batch file
del *.cer
del *.com
del *.jar
del *.class
javac -classpath ".;C:\Program Files\Java\jre1.5.0_06\lib\plugin.jar" test.java
keytool -genkey -keystore harm.com -keyalg rsa -dname "CN=Harm Meijer, OU=Technology, O=org, L=Amsterdam, ST=, C=NL" -alias harm -validity 3600 -keypass password -storepass password
jar cf0 test.jar *.class
jarsigner -keystore harm.com -storepass password -keypass password -signedjar sTest.jar test.jar harm
del *.class -
Http post from an application with file attachment
Hi ! I didn't know where else to post this message...
I'm trying to make a HTTP POST from an application and upload a file with it. I have no problems with the posting, just that I haven't got any ideas how to get the file uploaded as well. I've been reading loads of examples regarding the topic, and searching older posts the forum here, without any help.
Here's the method i'm using:
// open connections
URL url = new URL ("TheURL");
URLConnection urlConn = url.openConnection();
// We do input & output, without caching
urlConn.setDoInput (true);
urlConn.setDoOutput (true);
urlConn.setUseCaches (false);
// multipart/form-data because we want to upload a file
urlConn.setRequestProperty ("Content-Type", "multipart/form-data");
// Open output stream
DataOutputStream printout = new DataOutputStream (urlConn.getOutputStream ());
// Set the actual content
String content = "upfile=" + System.getProperty("user.dir") + "\\file.ext&";
content += "other_key-value_pairs";
// write the data to stream, and flush it.
printout.writeBytes (URLEncoder.encode(content));
printout.flush ();
printout.close ();
// Get the response.
DataInputStream input = new DataInputStream (urlConn.getInputStream());
FileOutputStream fos=new FileOutputStream("postto.txt");
String str;
BufferedReader bufr = new BufferedReader(new InputStreamReader(input));
// Write response to outputfile
while (null != ((str = bufr.readLine()))) {
if (str.length() >0) {
fos.write(str.getBytes());
fos.write(new String("\n").getBytes());
input.close ();Now, the response here I get from the url i'm posting to is "Failure, no data-file". I've tried many diff methods of writing the file to the stream, but always get the same result.
I need to file attached like it would be when using a HTML form's <input type="file">.
Please help ! This is getting really urgent !String content = "upfile=" + System.getProperty("user.dir") + "\\file.ext&";
content += "other_key-value_pairs";
printout.writeBytes (URLEncoder.encode(content));
printout.flush ();
printout.close ();Actually, what this does is create a request like:
GET /path/to/file/script.language?upfile=/home/user/file.ext&other=params HTTP/1.1
Content-Type: multipart/form-data
-- And other HTTP params --
The file is not actually appended to the request.
I really don't know how Java handles the file upload, but you could do it by hand, like so:
public static void doFileUpload(String url, String filename, Hashtable params) throws IOException {
// Construct the request
String boundary = "----------------------mUlTiPaRtBoUnDaRy";
String request_head = "POST " + url + " HTTP/1.0\r\n" +
"Content-type: multipart/form-data; boundary=" + boundary + "\r\n";
String request_body = boundary + "\r\n\r\nContent-disposition: form-data; name=\"upload\"" +
"\r\n\r\n";
BufferedReader in = new BufferedReader(new InputStreamReader(new FileInputStream(filename)));
int b = -1;
while((b = in.read()) != -1) {
request_body += (char)b;
in.close();
Enumeration keys = params.keys();
while(keys.hasMoreElements()) {
String key = keys.nextElement();
requst_body += "\r\n" + boundary + "\r\n\r\nContent-type: form-data; name=\"key\"\r\n" +
(String)params.get(key);
request_body += "\r\n" + boundary + "--\r\n";
int length = request_head.length() + request_body.length() + "Content-length: \r\n";
String req_length = "Content-length: " + (length + new String("" + length).length()) + "\r\n";
Socket socket = new Socket(url,80);
PrintStream stream = socket.getOutputStream();
stream.print(request_head + req_length + req_body);
// And now an option to read the response, I will omit that...
}Note: I have not tested this code, just wrote it up out of memory. If it does not work, it will propably need some small fixes.
Tuomas Rinta -
Can't pass parameter from HTML form of multipart/form-dta type to JSP
I am using request.getParameter(passed variable name) to pass data from HTML form to JSP with no problem. WHen I try to pass data from HTML form of multipart/form-dta type to JSP as following:
< form enctype="multipart/form-data" name="theForm" method="post" ACTION="http://titan.ssd.loral.com:7778/ifs/jsp-bin/ifs-cts/stringsecond.jsp">
The passed value is null. Why?
How can I pass data successfully from this form to JSP?
How can I pass data from JavaScript to JSP?
Thank youI am using request.getParameter(passed variable name)
to pass data from HTML form to JSP with no problem.
WHen I try to pass data from HTML form of
multipart/form-dta type to JSP as following:
< form enctype="multipart/form-data" name="theForm"
method="post"
ACTION="http://titan.ssd.loral.com:7778/ifs/jsp-bin/if
-cts/stringsecond.jsp">
The passed value is null. Why?because the jsp most likely does not handling of POST parameters like this.
How can I pass data successfully from this form to
JSP?jsp's are not meant to read such amounts of data. this (= uploading) is a typical task for a specialized servlet. there you have full control over input and output. if you need to, you can still forward to a jsp after processing in the servlet.
How can I pass data from JavaScript to JSP???? i'm not sure what exactly you mean. normally you put it into an url and submit it.
robert -
Pass data to JSP from HTML?
I can pass the data in a HTML form without problem if the form is in the same jsp file. I have no problem to pass data from one jsp file to another one. But when the jsp file has to take the data passed from calling HTML file and has to receive the data from the same jsp file, then the data from other HTML file will be null the first time runing the code, then second time will be passed right. If I shut down computer run the code again, same problem until the second time. Please tell me why if any of you know!
yes. The first part is HTML file which use the form to pass v_progname, the second part is a jsp file, it suppose to get the data in v_prgname, but the first time to run this code always get null, then the second time get the right data?
<html> <head> <title>CTI</title>
<meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> </head>
<body bgcolor="#FFFFFF"> <form name="theForm" enctype="text/html" method="post"
action="http://titan.ssd.loral.com:7778/ifs/jsp-bin/ifs-cts/jsps/uploadfilehome.jsp">
<table border="1" cellspacing="0" cellpadding="4">
<tr> <td bgcolor="#FFFFEE"><font face="Arial, Helvetica,sans-serif" size="2"> Communication racking Item </font></td> <td colspan="5"><font face="Arial, Helvetica, sans-serif"size="2">SATMEX-6-2 </td>
<input type="hidden" name="v_sidname"value="/expctl/dev//comm_tracking.edit_document">
<input type="hidden" name="v_schema"value="migra2">
<input type="hidden" name="v_cti_number"value="SATMEX-6-2">
<input type="hidden" name="v_progname"value="satmex-8">
<input type="hidden" name="v_doc_id"value="5131"> </tr> </table><br>
<input type="submit" value="Upload Document">
<input type="reset" value="Reset"></form></body></html>
uploadfilehome.jsp as following:
<html><head>
<%
String v_program=request.getParameter("v_progname");//this is the parameter passed from html file, //with a problem?
WebUILogin login = WebUILogin.getWebUILogin( request );
String step = WebUIUtils.getUTF8Parameter(request,"step");
//String path=WebUIUtils.getUTF8Parameter(request,"path");
String path="/home/scott/satmex-6";
String windowID=WebUIUtils.getNewWindowID();
%>
<SCRIPT LANGUAGE="JavaScript1.2">
var path="<%=path%>";
var jsWindowID="<%=windowID%>";
</script>
<%
if ( null == step )
step = "get";
%>
<SCRIPT LANGUAGE="JavaScript">
function AutoLogin() {
document.loginform.userName.value == "scott";
document.loginform.passWord.value == "tiger";
document.loginform.submit();
function PkeyPress(event)
if (document.layers)
if (event.which==13)
document.loginform.submit();
else {
if (window.event.keyCode==13)
document.loginform.submit();
</SCRIPT>
<%
if ( step.equals("try") )
login.processRequest(request);
%>
<SCRIPT LANGUAGE="JavaScript1.2">
window.location='../jsps/uploadhome.jsp?path='+path+'&windowID='+jsWindowID;
</script>
<%
// check to see if we have already logged in before...
if ( null != login.getSession() )
%>
<SCRIPT LANGUAGE="JavaScript1.2">
window.location='../jsps/uploadhome.jsp?path='+path+'&windowID='+jsWindowID;
</script>
<%
else
%>
<title><%=login.getJspResourceString(JspResourcesID.LOGIN_TITLE)%></title>
</head>
<body bgcolor="#FFFFFF" onLoad="AutoLogin();" onResize="return false;">
<form METHOD=POST NAME="loginform" ACTION="uploadfilehome.jsp">
<INPUT TYPE="hidden" NAME="userName" VALUE="scott">
<INPUT TYPE="hidden" NAME="passWord" VALUE="tiger" onKeyPress="PkeyPress(event);">
<INPUT TYPE="hidden" NAME="step" VALUE="try">
<INPUT TYPE="hidden" NAME="action" VALUE="Login">
</form>
</body>
</html>
<%
%> -
Posting From IE11 in Windows 8.1
I've put up a couple of test systems on the Windows 8.1 Preview, both Pro and Enterprise editions.
Just testing to see how the forum interacts with Internet Explorer 11. So far so good - I have been able to log in and see things looking pretty much right.
Something I'm curious about is whether "quoted" strings are handled properly, because we have seen the double quote character changed to what looks like an HTML escape sequence by the forum software when IE10 under Windows 8 is used to access the forum.
So here goes.
"Quoted text"
If the above comes out with double-quote characters at the ends, that will be happy news.
Also, in typing this, I noticed that the forum software thinks I'm leaving the page every time I press a control - e.g., the Bold, "Insert Image", or font size controls, and puts this up:
-NoelHere I am, posting from a copy of Windows 8.1 RTM, available to the public for more than a week now, using the released version of IE11...
The "quoted text" problem is still with us (noting the quotes on this line have been changed to HTMLese.
The are you sure you want to navigate away from this page? problem I reported above so long ago is still with us...
And now we have a new problem. The following pops up, after which you lose your post (I've had to type this twice).
It's apalling to see how poorly Adobe is keeping up with technology. How the hell do you folks expect to be considered the best source for content creation tools with this kind of web site management?
Do you think no one notices?
-Noel -
How to passing value into Captivate from html?
How to passing value into Captivate from html?
Or
How to communicate between objects in one slides?Hi czhao0378 and welcome to the forums!
Captivate does not natively allow you to communicate your own
data, either internally or externally. The only way to make this
happen is to create your own functionality, either via custom-built
Flash objects or JavaScript code executed in the browser or a
combination of both.
The only example I've seen of any "data passing" inside
Captivate is a custom text input/output solution that was posted on
the Captivate Developer Exchange:
http://www.adobe.com/cfusion/exchange/index.cfm?event=extensionDetail&loc=en_us&extid=1253 021
This solution consists of an input box that takes information
from the user on one slide and a second box that displays that
information on another slide. The functionality was built in Flash
and is embedded in Captivate as a Flash "animation". Unfortunately,
since this is a custom functionality, the information is not
included in the user completion results Captivate can pass to a
Learning Management System.
Since the solution mentioned above relies on a Flash
Actionscript variable to hold the information that is displayed,
you can also pass the information from HTML to Captivate using the
"SetVariable" command in JavaScript. This would at least allow you
to display your own HTML-based data inside Captivate.
Beyond that, I'm not aware of any other way to gather and
pass data in Captivate. -
Create RSS feed from HTML DB?
I've been using a streaming RSS feed extension in Firefox for several months now and get feeds from all over including asktom.oracle.com and http://www.oracle.com/technology/products/database/htmldb/index.html. Very cool.
Recently I've installed HTML DB and have begun creating some basic reports - nothing very dramatic as I'm just learning. Now I'd like to begin sending out RSS feeds from my HTML DB application to my RSS extension in my Firefox browser but can't find an easy way to do it.
I see several posts of others wishing to do the opposite (read RSS feeds into their HTML DB application) but nothing that shows how to create a feed from HTML DB.
I looked at Tom's description of his method at http://asktom.oracle.com/~sdillon/rss.html but this seems very cumbersome to me - is there an easier way?
I would think that there should be a "create RSS" feed button somewhere in the HTML DB interface when I'm defining the page's attributes.
Thanks in advance for any advice/suggestions.Actually, Tom's method is not as hard as it looks.
You can really just copy it all into your own procedure and replace the inner query. -
Hi,
Sorry if I have posted wrongly in this forum. I dont know where to post this question.
Actually I have a jsp page . In that I have javascript function from where I open a window using window.open. I open a html page using that.
Now from html page I have to access a function which is in the jsp page. i.e accessing a parent's function from child . But the parent is jsp and child is html. How to do that.?
Please let me know.
Thank youJust the same as normal HTML
In child window
window.opener.parentfunctionname() -
Hi,
I want to call a JSP file from HTML. Is it possibel? How can it be done.
Thanks.download a standalone server like tomcat or jswdk. tomcat is recommended.
if you know how to write html then make a form with your action forwarding to your jsp page and use a post or get method. actually just look here.
http://www.coreservlets.com/Apache-Tomcat-Tutorial/ -
How to get the values from html:select? tag..?
i tried with this, but its not working...
<html:select styleClass="text" name="querydefs" property="shortcut"
onchange="retrieveOptions()" styleId="firstBox" indexed="true">
<html:options collection="advanced.choices" property="shortcut" labelProperty="label" />
</html:select>
<td align="left" class="rowcolor1">
<script language="javascript" type="text/javascript">
function retrieveOptions(){
var sel = document.querydefs.options;
var selectedOption = sel[sel.selectedIndex].value;
document.write(selectedOption);
</script><td align="left" class="rowcolor1">
<script language="javascript" type="text/javascript">
function retrieveOptions(){
var sel = document.querydefs.options;
var selectedOption = sel[sel.selectedIndex].value;
document.write(selectedOption);
</script>This java script is not working at all..its not printing anything in document.write();
This is code..
<td class="rowcolor1" width="20%">
<html:select styleClass="text" name="querydefs" property="shortcut"
onchange="retrieveSecondOptions()" styleId="firstBox"
indexed="true">
<html:options collection="advanced.choices" property="shortcut"
labelProperty="label" />
</html:select>i tried with this also. but no use..i'm not the getting the seleced option...
function retrieveOptions(){
firstBox = document.getElementById('firstBox');
if(firstBox.selectedIndex==0){
return;
selectedOption = firstBox.options[firstBox.selectedIndex].value;
}actually , how to get the values from <html:select> ...?
my idea is to know which value is selected from the combo box(<html:select> ) if that value is equal some string i have enable a hyperlink to open a popup window -
While creating pdf from html, the alignment is not proper
Hi,
In my application, I am creating a pdf report from html using (using Generate pdf 1.1 - HTML URL To PDF activity) which contains certain images and descriptions.
But, while generating pdf the alignment is not proper. In the HTML there is no paging, but in the output pdf the image div is getting broken when new pages are generated.
Some blank areas are coming the report.
Actually I need an exact replica of the HTML as a pdf, with paging.
Thank you in advance.What is the LiveCycle version?
Is it possible for you to share an example(somewhere on public file sharing sites)?
Maybe you are looking for
-
Error while clicking submit button?
Hi All, I am trying to implement selectOneListbox component. This displays all the data which I required. I am also able to retrieve indiviual data. I checked this using alert in java script. The problem which I am facing is that I have a command but
-
How to upload External Voucher?
Hi, I got a work regarding "Voucher upload for Recorded Payments" Requirment: To allow the voucher upload process to pass the recorded payment information into PeopleSoft and create pre-approved, manual recorded vouchers. How:Utilize the existing PYM
-
Getting error using the EMail Transport Protocol
Hi Gurus, I am using the EMail Transport Protocol (Custom Document over Generic Exchange). I am able to send the document using this protocol to a exchange server successfully. but when tried to receive the document from exchange server to Oracle B2B
-
Apple's trailer site crashes Firefox w/ mplayer plugin
Okay, this is beyond weird. Basically, I can go and watch a video in high quality or otherwise pretty much anywhere that isn't Apple's website... If I go there, Firefox just crashes without an error or explanation. This is pretty unfortunate since I
-
For about 2 weeks thats starts to happening.. I dont know what it is but i want to fix it! had someone the same problem?