Win a copy of Beginning Java 17 Fundamentals: Object-Oriented Programming in Java 17 this week in the Java in General forum!

sudheer raj

Greenhorn
+ Follow
since May 05, 2008
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 sudheer raj

Hi,

I am trying to open a child window from a window based on the action performed in main window.
Child window is getting created, but noting is displayed in it.
When we increase the size of the child window, then it gets displayed.
Pls. Help me as soon as possible.
Its very urgent

Thanking you
Raj
13 years ago
I dont think i have any plugin
I can just write the servlet code or jsp code in eclipse
Now after writting that code
I dont know how to compile it or run it on weblogic server
Kindly help me in doing it
Just tell me how to run a simple servlet or jsp
13 years ago
Hi,

I have weblogicserver installed in my pc.
I also have eclipse 5.5.1
But i dont know how to compile servlets n jsp
I m new to working with servers
Kindly help me in doin it
13 years ago
Thank you RobPrime.
Now its getting displayed properly
And even its getting printed from the program

Thanks a lot
13 years ago
so instead of \n if i use \r\n then will it open properly in the notepad?
one more thing now i want to print this file
while specifying the docflavor which one should i use
whether it is docflavor.INPUT_STREAM.TEXT_PLAIN or wat??
13 years ago
str="xyz\nabcd\n";
char buff[]=new char[str.length()];
str.getChars(0,str.length(),buff,0);
try{
File f1=new File("/logs","temp.txt");

FileWriter fo=new FileWriter(f1);


fo.write(buff);
fo.close();
}catch(IOException ioe){

}

This way i created the file.
13 years ago
I have created a text file using FileWriter.
I can see it properly when i open it with MS-Word,but when i try to open it with notepad or wordpad.
It is not displayed properly.
To print this file, which docflavor should i use?
Whether it is docflavor.INPUT_STREAM.TEXT_PLAIN or wat???
13 years ago