|
i'm trying to overload a method in a web service using netbeans, but the problem is i don't see the overloaded method in the test page , anyone got an answer for this
|
|
|
|
|
with mobile ,Can you tell me java or c# can easier to develop and more popular at The developing country,example viet nam
thanks
|
|
|
|
|
It really depends on the type of mobilephones you want to develop for.
I'd say that for most of the simple mobile phones, you'll better go with Java, but there are more and more smartphones coming up with windows mobile which will perfectly fit with C# (Compact Framework).
I won’t not use no double negatives.
modified on Wednesday, May 27, 2009 7:52 AM
|
|
|
|
|
|
Here is my code of JSP
<% if(request.getParameter("txtTextInput")!=null && request.getParameter("LangGroup").equals("English") ) {
String file=CreateSoundFile( request.getParameter("txtTextInput"), "en");
%>
<embed src="<%=file%>" ></embed>
while CreateSoundFile creates the sound file and give back its path
but the sound file is not played on the client and if the program is being run 2nd time the previous text is being played on the client browser where as the file in the folder on server is changed.
why the file is not downloaded at client when it exists on the serve r
|
|
|
|
|
You have to upload music file and then after you may play it.
A DATAPOST COMPUTER CENTRE
(K.V Prajapati)
|
|
|
|
|
i have postfix installed on my ubuntu and test it to send message to other user in my localhost, and i found no problem using it. But when i try to fetch the message using pop3, i do :
out.write(("USER :"+user+"\r\n").getBytes());<br />
out.write(("PASS :"+pass+"\r\n").getBytes());
and i always get the respon :
+OK Hello there.
+OK Password required.
-ERR Login failed.
+OK Better luck next time.
What is wrong with my code?
|
|
|
|
|
Are you sure that the username and password are correct?
|
|
|
|
|
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection cn=DriverManager.getConnection("jdbc:odbc:gaurav","","");
String sql="SELECT * FROM optrdata WHERE name=? ANd password=?";
PreparedStatement pst=cn.prepareStatement(sql);
pst.setString(1,t2.getText().trim());
pst.setString(2,t3.getText().trim());
THE ABOVE LINE OF CODE CONNECTS JAVA WITH FORXPRO NOW I WANT TO USE THE SAME CODE CONNECTED TO MY SQL PLEASE GIVE ME THE CODE FOR THE CONNECTIVITY OF MYSQL WITH JAVA....
|
|
|
|
|
gaurav raghu wrote: PLEASE GIVE ME THE CODE
NO!
HAVE YOU EVER HEARD OF GOOGLE[^]??? AND NOT TYPING LAZY DEMANDS IN CAPITALS!
My failometer is detecting vast quantities of FAIL!
"Its SQL - hardly programming..." (Caslen)
|
|
|
|
|
Since you're using the JDBC-ODBC bridge, the same code will work to connect to almost any database.
You just need to change your ODBC datasource connection.
|
|
|
|
|
Front end of my project is JSP and i'm suppose to use SQl Server as the database for the project so please provide my the code for the connectivity of java with sql server...
|
|
|
|
|
Your best bet would be to have servlets or some other Java based backend (JSF for example) instead of connecting to the database directory from within JSF.
You can then use standard JDBC to connect to the database. If you want to connect to SQL Server, the jTDS driver is one of the best.
|
|
|
|
|
import java.sql.*;
Class.forName(sun.jdbc.odbc.JdbcOdbcDriver");
Connection con=DriverManager.getConnection("jdbc:odbc:DSN);// DSN(Data Source Name)
Statement st=con.createStatement();
st.executeUpdate("insert query");
// Retrieve datas
ResultSet rs=st.executeQuery("query");
while(rs.next())
{
String name=rs.getString(1);
int age=rs.getInt(2);
}
|
|
|
|
|
hello friends,
i am creating an application for an online local clinic management software where i want their registered patients to upload their ct or other medical images so that the doctor may visit their profiles online and see their reports.
since the medical images have a dcm format that stands for dicom(digital imaging and communication in medicine). since the software that i have to view these files is a desktop application, i want to create an api for the same that can be called on my application and the images be viewed online.
please suggest how do i create this api for the software, those of you who want to see what the software looks like may search for "DicomWorks" on Google.
thanks in advance.
|
|
|
|
|
hi any help me how i write this statment in java
N-m
c[i]=c[i]+b[i].X
here c and b are int type array
and x is as polynomail of power N-m
|
|
|
|
|
I'm not the only person reading this forum. Your teacher is too!
Panic, Chaos, Destruction.
My work here is done.
|
|
|
|
|
Hi guys,
I'm currently working on a mobile phone application and need to save a file into the phone. However whenever I try using FileConnection, an exception will occur with the message "Application not authorized to access the restricted API". The FileConnection statement itself seems to be fine as I tried those from online examples, so I'm wondering what project settings I'll have to change to avoid this security issue. Please guide me with more details as I'm rather new to this, thanks!
Sincerely,
Ralph
|
|
|
|
|
Share and enjoy:
bang-bang[^]
Panic, Chaos, Destruction.
My work here is done.
|
|
|
|
|
Hi William, thanks for the link. However I tried the code on my phone (LG Secret) but the application hanged at the Java Powered screen. It worked when I tried compiling and running it on Java ME Platform SDK 3.0, Early Access though, you have any idea why?
|
|
|
|
|
It is probably down to the JME runtime. Check with LG if there is anything specific permissioning wise you need to do for the phone.
Panic, Chaos, Destruction.
My work here is done.
|
|
|
|
|
Hmm ok, I'll check that issue first then. Thanks alot for the advice!
|
|
|
|
|
Hi
Following the code of my applet
Runtime rt = Runtime.getRuntime();
Process proc = rt.exec("C:\\Program Files\\eSpeak\\command_line\\espeak.exe \"This is a text\"");
int exitValue = proc.waitFor();
while the program is on the server
the applet run fine when i call the page on my machine
but when the web page is called on some other machine it gives access denied exception
i have set the permission on my jre but still no sol.
|
|
|
|
|
Applets are inheritly secured. You cannot execute process, perform I/O, database action with applets under nornal security manager settings. To do so, create your security manager and a policy file.
A DATAPOST COMPUTER CENTRE
(K.V Prajapati)
|
|
|
|
|
but will how will i tell the applet that the particular file is on the server file system not on the client.
and currently with the code above where does the applet look for the file under normal circumstances.
|
|
|
|