Click here to Skip to main content
15,895,142 members
Home / Discussions / Java
   

Java

 
AnswerRe: java web aplication how to solve this problem Pin
Cedric Moonen9-Dec-10 22:29
Cedric Moonen9-Dec-10 22:29 
AnswerRe: java web aplication how to solve this problem Pin
Alok Sharma ji10-Dec-10 21:17
Alok Sharma ji10-Dec-10 21:17 
AnswerRe: java web aplication how to solve this problem Pin
Luc Pattyn11-Dec-10 0:34
sitebuilderLuc Pattyn11-Dec-10 0:34 
AnswerRe: java web aplication how to solve this problem Pin
RaviRanjanKr13-Dec-10 4:07
professionalRaviRanjanKr13-Dec-10 4:07 
QuestionHave anyone tried ajaxanywhere with JSP/Servlet Pin
Alok Sharma ji8-Dec-10 1:24
Alok Sharma ji8-Dec-10 1:24 
Questionhowto evaluate return values from windows process Pin
TorstenH.8-Dec-10 0:32
TorstenH.8-Dec-10 0:32 
AnswerRe: howto evaluate return values from windows process [modified] Pin
TorstenH.8-Dec-10 1:47
TorstenH.8-Dec-10 1:47 
Questionpassing values across functions [modified] Pin
vidhyaej7-Dec-10 0:18
vidhyaej7-Dec-10 0:18 
Hi friends,
I am doing a Java application in which i have two .java files (Connect.java and Handler.java).In Connect.java i have a function where i am getting some values from some other Response.java file . Now i need to pass these values as input parameters to a function in Handler.java . Following is my java file.Can any one help me please...? How can i implement my Handler.java file if it has a function handle() which takes in the parameters from Connect.Java as input..?


Connect.java
public class Connect 
 {      
  private Response obj_response;    
  public String UserId;   
   public String LocationIpAddress; 
     public String PassWord;    
    public Connect(Response p_response) 
     {          
      obj_response=p_response;    
     }        
   public Response handleConnect()  
    {     
        try   
         {  //values got from Response.java file    
          String UserId=obj_response.getUserId();   
     String LocationIpAddress=obj_response.getLocationIpAddress();              String PassWord=obj_response.getPassWord();  
        }          
catch(IOException e)      
    {              
System.out.println("IO Exception");    
      }       
     return null;     
   }  
}  


modified on Tuesday, December 7, 2010 7:07 AM

AnswerRe: passing values across functions Pin
TorstenH.7-Dec-10 0:57
TorstenH.7-Dec-10 0:57 
GeneralRe: passing values across functions Pin
vidhyaej7-Dec-10 1:10
vidhyaej7-Dec-10 1:10 
GeneralRe: passing values across functions Pin
jschell7-Dec-10 10:20
jschell7-Dec-10 10:20 
GeneralRe: passing values across functions Pin
TorstenH.7-Dec-10 19:44
TorstenH.7-Dec-10 19:44 
AnswerRe: passing values across functions Pin
Richard MacCutchan7-Dec-10 11:17
mveRichard MacCutchan7-Dec-10 11:17 
Questionglassfish server 3 start failed ???? Pin
aa_zz6-Dec-10 21:06
aa_zz6-Dec-10 21:06 
AnswerRe: glassfish server 3 start failed ???? Pin
Luc Pattyn6-Dec-10 21:13
sitebuilderLuc Pattyn6-Dec-10 21:13 
AnswerRe: glassfish server 3 start failed ???? Pin
Alok Sharma ji7-Dec-10 1:30
Alok Sharma ji7-Dec-10 1:30 
AnswerRe: glassfish server 3 start failed ???? Pin
Skynet_Code7-Dec-10 20:55
Skynet_Code7-Dec-10 20:55 
AnswerRe: glassfish server 3 start failed ???? Pin
Spi-der23-Feb-11 1:42
Spi-der23-Feb-11 1:42 
QuestionEquivalent Java Function - having a return type of BSTR (How to implement BSTR* in JAVA?) Pin
amarasat6-Dec-10 8:33
amarasat6-Dec-10 8:33 
AnswerRe: Equivalent Java Function - having a return type of BSTR (How to implement BSTR* in JAVA?) Pin
David Skelly6-Dec-10 22:27
David Skelly6-Dec-10 22:27 
AnswerRe: Equivalent Java Function - having a return type of BSTR (How to implement BSTR* in JAVA?) Pin
jschell7-Dec-10 10:22
jschell7-Dec-10 10:22 
GeneralRe: Equivalent Java Function - having a return type of BSTR (How to implement BSTR* in JAVA?) Pin
amarasat7-Dec-10 11:57
amarasat7-Dec-10 11:57 
GeneralRe: Equivalent Java Function - having a return type of BSTR (How to implement BSTR* in JAVA?) Pin
Skynet_Code7-Dec-10 21:49
Skynet_Code7-Dec-10 21:49 
GeneralRe: Equivalent Java Function - having a return type of BSTR (How to implement BSTR* in JAVA?) Pin
jschell9-Dec-10 10:14
jschell9-Dec-10 10:14 
GeneralRe: Equivalent Java Function - having a return type of BSTR (How to implement BSTR* in JAVA?) Pin
jschell9-Dec-10 10:16
jschell9-Dec-10 10:16 

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.