Print request data to System.out?
Hi,
I am trying to print out the contents of the request object in a Servlet to System.out for testing purposes. I am doing it as shown below but not getting any output, does this code look correct?
ServletInputStream in = request.getInputStream();
int size = in.available();
byte[] buffer = new byte[size];
in.read(buffer);
String msg = new String(buffer);
System.out.println(new String(buffer));
Thanks in advance
Hi,
worked it out, solution below if intrested:
BufferedReader reader = request.getReader();
String line = null;
while ((line = reader.readLine()) != null) {
System.out.println(line);
Similar Messages
-
What is the different between System.out.println and out.print
we move a project , jsp form to servlet to mysql db
suddenly we get Chinese input problem
on meantime only Thing I know is
if( chineseName!=null) {
chineseName= new String( chineseName.getBytes("ISO-8859-1"),"UTF-8");
out.print(chineseName); //display Chinese
System.out.println("Hello1"+chineseName ); // display unread symbol
}I don't know why when we insert the value into db by StudentInsert(university_ID, surName, english_Name, chineseName, Address)
the db get the value from System.out.println
what setting decide my out put through System.out.printlnThank you for the reply!
after two days of search and guess.... I found out
for Web application , which under glassfish , you need to put your jsp page under WEB-INF,
other wise the server jsp turn your Chinese character that come from jsp request form to UTF8 symbol.
not ideal how to change the configuration in glassfish yet! -
Strange System.out.print behavior inside a for loop
I'm trying to create a simple ASCII progress bar in the console that would display like this:
|--------------------------------------------|
============================More equal signs would appear as time goes on. At least this is what I want to happen.
Instead, what happens is, none of the equal signs are printed until the very end, after the for loop in which the System.out.print("=") statement is in, has exited.
This is my code (probably more than necessary is shown, but the important part is the for loop):
public void addSomeDiffys(int numOfDiffys, int minInt, int maxInt) {
Diffy currentDiffy;
System.out.println("\nCreating Diffys.");
System.out.println("|--------------------------------------------|");
for (int i=0; i < numOfDiffys; i++) {
currentDiffy = new Diffy(minInt, maxInt);
if ((i/(double)numOfDiffys)*100 % 2 == 0)
System.out.print("=");
diffyList.add(currentDiffy);
System.out.println("\n" + diffyList.size() + " Diffys created.\n");
System.out.println("Sorting according to highest rating...");
Collections.sort(diffyList,Diffy.HIGHEST_RATING_ORDER);
System.out.println("Done.\n");
}I also tried changing the System.out.print("="); to System.out.println("="); This time it works as expected, its just not very pretty...
I get something like this:
|--------------------------------------------|
=
=
=
=
=
=
=
=
=
=
=
=So again, when I use println, rather than print, the equal signs are printed over time, slowly, as the progress increases. When using print, Nothing happens for a long time, and then suddenly they all appear after the for loop has terminated, which makes no sense.
Thanks for any help.When using print, Nothing happens
for a long time, and then suddenly they all appear
after the for loop has terminated, which makes no
sense.
Yes it does make sense! The characters are buffered inside the PrintStream and written when there is a full line to write. You could try a flush() after each = is written but I have no confidence that it will make any difference. -
HOW TO system.out.PRINT a curly brace: {
How is it possible to print a { with command: system.out.print{ "text { text"}; ?
ThanksHow is it possible to print a { with command:
system.out.print{ "text { text"}; ?
ThanksYour command has 2 errors in it.
1) "system" must start with a capital "S"
2) You used curly brackets where you should have used parentheses
This works: System.out.print( "text { text");
(although I suspect that you really want to use println, not print) -
EH&S WWI for GLM print request processing
Hi all,
we installed EH&S WWI for GLM print request processing scenario, following the note:"1394553", but when we try to print we receive this error from WWI:
Start Function 'WWI_PRINTREQUEST_CREATE'
Initializing parameters
Receiving data from client
calling RfcGetData returned 0
receiving data lasted: 0.0 sec.
Retrieving print request data from RFC interface
Using Temp Directory E:\WWI\TEMP\BSV100000000000062
Delete files in E:\WWI\TEMP\BSV100000000000062
Creating text file E:\WWI\TEMP\BSV100000000000062\r000000000062.val
Writing data to text file 39 lines, 1009 characters
Updating print request status from 0 to 1
[DB time] Writing print request lasted 9 ms
Start processing command 'Create print request' in synchronous mode
Creating print request 000000000062
WwiSapDms::retrieveDocument: RFC error when calling ABAP function moduleRFC connection is not Unicode
WwiSapDms::retrieveDocument: RFC error when calling ABAP function module
key : RFC_ERROR_SYSTEM_FAILURE
message : See RFC trace file or SAP system log for more details
Reading SBV document IB0120510 from Cache failed
WwiCacheRead resulted with -1
Updating print request status from 1 to 5
[DB time] Writing print request lasted 4 ms
##### Command 'Create print request' finished with status E #####
Storing ERR file E:\WWI\TEMP\BSV100000000000062\l000000000062.err into DMS succeeded
22 lines
Sending data to client
calling RfcSendData returned 0
sending data lasted: 0.0 sec.
Elapsed time : 0.1 sec.
We don't understand what kind of RFC or what part of customizing we have to check, could you please help us?
Thanks,
ChristianDear Pugal
we are not using GLM + and I am not sure about the technqiue used there to handle load balancing. Regarding general WWI setup I assume you know this Note: EH&amp;S: Availability and performance of WWI and Expert servers
On the top there is a further SAP Note abvailable which might be of interest. This is referenced here:
http://de.scribd.com/doc/191576739/011000358700000861002013-e
May be check OSS note: 1958655; OSS Note 1155294 is more related to normal WWI stuff; but may be check it as well. May be 1934253 might help better
May be this might help.
C.B.
PS: may be check as well: consolut - EHS_MD_140_01 - EH&amp;S-Management-Server einrichten
The load balancing of synchron WWi servers is donein the "RFC" layer, therefore you have no inffluence here, for asynchron WWI servers you can do a lot to manage the WWI load balancing by using "exits" etc. -
Hi,
I was just wondering if it was possible to instead of printing a new line of data using System.out.println() you could instead update the current line to something else.
Just that I will be printing something out every second and don't want 60 lines after a minute has gone by.
Thankscamickr wrote:I gave you a way. It works fine for me using JDK1.4.2 on XP. This technique has been used a a hack to mask the typing of passwords at the console. I think you might have mistaken someone else as the thread creator anyway your suggestion doesn't seem to work for me.
public class Printing {
public static void main(String[] args) {
System.out.print("\rABCD");
System.out.println();
System.out.print("\rEFGH");
System.out.println();
System.out.print("\r1234");
System.out.print("\r5678");
System.out.println();
}This is the output:
ABCDEFGH
12345678>
This is what I would like the output to be.
5678Although I am running Java 1.6.0 on a windows Vista machine so that may be the reason why it wont work.
georgemc wrote:From what I gather you don't want to print something new to the console every second, you want to print a line to the console, and change that one line every second? If so, you need a third-party curses library such as JCurses. Sourceforge.net is a good place to start, search for java curses librariesYes that is correct and I will look into your suggestion and compare them to my other ideas.
Thanks again -
Control Statement inside System.out.println
I am printing something like this:
System.out.println(parts1[0] + "|" + parts1[1]); Now, I want to keep a check i.e. if parts1[1] is say 3 I want to printout Hi and if parts1[1] is any other digit I printout Hello. [parts is obtained by using split method from data]
Can I do it inside the print statement?Be judicious about this though. Unless the ternary expression and the overall argument to println are both very simple, you'll end up with an unreadable, unmaintainable mess. The only advantage to doing it all inside the println argument is compactness. If it gets unwieldy, break it up into separate statements, assign the end result to a variable, and print that.
-
System.out will not flush before input
Hello everyone,
I am using Netbeans 5.5, JDK6, and J2EE. I am new to the environment so I wrote a test application that would prompt a user to enter a string and then echo it. I have:
String str = "";
BufferedReader br = new BufferedReader(new nputStreamReader(System.in));
System.out.print("Enter a string: ");
System.out.flush();
try
str = br.readLine();
catch(IOException ex)
System.out.print(ex.toString());
System.out.print(str);
What is really bizarre is that System.out will NOT flush no matter what. My application will always ask for input before it even prompts the user for the string. This is what the output looks like when running:
init:
deps-jar:
compile:
run:
hello
Enter an string: hello
BUILD SUCCESSFUL (total time: 5 seconds)
Notice how I had to enter the string first? The only way that I have seen that it flushes is if I used println() instead of print. But what if I don't want the prompt to have an end line in it. This just seems like weird behavior. Also, I have tried using a Scanner for input and the results are the same. Not really sure what to do. Any help would be most appreciated. Thanks.are you running this inside netbeans as well? the "console" view in netbeans (and eclipse, and probably other IDEs) is not a real console, it's a GUI component that the IDE writes to. it's behaviour isn't guaranteed to act like a real console. I've seen this sort of thing on eclipse before, but never used netbeans. but it still stands that an IDE's console view isn't an actual console/terminal window. that may well be the root of the problem
-
System.out console output CP1252/CP850
I've been trying to write something to receive XML as 'messages' through a socket connection and, in order to see better what's being parsed, I've been writing the elements and data to System.out so I can see the values in the console window (this is Windows XP).
The problem I get is that when the client passes German characters such as '�' (o-umlaut), they don't get displayed correctly on the console window - the character that actually gets displayed is '�' (division sign?) - even though the correct value DOES (as far as I can tell) find its way into my Java String object.
I've investigated this a bit and I find that if I 'force' the output to use encoding 'Cp850' (OEM - Multilingual Latin I) then it works correctly (I do this by creating an OutputStreamWriter object with that encoding and based on System.out and then I create a BufferedWriter based on that OutputStreamWriter).
If, however, I explicitly use Cp1252 (ANSI - Latin I) then I get the original problem. I don't understand this because as far as I can tell, Cp1252 included the '�' character as code 246, which is the one I'm passing to it.
It also may (or may not) be significant that my file.encoding property is set to 'Cp1252' but when I override this using the java -D command option, I get the correct result.
So, in essense, my question is: why does Cp850 work but Cp1252 not work?
Thanks in advance for any help
Regards
JohnI could do, but that's not really a problem - I've already got the 'work around' I need using Cp850. I just want to understand WHY it does what it does, because it seems to me that Cp1252 should work as well.
-
Invoking Java from C and capturing System.out
Hi,
I know very little about C but have a question related to invoking a Java process from C. Perhaps someone can help me.
I've been looking at the example at http://java.sun.com/docs/books/jni/html/invoke.html and seen how to invoke my Java program with:
(*env)->CallStaticVoidMethod(env, cls, mid, args);
in their example the Java program prints one line to System out with:
System.out.println("Hello World " + args[0]);
and says running the program produces:
Hello World from C!
What I want to know is, how in the C program can I capture the output the Java program sends to System.out, as I want to do something with the output other than have it print into the console.
Hope that makes sense.I'm not totally clear on your question but I'll take a stab.
It seems to me like you are trying to get the output from a java program into a C program. If this is the case then there are many ways to do this - many of which are more simple that using JNI. However, if you absolutely must use JNI for this application then I suggest you take some more time to learn about C and JNI as I imagine this sort of thing is non-trivial and will required a level of understanding of C that you currently don't have. You may also want to cross-post onto the JNI forum.
If you can do this without using JNI then I'd suggest doing the standard fork/exec/pipe routine. This means, that in your C program you will call the functions fork (to create a new process that is subordinate to the currently running one), exec (in the subprocess which will replace the current program image in memory with that of another program you wish to execute, in this case, a JVM with a running application), and popen (which creates a "pipe" between the standard output of the Java program [System.out] and some input stream in the C program).
Finding an example of a program that does this fork/exec/pipe pattern on the web shouldn't be too hard. Hope this helps.
-mike -
Problem in date plz find out of the mistake on my code only 1 row Print
import java.io.FileInputStream;
import java.text.SimpleDateFormat;
import java.util.Date;
//import java.util.Iterator;
import org.apache.poi.hssf.usermodel.HSSFCell;
import org.apache.poi.hssf.usermodel.HSSFRow;
import org.apache.poi.hssf.usermodel.HSSFSheet;
import org.apache.poi.hssf.usermodel.HSSFWorkbook;
import org.apache.poi.poifs.filesystem.POIFSFileSystem;
public class ExcelFileReader {
public ExcelFileReader(){
public void readExcelFile(POIFSFileSystem fs)throws Exception{
HSSFWorkbook wb = new HSSFWorkbook(fs);
HSSFSheet sheet = wb.getSheetAt(0);
HSSFCell cell= null;
for(int j=0;j<sheet.getPhysicalNumberOfRows();j++){
HSSFRow row = sheet.getRow(j);
for(int i=0;i<row.getPhysicalNumberOfCells();i++){
cell = row.getCell((short)i);
if(j==1 && i==2){
Date date = cell.getDateCellValue();
SimpleDateFormat objSimpleDateFormat = new SimpleDateFormat("MM/dd/yy");
System.out.println (objSimpleDateFormat.format(date));
} else {
if (cell.getCellType() == 0 ){
System.out.println(cell.getNumericCellValue());
} else if (cell.getCellType() == 1 ){
System.out.println(cell.getStringCellValue());
public static void main(String args[])throws Exception {
try{
ExcelFileReader objExcelFileReader = new ExcelFileReader();
POIFSFileSystem fs = new POIFSFileSystem(new FileInputStream("c:/test.xls"));
objExcelFileReader.readExcelFile (fs);
}catch(Exception ex){
ex.printStackTrace();
}i have problem in output of date in the excel file have set of columns all columns will print but date is not print plz modify the code
import java.io.FileInputStream;
import java.text.SimpleDateFormat;
import java.util.Date;
//import java.util.Iterator;
import org.apache.poi.hssf.usermodel.HSSFCell;
import org.apache.poi.hssf.usermodel.HSSFRow;
import org.apache.poi.hssf.usermodel.HSSFSheet;
import org.apache.poi.hssf.usermodel.HSSFWorkbook;
import org.apache.poi.poifs.filesystem.POIFSFileSystem;
public class ExcelFileReader {
public ExcelFileReader(){
public void readExcelFile(POIFSFileSystem fs)throws Exception{
HSSFWorkbook wb = new HSSFWorkbook(fs);
HSSFSheet sheet = wb.getSheetAt(0);
HSSFCell cell= null;
for(int j=0;j<sheet.getPhysicalNumberOfRows();j++){
HSSFRow row = sheet.getRow(j);
for(int i=0;i<row.getPhysicalNumberOfCells();i++){
cell = row.getCell((short)i);
if(j==1 && i==2){
Date date = cell.getDateCellValue();
SimpleDateFormat objSimpleDateFormat = new SimpleDateFormat("MM/dd/yy");
System.out.println (objSimpleDateFormat.format(date));
} else {
if (cell.getCellType() == 0 ){
System.out.println(cell.getNumericCellValue());
} else if (cell.getCellType() == 1 ){
System.out.println(cell.getStringCellValue());
public static void main(String args[])throws Exception {
try{
ExcelFileReader objExcelFileReader = new ExcelFileReader();
POIFSFileSystem fs = new POIFSFileSystem(new FileInputStream("c:/test.xls"));
objExcelFileReader.readExcelFile (fs);
}catch(Exception ex){
ex.printStackTrace();
output:-
Eno
Ename
DOJ
SALARY
DeptNo
Attendence
1.0
Naresh
01/01/07
1000.0
1.0
P
1.0
Naresh
39084.0
1000.0
1.0
P
1.0
Naresh
39085.0
1000.0
1.0
P
1.0
Naresh
39086.0
1000.0
1.0
P
1.0
Naresh
39087.0
1000.0
1.0
P
1.0
Naresh
39088.0
0.0
1.0
A
1.0
Naresh
39089.0
0.0
1.0
A
1.0
Naresh
39090.0
0.0
1.0
A
1.0
Naresh
39091.0
1000.0
1.0
P
1.0
Naresh
39092.0
1000.0
1.0
P
1.0
Naresh
39093.0
1000.0
1.0
P
1.0
Naresh
39094.0
1000.0
1.0
P
1.0
Naresh
39095.0
0.0
1.0
A
1.0
Naresh
39096.0
1000.0
1.0
P
1.0
Naresh
39097.0
1000.0
1.0
P
1.0
Naresh
39098.0
1000.0
1.0
P
1.0
Naresh
39099.0
1000.0
1.0
P
1.0
Naresh
39100.0
1000.0
1.0
P
1.0
Naresh
39101.0
0.0
1.0
A
1.0
Naresh
39102.0
1000.0
1.0
P
1.0
Naresh
39103.0
1000.0
1.0
P
1.0
Naresh
39104.0
1000.0
1.0
P
1.0
Naresh
39105.0
1000.0
1.0
P
1.0
Naresh
39106.0
1000.0
1.0
P
1.0
Naresh
39107.0
1000.0
1.0
P
1.0
Naresh
39108.0
1000.0
1.0
P
1.0
Naresh
39109.0
1000.0
1.0
P
1.0
Naresh
39110.0
1000.0
1.0
P
1.0
Naresh
39111.0
1000.0
1.0
P
1.0
Naresh
39112.0
0.0
1.0
A
1.0
Naresh
39114.0
1000.0
1.0
P
1.0
Naresh
39115.0
1000.0
1.0
P
1.0
Naresh
39116.0
1000.0
1.0
P
1.0
Naresh
39117.0
1000.0
1.0
P
1.0
Naresh
39118.0
1000.0
1.0
P
1.0
Naresh
39119.0
1000.0
1.0
P
1.0
Naresh
39120.0
1000.0
1.0
P
1.0
Naresh
39121.0
1000.0
1.0
P
1.0
Naresh
39122.0
1000.0
1.0
P
1.0
Naresh
39123.0
1000.0
1.0
P
1.0
Naresh
39124.0
1000.0
1.0
P
1.0
Naresh
39125.0
1000.0
1.0
P
1.0
Naresh
39126.0
1000.0
1.0
P
1.0
Naresh
39127.0
1000.0
1.0
P
1.0
Naresh
39128.0
1000.0
1.0
P
1.0
Naresh
39129.0
1000.0
1.0
P
1.0
Naresh
39130.0
1000.0
1.0
P
1.0
Naresh
39131.0
1000.0
1.0
P
1.0
Naresh
39132.0
1000.0
1.0
P
1.0
Naresh
39133.0
1000.0
1.0
P
1.0
Naresh
39134.0
1000.0
1.0
P
1.0
Naresh
39135.0
1000.0
1.0
P
1.0
Naresh
39136.0
1000.0java.lang.NullPointerException
at ExcelFileReader.readExcelFile(ExcelFileReader.java:35)
at ExcelFileReader.main(ExcelFileReader.java:49)
1.0
P
1.0
Naresh
39137.0
1000.0
1.0
P
1.0
Naresh
39138.0
1000.0
1.0
P
1.0
Naresh
39139.0
1000.0
1.0
P
1.0
Naresh
39140.0
1000.0
1.0
P
1.0
Naresh
39142.0
1000.0
1.0
P
1.0
Naresh
39143.0
1000.0
1.0
P
1.0
Naresh
39144.0
1000.0
1.0
P
1.0
Naresh
39145.0
1000.0
1.0
P
1.0
Naresh
39146.0
1000.0
1.0
P
1.0
Naresh
39147.0
1000.0
1.0
P
1.0
Naresh
39148.0
1000.0
1.0
P
1.0
Naresh
39149.0
1000.0
1.0
P
1.0
Naresh
39150.0
1000.0
1.0
P
1.0
Naresh
39151.0
1000.0
1.0
P
1.0
Naresh
39152.0
1000.0
1.0
P
1.0
Naresh
39153.0
1000.0
1.0
P
1.0
Naresh
39154.0
1000.0
1.0
P
1.0
Naresh
39155.0
1000.0
1.0
P
1.0
Naresh
39156.0
1000.0
1.0
P
1.0
Naresh
39157.0
0.0
1.0
A
1.0
Naresh
39158.0
0.0
1.0
A
1.0
Naresh
39159.0
0.0
1.0
A
1.0
Naresh
39160.0
0.0
1.0
A
1.0
Naresh
39161.0
0.0
1.0
A
1.0
Naresh
39162.0
0.0
1.0
A
1.0
Naresh
39163.0
0.0
1.0
A
1.0
Naresh
39164.0
0.0
1.0
A
1.0
Naresh
39165.0
0.0
1.0
A
1.0
Naresh
39166.0
1000.0
1.0
P
1.0
Naresh
39167.0
1000.0
1.0
P
1.0
Naresh
39168.0
1000.0
1.0
P
1.0
Naresh
39169.0
1000.0
1.0
P
1.0
Naresh
39170.0
1000.0
1.0
P
1.0
Naresh
39171.0
1000.0
1.0
P
2.0
Nani
39083.0
1000.0
2.0
P
2.0
Nani
39084.0
1000.0
2.0
P
2.0
Nani
39085.0
1000.0
2.0
P
2.0
Nani
39086.0
1000.0
2.0
P
2.0
Nani
39087.0
1000.0
2.0
P
2.0
Nani
39088.0
1000.0
2.0
P
2.0
Nani
39089.0
1000.0
2.0
P
2.0
Nani
39090.0
1000.0
2.0
P
2.0
Nani
39091.0
0.0
2.0
A
2.0
Nani
39092.0
1000.0
2.0
P
2.0
Nani
39093.0
1000.0
2.0
P
2.0
Nani
39094.0
1000.0
2.0
P
2.0
Nani
39095.0
0.0
2.0
A
2.0
Nani
39096.0
0.0
2.0
A
2.0
Nani
39097.0
0.0
2.0
A
2.0
Nani
39098.0
0.0
2.0
A
2.0
Nani
39099.0
0.0
2.0
A
2.0
Nani
39100.0
1000.0
2.0
P
2.0
Nani
39101.0
1000.0
2.0
P
2.0
Nani
39102.0
1000.0
2.0
P
2.0
Nani
39103.0
1000.0
2.0
P
2.0
Nani
39104.0
1000.0
2.0
P
2.0
Nani
39105.0
1000.0
2.0
P
2.0
Nani
39106.0
1000.0
2.0
P
2.0
Nani
39107.0
1000.0
2.0
P
2.0
Nani
39108.0
1000.0
2.0
P
2.0
Nani
39109.0
1000.0
2.0
P
2.0
Nani
39110.0
1000.0
2.0
P
2.0
Nani
39111.0
1000.0
2.0
P
2.0
Nani
39112.0
1000.0
2.0
P
2.0
Nani
39113.0
1000.0
2.0
P
2.0
Nani
39114.0
1000.0
2.0
P
2.0
Nani
39115.0
1000.0
2.0
P
2.0
Nani
39116.0
1000.0
2.0
P
2.0
Nani
39117.0
1000.0
2.0
P
2.0
Nani
39118.0
1000.0
2.0
P
2.0
Nani
39119.0
1000.0
2.0
P
2.0
Nani
39120.0
1000.0
2.0
P
2.0
Nani
39121.0
1000.0
2.0
P
2.0
Nani
39122.0
1000.0
2.0
P
2.0
Nani
39123.0
1000.0
2.0
P
2.0
Nani
39124.0
1000.0
2.0
P
2.0
Nani
39125.0
1000.0
2.0
P
2.0
Nani
39126.0
1000.0
2.0
P
2.0
Nani
39127.0
1000.0
2.0
P
2.0
Nani
39128.0
1000.0
2.0
P
2.0
Nani
39129.0
1000.0
2.0
P
2.0
Nani
39130.0
1000.0
2.0
P
2.0
Nani
39131.0
1000.0
2.0
P
2.0
Nani
39132.0
1000.0
2.0
P
2.0
Nani
39133.0
1000.0
2.0
P
2.0
Nani
39134.0
1000.0
2.0
P
2.0
Nani
39135.0
1000.0
2.0
P
2.0
Nani
39136.0
1000.0
2.0
P
2.0
Nani
39137.0
1000.0
2.0
P
2.0
Nani
39138.0
1000.0
2.0
P
2.0
Nani
39139.0
1000.0
2.0
P
2.0
Nani
39140.0
1000.0
2.0
P
2.0
Nani
39141.0
1000.0
2.0
P
2.0
Nani
39142.0
1000.0
2.0
P
2.0
Nani
39143.0
1000.0
2.0
P
2.0
Nani
39144.0
1000.0
2.0
P
2.0
Nani
39145.0
1000.0
2.0
P
2.0
Nani
39146.0
1000.0
2.0
P
2.0
Nani
39147.0
1000.0
2.0
P
2.0
Nani
39148.0
1000.0
2.0
P
2.0
Nani
39149.0
1000.0
2.0
P
2.0
Nani
39150.0
1000.0
2.0
P
2.0
Nani
39151.0
1000.0
2.0
P
2.0
Nani
39152.0
1000.0
2.0
P
2.0
Nani
39153.0
1000.0
2.0
P
2.0
Nani
39154.0
1000.0
2.0
P
2.0
Nani
39155.0
1000.0
2.0
P
2.0
Nani
39156.0
1000.0
2.0
P
2.0
Nani
39157.0
1000.0
2.0
P
2.0
Nani
39158.0
1000.0
2.0
P
2.0
Nani
39159.0
1000.0
2.0
P
2.0
Nani
39160.0
1000.0
2.0
P
2.0
Nani
39161.0
1000.0
2.0
P
2.0
Nani
39162.0
1000.0
2.0
P
2.0
Nani
39163.0
1000.0
2.0
P
2.0
Nani
39164.0
1000.0
2.0
P
2.0
Nani
39165.0
1000.0
2.0
P
2.0
Nani
39166.0
1000.0
2.0
P
2.0
Nani
39167.0
1000.0
2.0
P
2.0
Nani
39168.0
1000.0
2.0
P
2.0
Nani
39169.0
1000.0
2.0
P
2.0
Nani
39170.0
1000.0
2.0
P
2.0
Nani
39171.0
1000.0
2.0
P
3.0
Raju
39083.0
1000.0
3.0
P
3.0
Raju
39084.0
1000.0
3.0
P
3.0
Raju
39085.0
1000.0
3.0
P
3.0
Raju
39086.0
1000.0
3.0
P
3.0
Raju
39087.0
1000.0
3.0
P
3.0
Raju
39088.0
1000.0
3.0
P
3.0
Raju
39089.0
1000.0
3.0
P
3.0
Raju
39090.0
1000.0
3.0
P
3.0
Raju
39091.0
1000.0
3.0
P
3.0
Raju
39092.0
1000.0
3.0
P
3.0
Raju
39093.0
1000.0
3.0
P
3.0
Raju
39094.0
1000.0
3.0
P
3.0
Raju
39095.0
1000.0
3.0
P
3.0
Raju
39096.0
1000.0
3.0
P
3.0
Raju
39097.0
1000.0
3.0
P
3.0
Raju
39098.0
1000.0
3.0
P
3.0
Raju
39099.0
1000.0
3.0
P
3.0
Raju
39100.0
1000.0
3.0
P
3.0
Raju
39101.0
1000.0
3.0
P
3.0
Raju
39102.0
1000.0
3.0
P
3.0
Raju
39103.0
1000.0
3.0
P
3.0
Raju
39104.0
1000.0
3.0
P
3.0
Raju
39105.0
1000.0
3.0
P
3.0
Raju
39106.0
1000.0
3.0
P
3.0
Raju
39107.0
1000.0
3.0
P
3.0
Raju
39108.0
1000.0
3.0
P
3.0
Raju
39109.0
1000.0
3.0
P
3.0
Raju
39110.0
1000.0
3.0
P
3.0
Raju
39111.0
1000.0
3.0
P
3.0
Raju
39112.0
1000.0
3.0
P
3.0
Raju
39113.0
1000.0
3.0
P
3.0
Raju
39114.0
1000.0
3.0
P
3.0
Raju
39115.0
1000.0
3.0
P
3.0
Raju
39116.0
1000.0
3.0
P
3.0
Raju
39117.0
1000.0
3.0
P
3.0
Raju
39118.0
1000.0
3.0
P
3.0
Raju
39119.0
1000.0
3.0
P
3.0
Raju
39120.0
1000.0
3.0
P
3.0
Raju
39121.0
1000.0
3.0
P
3.0
Raju
39122.0
1000.0
3.0
P
3.0
Raju
39123.0
1000.0
3.0
P
3.0
Raju
39124.0
1000.0
3.0
P
3.0
Raju
39125.0
1000.0
3.0
P
3.0
Raju
39126.0
1000.0
3.0
P
3.0
Raju
39127.0
1000.0
3.0
P
3.0
Raju
39128.0
1000.0
3.0
P
3.0
Raju
39129.0
1000.0
3.0
P
3.0
Raju
39130.0
1000.0
3.0
P
3.0
Raju
39131.0
1000.0
3.0
P
3.0
Raju
39132.0
1000.0
3.0
P
3.0
Raju
39133.0
1000.0
3.0
P
3.0
Raju
39134.0
1000.0
3.0
P
3.0
Raju
39135.0
1000.0
3.0
P
3.0
Raju
39136.0
1000.0
3.0
P
3.0
Raju
39137.0
1000.0
3.0
P
3.0
Raju
39138.0
1000.0
3.0
P
3.0
Raju
39139.0
1000.0
3.0
P
3.0
Raju
39140.0
1000.0
3.0
P
3.0
Raju
39141.0
1000.0
3.0
P
3.0
Raju
39142.0
1000.0
3.0
P
3.0
Raju
39143.0
1000.0
3.0
P
3.0
Raju
39144.0
1000.0
3.0
P
3.0
Raju
39145.0
1000.0
3.0
P
3.0
Raju
39146.0
1000.0
3.0
P
3.0
Raju
39147.0
1000.0
3.0
P
3.0
Raju
39148.0
1000.0
3.0
P
3.0
Raju
39149.0
1000.0
3.0
P
3.0
Raju
39150.0
1000.0
3.0
P
3.0
Raju
39151.0
1000.0
3.0
P
3.0
Raju
39152.0
1000.0
3.0
P
3.0
Raju
39153.0
1000.0
3.0
P
3.0
Raju
39154.0
1000.0
3.0
P
3.0
Raju
39155.0
1000.0
3.0
P
3.0
Raju
39156.0
1000.0
3.0
P
3.0
Raju
39157.0
1000.0
3.0
P
3.0
Raju
39158.0
1000.0
3.0
P
3.0
Raju
39159.0
1000.0
3.0
P
3.0
Raju
39160.0
1000.0
3.0
P
3.0
Raju
39161.0
1000.0
3.0
P
3.0
Raju
39162.0
1000.0
3.0
P
3.0
Raju
39163.0
1000.0
3.0
P
3.0
Raju
39164.0
1000.0
3.0
P
3.0
Raju
39165.0
1000.0
3.0
P
3.0
Raju
39166.0
1000.0
3.0
P
3.0
Raju
39167.0
1000.0
3.0
P
3.0
Raju
39168.0
1000.0
3.0
P
3.0
Raju
39169.0
1000.0
3.0
P
3.0
Raju
39170.0
1000.0
3.0
P
3.0
Raju
39171.0
1000.0
3.0
P
3.0
Raju
39172.0
1000.0
3.0
P
excel file:
Eno Ename DOJ SALARY DeptNo Attendence
1 Naresh 01/01/07 INR 1,000.00 1 P
1 Naresh 01/02/07 INR 1,000.00 1 P
1 Naresh 01/03/07 INR 1,000.00 1 P
1 Naresh 01/04/07 INR 1,000.00 1 P
1 Naresh 01/05/07 INR 1,000.00 1 P
1 Naresh 01/06/07 INR 0.00 1 A
1 Naresh 01/07/07 INR 0.00 1 A
1 Naresh 01/08/07 INR 0.00 1 A
1 Naresh 01/09/07 INR 1,000.00 1 P
1 Naresh 01/10/07 INR 1,000.00 1 P
1 Naresh 01/11/07 INR 1,000.00 1 P
1 Naresh 01/12/07 INR 1,000.00 1 P
1 Naresh 01/13/07 INR 0.00 1 A
1 Naresh 01/14/07 INR 1,000.00 1 P
1 Naresh 01/15/07 INR 1,000.00 1 P
1 Naresh 01/16/07 INR 1,000.00 1 P
1 Naresh 01/17/07 INR 1,000.00 1 P
1 Naresh 01/18/07 INR 1,000.00 1 P
1 Naresh 01/19/07 INR 0.00 1 A
1 Naresh 01/20/07 INR 1,000.00 1 P
1 Naresh 01/21/07 INR 1,000.00 1 P
1 Naresh 01/22/07 INR 1,000.00 1 P
1 Naresh 01/23/07 INR 1,000.00 1 P
1 Naresh 01/24/07 INR 1,000.00 1 P
1 Naresh 01/25/07 INR 1,000.00 1 P
1 Naresh 01/26/07 INR 1,000.00 1 P
1 Naresh 01/27/07 INR 1,000.00 1 P
1 Naresh 01/28/07 INR 1,000.00 1 P
1 Naresh 01/29/07 INR 1,000.00 1 P
1 Naresh 01/30/07 INR 0.00 1 A
1 Naresh 02/01/07 INR 1,000.00 1 P
1 Naresh 02/02/07 INR 1,000.00 1 P
1 Naresh 02/03/07 INR 1,000.00 1 P
1 Naresh 02/04/07 INR 1,000.00 1 P
1 Naresh 02/05/07 INR 1,000.00 1 P
1 Naresh 02/06/07 INR 1,000.00 1 P
1 Naresh 02/07/07 INR 1,000.00 1 P
1 Naresh 02/08/07 INR 1,000.00 1 P
1 Naresh 02/09/07 INR 1,000.00 1 P
1 Naresh 02/10/07 INR 1,000.00 1 P
1 Naresh 02/11/07 INR 1,000.00 1 P
1 Naresh 02/12/07 INR 1,000.00 1 P
1 Naresh 02/13/07 INR 1,000.00 1 P
1 Naresh 02/14/07 INR 1,000.00 1 P
1 Naresh 02/15/07 INR 1,000.00 1 P
1 Naresh 02/16/07 INR 1,000.00 1 P
1 Naresh 02/17/07 INR 1,000.00 1 P
1 Naresh 02/18/07 INR 1,000.00 1 P
1 Naresh 02/19/07 INR 1,000.00 1 P
1 Naresh 02/20/07 INR 1,000.00 1 P
1 Naresh 02/21/07 INR 1,000.00 1 P
1 Naresh 02/22/07 INR 1,000.00 1 P
1 Naresh 02/23/07 INR 1,000.00 1 P
1 Naresh 02/24/07 INR 1,000.00 1 P
1 Naresh 02/25/07 INR 1,000.00 1 P
1 Naresh 02/26/07 INR 1,000.00 1 P
1 Naresh 02/27/07 INR 1,000.00 1 P
1 Naresh 03/01/07 INR 1,000.00 1 P
1 Naresh 03/02/07 INR 1,000.00 1 P
1 Naresh 03/03/07 INR 1,000.00 1 P
1 Naresh 03/04/07 INR 1,000.00 1 P
1 Naresh 03/05/07 INR 1,000.00 1 P
1 Naresh 03/06/07 INR 1,000.00 1 P
1 Naresh 03/07/07 INR 1,000.00 1 P
1 Naresh 03/08/07 INR 1,000.00 1 P
1 Naresh 03/09/07 INR 1,000.00 1 P
1 Naresh 03/10/07 INR 1,000.00 1 P
1 Naresh 03/11/07 INR 1,000.00 1 P
1 Naresh 03/12/07 INR 1,000.00 1 P
1 Naresh 03/13/07 INR 1,000.00 1 P
1 Naresh 03/14/07 INR 1,000.00 1 P
1 Naresh 03/15/07 INR 1,000.00 1 P
1 Naresh 03/16/07 INR 0.00 1 A
1 Naresh 03/17/07 INR 0.00 1 A
1 Naresh 03/18/07 INR 0.00 1 A
1 Naresh 03/19/07 INR 0.00 1 A
1 Naresh 03/20/07 INR 0.00 1 A
1 Naresh 03/21/07 INR 0.00 1 A
1 Naresh 03/22/07 INR 0.00 1 A
1 Naresh 03/23/07 INR 0.00 1 A
1 Naresh 03/24/07 INR 0.00 1 A
1 Naresh 03/25/07 INR 1,000.00 1 P
1 Naresh 03/26/07 INR 1,000.00 1 P
1 Naresh 03/27/07 INR 1,000.00 1 P
1 Naresh 03/28/07 INR 1,000.00 1 P
1 Naresh 03/29/07 INR 1,000.00 1 P
1 Naresh 03/30/07 INR 1,000.00 1 P
2 Nani 01/01/07 INR 1,000.00 2 P
2 Nani 01/02/07 INR 1,000.00 2 P
2 Nani 01/03/07 INR 1,000.00 2 P
2 Nani 01/04/07 INR 1,000.00 2 P
2 Nani 01/05/07 INR 1,000.00 2 P
2 Nani 01/06/07 INR 1,000.00 2 P
2 Nani 01/07/07 INR 1,000.00 2 P
2 Nani 01/08/07 INR 1,000.00 2 P
2 Nani 01/09/07 INR 0.00 2 A
2 Nani 01/10/07 INR 1,000.00 2 P
2 Nani 01/11/07 INR 1,000.00 2 P
2 Nani 01/12/07 INR 1,000.00 2 P
2 Nani 01/13/07 INR 0.00 2 A
2 Nani 01/14/07 INR 0.00 2 A
2 Nani 01/15/07 INR 0.00 2 A
2 Nani 01/16/07 INR 0.00 2 A
2 Nani 01/17/07 INR 0.00 2 A
2 Nani 01/18/07 INR 1,000.00 2 P
2 Nani 01/19/07 INR 1,000.00 2 P
2 Nani 01/20/07 INR 1,000.00 2 P
2 Nani 01/21/07 INR 1,000.00 2 P
2 Nani 01/22/07 INR 1,000.00 2 P
2 Nani 01/23/07 INR 1,000.00 2 P
2 Nani 01/24/07 INR 1,000.00 2 P
2 Nani 01/25/07 INR 1,000.00 2 P
2 Nani 01/26/07 INR 1,000.00 2 P
2 Nani 01/27/07 INR 1,000.00 2 P
2 Nani 01/28/07 INR 1,000.00 2 P
2 Nani 01/29/07 INR 1,000.00 2 P
2 Nani 01/30/07 INR 1,000.00 2 P
2 Nani 01/31/07 INR 1,000.00 2 P
2 Nani 02/01/07 INR 1,000.00 2 P
2 Nani 02/02/07 INR 1,000.00 2 P
2 Nani 02/03/07 INR 1,000.00 2 P
2 Nani 02/04/07 INR 1,000.00 2 P
2 Nani 02/05/07 INR 1,000.00 2 P
2 Nani 02/06/07 INR 1,000.00 2 P
2 Nani 02/07/07 INR 1,000.00 2 P
2 Nani 02/08/07 INR 1,000.00 2 P
2 Nani 02/09/07 INR 1,000.00 2 P
2 Nani 02/10/07 INR 1,000.00 2 P
2 Nani 02/11/07 INR 1,000.00 2 P
2 Nani 02/12/07 INR 1,000.00 2 P
2 Nani 02/13/07 INR 1,000.00 2 P
2 Nani 02/14/07 INR 1,000.00 2 P
2 Nani 02/15/07 INR 1,000.00 2 P
2 Nani 02/16/07 INR 1,000.00 2 P
2 Nani 02/17/07 INR 1,000.00 2 P
2 Nani 02/18/07 INR 1,000.00 2 P
2 Nani 02/19/07 INR 1,000.00 2 P
2 Nani 02/20/07 INR 1,000.00 2 P
2 Nani 02/21/07 INR 1,000.00 2 P
2 Nani 02/22/07 INR 1,000.00 2 P
2 Nani 02/23/07 INR 1,000.00 2 P
2 Nani 02/24/07 INR 1,000.00 2 P
2 Nani 02/25/07 INR 1,000.00 2 P
2 Nani 02/26/07 INR 1,000.00 2 P
2 Nani 02/27/07 INR 1,000.00 2 P
2 Nani 02/28/07 INR 1,000.00 2 P
2 Nani 03/01/07 INR 1,000.00 2 P
2 Nani 03/02/07 INR 1,000.00 2 P
2 Nani 03/03/07 INR 1,000.00 2 P
2 Nani 03/04/07 INR 1,000.00 2 P
2 Nani 03/05/07 INR 1,000.00 2 P
2 Nani 03/06/07 INR 1,000.00 2 P
2 Nani 03/07/07 INR 1,000.00 2 P
2 Nani 03/08/07 INR 1,000.00 2 P
2 Nani 03/09/07 INR 1,000.00 2 P
2 Nani 03/10/07 INR 1,000.00 2 P
2 Nani 03/11/07 INR 1,000.00 2 P
2 Nani 03/12/07 INR 1,000.00 2 P
2 Nani 03/13/07 INR 1,000.00 2 P
2 Nani 03/14/07 INR 1,000.00 2 P
2 Nani 03/15/07 INR 1,000.00 2 P
2 Nani 03/16/07 INR 1,000.00 2 P
2 Nani 03/17/07 INR 1,000.00 2 P
2 Nani 03/18/07 INR 1,000.00 2 P
2 Nani 03/19/07 INR 1,000.00 2 P
2 Nani 03/20/07 INR 1,000.00 2 P
2 Nani 03/21/07 INR 1,000.00 2 P
2 Nani 03/22/07 INR 1,000.00 2 P
2 Nani 03/23/07 INR 1,000.00 2 P
2 Nani 03/24/07 INR 1,000.00 2 P
2 Nani 03/25/07 INR 1,000.00 2 P
2 Nani 03/26/07 INR 1,000.00 2 P
2 Nani 03/27/07 INR 1,000.00 2 P
2 Nani 03/28/07 INR 1,000.00 2 P
2 Nani 03/29/07 INR 1,000.00 2 P
2 Nani 03/30/07 INR 1,000.00 2 P
3 Raju 01/01/07 INR 1,000.00 3 P
3 Raju 01/02/07 INR 1,000.00 3 P
3 Raju 01/03/07 INR 1,000.00 3 P
3 Raju 01/04/07 INR 1,000.00 3 P
3 Raju 01/05/07 INR 1,000.00 3 P
3 Raju 01/06/07 INR 1,000.00 3 P
3 Raju 01/07/07 INR 1,000.00 3 P
3 Raju 01/08/07 INR 1,000.00 3 P
3 Raju 01/09/07 INR 1,000.00 3 P
3 Raju 01/10/07 INR 1,000.00 3 P
3 Raju 01/11/07 INR 1,000.00 3 P
3 Raju 01/12/07 INR 1,000.00 3 P
3 Raju 01/13/07 INR 1,000.00 3 P
3 Raju 01/14/07 INR 1,000.00 3 P
3 Raju 01/15/07 INR 1,000.00 3 P
3 Raju 01/16/07 INR 1,000.00 3 P
3 Raju 01/17/07 INR 1,000.00 3 P
3 Raju 01/18/07 INR 1,000.00 3 P
3 Raju 01/19/07 INR 1,000.00 3 P
3 Raju 01/20/07 INR 1,000.00 3 P
3 Raju 01/21/07 INR 1,000.00 3 P
3 Raju 01/22/07 INR 1,000.00 3 P
3 Raju 01/23/07 INR 1,000.00 3 P
3 Raju 01/24/07 INR 1,000.00 3 P
3 Raju 01/25/07 INR 1,000.00 3 P
3 Raju 01/26/07 INR 1,000.00 3 P
3 Raju 01/27/07 INR 1,000.00 3 P
3 Raju 01/28/07 INR 1,000.00 3 P
3 Raju 01/29/07 INR 1,000.00 3 P
3 Raju 01/30/07 INR 1,000.00 3 P
3 Raju 01/31/07 INR 1,000.00 3 P
3 Raju 02/01/07 INR 1,000.00 3 P
3 Raju 02/02/07 INR 1,000.00 3 P
3 Raju 02/03/07 INR 1,000.00 3 P
3 Raju 02/04/07 INR 1,000.00 3 P
3 Raju 02/05/07 INR 1,000.00 3 P
3 Raju 02/06/07 INR 1,000.00 3 P
3 Raju 02/07/07 INR 1,000.00 3 P
3 Raju 02/08/07 INR 1,000.00 3 P
3 Raju 02/09/07 INR 1,000.00 3 P
3 Raju 02/10/07 INR 1,000.00 3 P
3 Raju 02/11/07 INR 1,000.00 3 P
3 Raju 02/12/07 INR 1,000.00 3 P
3 Raju 02/13/07 INR 1,000.00 3 P
3 Raju 02/14/07 INR 1,000.00 3 P
3 Raju 02/15/07 INR 1,000.00 3 P
3 Raju 02/16/07 INR 1,000.00 3 P
3 Raju 02/17/07 INR 1,000.00 3 P
3 Raju 02/18/07 INR 1,000.00 3 P
3 Raju 02/19/07 INR 1,000.00 3 P
3 Raju 02/20/07 INR 1,000.00 3 P
3 Raju 02/21/07 INR 1,000.00 3 P
3 Raju 02/22/07 INR 1,000.00 3 P
3 Raju 02/23/07 INR 1,000.00 3 P
3 Raju 02/24/07 INR 1,000.00 3 P
3 Raju 02/25/07 INR 1,000.00 3 P
3 Raju 02/26/07 INR 1,000.00 3 P
3 Raju 02/27/07 INR 1,000.00 3 P
3 Raju 02/28/07 INR 1,000.00 3 P
3 Raju 03/01/07 INR 1,000.00 3 P
3 Raju 03/02/07 INR 1,000.00 3 P
3 Raju 03/03/07 INR 1,000.00 3 P
3 Raju 03/04/07 INR 1,000.00 3 P
3 Raju 03/05/07 INR 1,000.00 3 P
3 Raju 03/06/07 INR 1,000.00 3 P
3 Raju 03/07/07 INR 1,000.00 3 P
3 Raju 03/08/07 INR 1,000.00 3 P
3 Raju 03/09/07 INR 1,000.00 3 P
3 Raju 03/10/07 INR 1,000.00 3 P
3 Raju 03/11/07 INR 1,000.00 3 P
3 Raju 03/12/07 INR 1,000.00 3 P
3 Raju 03/13/07 INR 1,000.00 3 P
3 Raju 03/14/07 INR 1,000.00 3 P
3 Raju 03/15/07 INR 1,000.00 3 P
3 Raju 03/16/07 INR 1,000.00 3 P
3 Raju 03/17/07 INR 1,000.00 3 P
3 Raju 03/18/07 INR 1,000.00 3 P
3 Raju 03/19/07 INR 1,000.00 3 P
3 Raju 03/20/07 INR 1,000.00 3 P
3 Raju 03/21/07 INR 1,000.00 3 P
3 Raju 03/22/07 INR 1,000.00 3 P
3 Raju 03/23/07 INR 1,000.00 3 P
3 Raju 03/24/07 INR 1,000.00 3 P
3 Raju 03/25/07 INR 1,000.00 3 P
3 Raju 03/26/07 INR 1,000.00 3 P
3 Raju 03/27/07 INR 1,000.00 3 P
3 Raju 03/28/07 INR 1,000.00 3 P
3 Raju 03/29/07 INR 1,000.00 3 P
3 Raju 03/30/07 INR 1,000.00 3 P
3 Raju 03/31/07 INR 1,000.00 3 P -
Each time I print, a data page of the print job is printed out.
Each time I print a data page of the print job is printed out. How can I Disable as it is a waste of paper?
Hello john42gd,
Thank you for using Apple Support Communities.
For more information, take a look at:
Troubleshooting printer issues in OS X
http://support.apple.com/kb/ts3147
Use Software Update to find and install the latest available updates. If an update is installed, see if the issue persists.
Open the Print & Scan pane or Print & Fax (Snow Leopard) pane in System Preferences.
Delete the affected printer, then add the printer again.
If the issue persists, try these additional steps:
Reset the printing system, then add the printer again.
If the issue still persists, reset the printing system again. Download and install your printer's drivers. Then, add the printer again.
Contact the printer vendor or visit their website for further assistance.
OS X Mavericks: Change or update printer software
http://support.apple.com/kb/PH13761
Have a nice day,
Mario -
System.out.println does not print out anything
I'm wonder why the dos mode does not print out the System.out.println.
My code has:
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
public class test extends HttpServlet {
public void doGet(HttpServletRequest request,
HttpServletResponse response) throws IOException,
ServletException {
System.out.println("Hello");
The compilation is ok... but it does not display anything... how come?"System.out.print()" prints to the log file of the tomcat server. in order to print on the screen use JspWriter.
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
public class test extends HttpServlet {
public void doGet(HttpServletRequest request,
HttpServletResponse response) throws IOException,
ServletException {
response.setContentType("text/html");
PrintWriter out = response.getWriter();
out.println("Hello");
//System.out.println("Hello");
Hope this helps! -
I need to develop an application printing spanish characters like "�" (ce trencada) "�", "�", etc.
The problem is when I type
System.out.print("�")in my application, I get "plus-minus" symbol while executing it.
Anyone can help me, please?
Thank you in advance.check the list of fonts available. You can use the following code for the purpose.
public static void main(String args[])
String fonts[] = getFontNames();
for(int i = 0; i < fonts.length; i++)
System.out.println(fonts);
public static String[] getFontNames()
GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment();
return ge.getAvailableFontFamilyNames(); -
Print System.out.println messages into logs of Weblogic Application Server
Hi,
I use Weblogic Application Server 10.3.6 on Windows 7. The Enterprise Application (J2EE) is deployed into the 'AdminServer' of Weblogic. For debugging purpose, I have added a few System.out.println statements.
I am unable to see the print messages on any of log files available in path 'user_projects > domains > base_domain > servers > AdminServer > logs'. However, I can see them on the 'command' prompt which was used to start the server. How can I get them into one of the log files? What am I missing?
I tried reading other threads on the forum and as per them 'System.out.println' gets logged onto *.out logs which I am unable to find. Only base_domain.log, AdminServer.log, access.log are available in the location.
More Specifics:
Configuration on WLS console 'Home > Servers > AdminServer > Logging'
Log file name: logs/AdminServer.log
Min. Severity to log: Notice (tried with Debug as well)
Advanced Options:
Logging Implementation: JDK
Redirect stdout logging enabled: False (tried both options)
Log file Severity Level: Notice (tried with Debug as well)
Standard Out Severity Level: Notice (tried with Debug as well)
ThanksPaul,
I just found this on google:
'Generally, developers put a lot of System.out.println statements in their code to perform application debugging. Normally, all standard outputs and error outputs are routed to the console where the OC4J server is started. If you want to capture the standard output and error outputs to files for logging/debugging purposes, then you can use the -out and -err options while starting up the Oc4J server to specify which files to use.'.
http://www.onjava.com/pub/a/onjava/2002/01/16/oracle.html?page=2
Maybe you are looking for
-
Acrobat 9 isn't recognizing Word 2008 structure for bookmarks
Hi -- I posted the following on the Acrobat User Community Forums Sunday and got zero response. I talked with Adobe tech support today and was encouraged to post it here. Limping to the finish line of my voluminous PhD dissertation, broke and with j
-
Late 2007 Macbook hangs or stutters following recent Leopard update
After running the software update process on my late 2007 Macbook, the computer seems to stutter. It will do something like respond to a mouse click for a very brief period of time, then hang for 20 to 30 seconds. Just trying to open Safari takes a h
-
Air play mirroring doesn't work mac pro desktop 2010 mid 27" display
mac pro desktop 2010 mid '27" display' I have turn on the " show mirroring options in the menu bar " it does not show up I also have Imac workes just fine ,Iphone , Ipad , same workes just fine so it is in the mac pro is there a down load fix or do I
-
Should I shoot in HD or SD?
This question comes up from time to time in this and other forums. Clearly, the answer would be to shoot in HD if the final result will be delivered in HD. But what if the final result will be delivered in SD, such as DVD? Does it still make sense to
-
Hacking into the form values file to retrieve a post after closing a window
Okay, I'd just finished editing and re-editing a very long post and was doublechecking some of the links when I inadvertedly closed the entire window instead of merely closing the tabbed page I'd brought the new link up on to test it. I poked around