Click here to Skip to main content
15,921,210 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: Java File I/O Problem! Pin
Saul Johnson1-Aug-08 3:19
Saul Johnson1-Aug-08 3:19 
GeneralRe: Java File I/O Problem! Pin
Perspx2-Aug-08 0:48
Perspx2-Aug-08 0:48 
GeneralRe: Java File I/O Problem! Pin
Saul Johnson2-Aug-08 0:58
Saul Johnson2-Aug-08 0:58 
AnswerRe: Java File I/O Problem! Pin
Shog91-Aug-08 6:16
sitebuilderShog91-Aug-08 6:16 
GeneralRe: Java File I/O Problem! Pin
Saul Johnson2-Aug-08 0:50
Saul Johnson2-Aug-08 0:50 
QuestionE-Mail sending problem. Pin
Anu_Bala31-Jul-08 20:17
Anu_Bala31-Jul-08 20:17 
Questionhelp!web setup using vs2005 Pin
friend869631-Jul-08 19:35
friend869631-Jul-08 19:35 
QuestionJava if-else Problem! Pin
Saul Johnson31-Jul-08 11:18
Saul Johnson31-Jul-08 11:18 
Hi All!

I'm having a problem with java if-else conditional statements, here's the code that's just not working for me:

public void actionPerformed(ActionEvent act) {

if (userName.getText() == MyString) {
   try {
   userUrl = new URL("http://www.mywebsite.co.uk");
    getAppletContext().showDocument(userUrl,"_blank");
   }
   catch(Exception e) {}
}

}


Where MyString is a string variable that has been declared earlier and userName is a TextField that is also declared earlier.
The actionPerformed code is being executed when I click the button in my applet but for some reason the code inside the if statement is never executed.

Do I have to use some kind of method on the MyString variable? Like MyString.value or something? (I've tried that by the way, no such luck Frown | :( )

Thanks!

MrWolfy Big Grin | :-D
AnswerRe: Java if-else Problem! Pin
Perspx31-Jul-08 11:57
Perspx31-Jul-08 11:57 
GeneralRe: Java if-else Problem! Pin
ClementsDan31-Jul-08 18:48
ClementsDan31-Jul-08 18:48 
GeneralRe: Java if-else Problem! Pin
Saul Johnson31-Jul-08 23:35
Saul Johnson31-Jul-08 23:35 
GeneralPlease...I need help in Sharepoint Portal Server 2007 Pin
fgomes02831-Jul-08 9:51
fgomes02831-Jul-08 9:51 
Questioncreate banner dynamically based on user inputs and has to be stored in DB Pin
bheeshmag31-Jul-08 4:25
bheeshmag31-Jul-08 4:25 
AnswerRe: create banner dynamically based on user inputs and has to be stored in DB Pin
Perspx31-Jul-08 7:00
Perspx31-Jul-08 7:00 
QuestionChanging the browser location in Java Pin
Saul Johnson31-Jul-08 2:45
Saul Johnson31-Jul-08 2:45 
AnswerRe: Changing the browser location in Java Pin
Perspx31-Jul-08 3:03
Perspx31-Jul-08 3:03 
GeneralRe: Changing the browser location in Java Pin
Saul Johnson31-Jul-08 7:52
Saul Johnson31-Jul-08 7:52 
GeneralRe: Changing the browser location in Java Pin
Perspx31-Jul-08 8:12
Perspx31-Jul-08 8:12 
GeneralRe: Changing the browser location in Java Pin
Perspx31-Jul-08 8:15
Perspx31-Jul-08 8:15 
GeneralRe: Changing the browser location in Java Pin
Saul Johnson31-Jul-08 11:10
Saul Johnson31-Jul-08 11:10 
GeneralRe: Changing the browser location in Java Pin
Perspx31-Jul-08 23:11
Perspx31-Jul-08 23:11 
Questionpurpose of <code>function reload(form)</code> Pin
nahelna31-Jul-08 2:33
nahelna31-Jul-08 2:33 
AnswerRe: purpose of function reload(form) Pin
Perspx31-Jul-08 2:42
Perspx31-Jul-08 2:42 
QuestionAccessing JAVA webservice from ASP [modified] Pin
Anoop Unnikrishnan30-Jul-08 23:25
Anoop Unnikrishnan30-Jul-08 23:25 
AnswerRe: Accessing JAVA webservice from ASP Pin
Guffa3-Aug-08 1:38
Guffa3-Aug-08 1:38 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.