Fouad Fares

Ranch Hand
+ Follow
since Apr 16, 2003
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Fouad Fares

Hi,

I have a java class the runs under UNIX.
I am calling the runtime to execute the following command:
(sqlplus @sqluser @/home/test.sql)

the test.sql ask for parameters, but i am not able to send the parameters

Can you please provide me with a solution knowing that I may call other sql files that need different parameters.
17 years ago
i don't get any error message, the pages that have the include statement fails to display ("The page cannot be displayed")
17 years ago
Hello
i'm trying to depploy a web application that uses "<%@ include ...jsp%> built with jdevelopper 9i under OAS 10g but the pages fail to display, i've tracked the problem and it is with the include statement.
Could you please provide me with any possible solution or alternative

thanks
[ June 01, 2006: Message edited by: Fouad Fares ]
17 years ago
Hi,
I have a web page composed of three pages (title,menu,content).
the page is displayed from right to left.
if i specify for the content page the scrollbar to "NO" the page is well adjusted but if i specify the scrollbar to "AUTO" the page is indented about 20px and if i resize the browser until the scollbar is dispalyed the page becomes welle adjusted.

Can you please advice on this issue
hello

i am building a mutilanguage web application using frames(header,menu and
main), in ltr direction everything is working well but in rtl it seems that the main frame slides out a little to the right, inserted a blanc frame next to it and gave the main frame a fixed number of cold (*,600,178) the problem is fixed but if the main frame contain long page both vertical and horizontal scrollbar will appear (in ltr only the vertical will appear) , so I�m wondering if there is any method to display the main frame scrollbar at another frame , or if there is another solution to my problem.

thanks in advance
17 years ago
JSP
may u please provide me with some hint's resolving my problem with javascript
17 years ago
JSP
what i'm trying to do is to disable only the functionality of the back button so that if the user clicks it the previous page will not reappear (it would have been expiered)

and i couldn't find something usefull on [JSTL Tag Documentation]
17 years ago
JSP
Hello,

I'm trying to send HTTP request to an sms provoder.
This request contains arabic text. The result of this arabic text is rubbish text.

Could you please advise me how can i set the unicode on my java request.
NB : I'm developping this program under Oracle Jdeveloper JDK 2 version 1.3

import java.sql.*;
import java.util.*;
import oracle.jdbc.driver.*;
import java.util.Vector;
import java.lang.String;
import java.io.IOException;
import java.io.OutputStreamWriter;
import java.net.*;
import java.io.*;
import java.net.URL;
import java.net.HttpURLConnection;
import java.net.MalformedURLException;
import java.util.Properties;
import org.w3c.dom.*;
import java.lang.Integer;
import javax.swing.JOptionPane ;
import oracle.jdeveloper.html.*;
import javax.servlet.*;
import javax.servlet.http.*;
import oracle.jdbc.driver.*;
import oracle.xml.sql.query.OracleXMLQuery;
import java.lang.*;
import Jcls_Reuters_Divers.*;

...

URL csoftURL = new URL("http://...");
HttpURLConnection connection = (HttpURLConnection)csoftURL.openConnection();

String postBody = "Username=" + URLEncoder.encode(SMSID) + "&" +
"PIN=" + URLEncoder.encode(SMSPIN) + "&" +
"SendTo=" + URLEncoder.encode(s_mobile) + "&" +
"Message=" + URLEncoder.encode(s_return) + "&" +
"ReplyTo=" + URLEncoder.encode(SMSREPLYTO) + "&" +
"ResponseFormat=1";

connection.setRequestMethod("POST");
connection.setRequestProperty("content-type","utf-8");

// poster les param�tres
connection.setDoOutput(true);
OutputStreamWriter wr = new OutputStreamWriter(connection.getOutputStream());
wr.write(postBody);
wr.flush();
wr.close();

// Avoir les r�sultats
connection.connect(); // throws IOException
int responseCode = connection.getResponseCode(); // 200, 404, etc
String responseMsg = connection.getResponseMessage(); // OK, Forbidden, etc

BufferedReader br = new BufferedReader(new InputStreamReader(connection.getInputStream()));

String oneline = "NULL";
div.WriteLog("debut SMS ");
while ( (oneline = br.readLine()) != null) {
WriteLog(oneline);
if (oneline.toUpperCase().indexOf("ACCEPTED") > 0)
{
InsertLog
}
}

Regards
17 years ago
JSP
Hello

I'm trying to prevent the user from going backward on my web application using JSP method, my idea is to clear the browser's buffer.
Could any one suggest anyother working method.

thanks
17 years ago
JSP
Dear Sir,

In fact i'm not able to link the jsp with the javabean with the jdbc class responsible to make update on database.
If You can give me some hint on the skeleton of these classes and how build relation between these classes.
Regards.
17 years ago
JSP
Hello,

Could you please advise me a sample in how i have to code in java a simple web apps. that have the following components :

Jsp page contains 2 fields (first name / Last name)
Javabean (set / get methods relative to these attributes)
Java class containing jdbc to let user change these attributes stored in the database. We suppose that the database is Oracle type.

Best Regards.
Fouad Fares
17 years ago
JSP
hello
i've found the following solution:

<% request.setCharacterEnconding("Windows-1256"); %>

thank your for collaboration

[ April 19, 2006: Message edited by: Fouad Fares ]
[ April 19, 2006: Message edited by: Fouad Fares ]
17 years ago
JSP
i have allready tried it with no success
please note that i'm using j2ee 1.2 and jdevelopper 9.0.24

thanks
17 years ago
JSP
hy
thanks for your reply but when i added the line you suggested i've got the following error :
invalid attribute: pageEncoding
and if i ommit that option (pageEncoding="UTF-8") the following error appears :
sun.io.MalformatedInputException

thanks in advance
17 years ago
JSP
hello
I'm developping a web application through Jdeveloper 9i.028.
I'm trying to pass parameters from page to page using get method through a javascript.
The values of these parameters are in arabic language.

Once i try to read these values on the second page using the request.getParameter method i receive a garbage values.

Please Note that i try to display the values before sending it to the second page and the output was correct

Plese advise
Thanks in advance.
[ April 18, 2006: Message edited by: Bear Bibeault ]
17 years ago
JSP