Darren Alexandria

Ranch Hand
+ Follow
since Aug 17, 2007
Merit badge: grant badges
For More
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 Darren Alexandria

Thanks for the reply.

The XML becomes invalid because some parts is missing. I have looked at the output in the console and I saw that after the connection has not been established, the next error would say, that details in the XML cannot be created. Though the XML has been generated, there are missing data on it.

As per the proper closure of the connection, yes is it close properly everytime.
What I can see is that there are many instances wherein it is connecting.
Is it proper to connect everytime or its much better if you just connect in the
start of the program and close it before it finishes?

Thanks again.
Hello!

Good day!

My program is supposed to generate an XML and to get its contents it needs to access AS400.
I'm using Eclipse as IDE. During testing, the XML is valid when I run the program in Debug Mode.
Using Run As Java application, the results were inconsistent. Sometimes its valid, sometimes its not.
When the XML is invalid, I notice that this is the error it gets:

java.sql.SQLException: The application requester cannot establish the connection.(Address already in use: connect)
at com.ibm.as400.access.JDError.throwSQLException(JDError.java:480)
at com.ibm.as400.access.AS400JDBCConnection.setProperties(AS400JDBCConnection.java:2742)
at com.ibm.as400.access.AS400JDBCDriver.prepareConnection(AS400JDBCDriver.java:807)
at com.ibm.as400.access.AS400JDBCDriver.initializeConnection(AS400JDBCDriver.java:698)
at com.ibm.as400.access.AS400JDBCDriver.connect(AS400JDBCDriver.java:285)
at java.sql.DriverManager.getConnection(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at com.amkor.oasn.dao.JDBCConnectionFactory.getIseriesConnection(JDBCConnectionFactory.java:90)
at com.amkor.oasn.dao.BaseDAO.getIseriesonnection(BaseDAO.java:59)
at com.amkor.oasn.dao.CS2OASND3DAO.getBinDetails(CS2OASND3DAO.java:306)
at com.amkor.oasn.mapping.OASNMapping.createDetail3(OASNMapping.java:1093)
at com.amkor.oasn.mapping.OASNMapping.createDetail2(OASNMapping.java:783)
at com.amkor.oasn.mapping.OASNMapping.createDetail(OASNMapping.java:725)
at com.amkor.oasn.mapping.OASNMapping.OASN(OASNMapping.java:604)user EBIZUSR


What do I need to modify? I think this needs some optimization in the connection.
Can anyone give me an idea on how to implement it?


Thanks,

Darren
Good day!

I have a JSP that has an embedded Applet that acts as input field number 1 and a HTML input field that acts as number 2.
What I need to do:

1. Input data on field number 1.
2. Press Enter key.
3. Focus should transfer automatically to input field number 2.
4. Input data on field number 2.
5. Press Enter key.
6. Repeat steps 4 & 5 until all the necessary data has been inputted.
7. As long as I input field number 1 is not null, the focus always be in field number 2.
8. The cursor focus should return in field number 1 when the all the fields on the field has been set to reset.

Here is the code:



As of the moment, what's happening is that after inputting data on field number 1 and pressing Enter, the focus is still in input number 1. So I would click on field number 2. After inputting data in field number 2, there are times that the expected output is achived there are times that after inputting several data, the cursor focus goes back to the input field number 1 which caused errors.

What can I modify to fix this?

Thanks.

Darren
15 years ago
Hello Rene,

Thanks for your explanation.
That really answers my question. Your probably right about the registry details.

Anyway, thanks a lot!

=)
15 years ago
Hello!

I have done what you suggested, but it didn't work with Tomcat.exe, what I did was to get an Tomcat.zip file and extract it to
C:Tomcat_5.5.23 directory. When I start Tomcat.exe, the Tomcat Manager doesn't show up. But when I use, startup.bat,
it works. I am wondering why.


C:\Tomcat_5.5.23>echo %Path%
C:\PROGRA~1\REFLEC~1;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\
Program Files\Diskeeper Corporation\Diskeeper\;C:\Program Files\Common Files\Len
ovo;C:\Program Files\Lenovo\Client Security Solution;C:\SFU\common\;C:\Program F
iles\Altiris\Software Virtualization Agent\;C:\Java\jdk1.6.0_01\bin

C:\Tomcat_5.5.23>echo %JAVA_HOME%
C:\Java\jdk1.6.0_01

C:\Tomcat_5.5.23>echo %CATALINA_HOME%
C:\Tomcat_5.5.23

Thanks for your help!!!

Regards,

Darren
15 years ago
Hi Martin!

I will try what you suggested today, and I'll give you an update if this worked.

Thanks a lot!

15 years ago
Additional Details:


C:\Program Files\Apache Software Foundation\Tomcat 6.0\bin>echo %Path%
C:\PROGRA~1\REFLEC~1;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\
Program Files\Diskeeper Corporation\Diskeeper\;C:\Program Files\Common Files\Len
ovo;C:\Program Files\Lenovo\Client Security Solution;C:\SFU\common\;C:\Program F
iles\Altiris\Software Virtualization Agent\;C:\Program Files\Java\jdk1.6.0_01\bi
n

C:\Program Files\Apache Software Foundation\Tomcat 6.0\bin>echo %JAVA_HOME%
C:\Program Files\Java\jdk1.6.0_01

C:\Program Files\Apache Software Foundation\Tomcat 6.0\bin>echo %CATALINA_HOME%
C:\Program Files\Apache Software Foundation\Tomcat 6.0
15 years ago
Good day!


I am installing Tomcat 5.5.23 in a PC. This is what I did:

Tomcat 5.5.23 on Windows

1. Install Apache Tomcat 5.5.23.exe
2. Install JDK
3. Set the Enviroment Variables

CATALINA_HOME : C:\Tomcat 5.5.23
Path : add C:\Program Files\Java\jdk1.5.0_06\bin
JAVA_HOME: : C:\Program Files\Java\jdk1.5.0_06

4. Turned off the firewall

5 Click Monitor Tomcat, a Tomcat icon will appear in the Tray Icon, right click it and Start.
6. Open a Browser and type: http://localhost:8080/. If successful, you should see the Tomcat Page.

This steps worked on all of the PC's except for one. In this computer, even if i start
Tomcat through its icon in the Tray Icon, the Icon doesn't change to the one that
supposed to show that it has been started (the one with the green triangle). But
if you check it again, it says that it has been started. Also, in the Services, once
the Apache Tomcat Service has been started, it wouldn't stop. A, "An error on this
script has been encountered.." appears when I click the Stop link. Therefore when
I access the Tomcat Manager page, the page cannot be displayed.

Is there anything I could do?

Thanks,

Darren
15 years ago
A dialog box will appear where users can select local path where the Excel file can be saved.

Then this HTML will populate cells within the Excel File.

Thanks!
15 years ago
JSP
Sorry for posting this question in the beginner's forum.
This is the snippet of the JSP page that contains the buttons

The buttons that doesn't work after clicking Export to Excel button:

Main.jsp


The button where the Export to Excel is created:



The calls this:
MainAction.java


This is the JSP page that is being called:
ExportToExcel.jsp

[ July 28, 2008: Message edited by: Ulf Dittmer ]
15 years ago
JSP
Good day!

In a JSP page, I have three Buttons.
One of which is the Export to Excel button. When this button is clicked, it works just fine. But after clicking this button and try to click the other ones, the dialog box for the Export to Excel still pops up. Why is this so?

This is the header for the Export to Excel JSP.



Thanks.
15 years ago
JSP
Good day!

My original problem was how to make the hiding or my elements faster.
I was directed to post my problem to this forum.

https://coderanch.com/t/259491/Applets/java/Applet-speed-up-hiding-elements

And Ulf's suggestion was:
There are ways to change the stylesheet directly, so that all elements that are part of a particular class are changed all at once.

How can I do this?

Thanks.
Thanks for your suggestion.
Ok, I'll post my inquiry in the HTML/JavaScript Forum.

God bless.
15 years ago
Okay, thanks for correcting me.
How about some advice on how to speed up the hiding thing?

Thanks.
15 years ago
Thanks for your replies. Actually, my applet code is composed of
this:



I have tried using javaScript directly and it is really slow when it
comes to large tables. If the applet thing will not work, can you please
give me some advice or suggestions?

Thanks a lot.
15 years ago