Win a copy of Modern JavaScript for the Impatient this week in the Server-Side JavaScript and NodeJS forum!

alan kent

+ Follow
since Jan 25, 2003
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by alan kent

I want to know if there is a way to print a file
in a matrix printer from java program.
If I have a matrix print driver , how can I send data
to the printer ???
Can I configure all from the code ?
Is tere any example ???
14 years ago
has somebody used jcifs for windows 2003 authentication ?
I know this component works well in windows NT.
But in windows 2003 it sometimes works and others not..
14 years ago
I have a System connecting DB2 from Java using JDBC.
For each connection a job is created in AS400.
The job is named QZDASOINIT.
Sometimes (rarely) the job consumes high aumont of AS400 CPU.
Did somebody have a similar situation, ??
Is is a very specific problem but very dificult to come to a
I want a java program that reads an excel (text.xls) file.
And I want that it reads each column and line of each sheet of the file.
Does anybody has a code that make this kind of reading ???
14 years ago
I am using eclipe and lomboz to generate EJBs.
But when I deploy the *.ear files to Jboss, it gives me the following message. invalid byte 2 of 3-byte UTF-8 sequence (0xe3)
This message is given when I always deply ejb ears.
does somebody kwow the problem ???
Last week it was working but today.... ???

15 years ago
I am using nested tags in Struts.
Is there a way to use nested tags with request scope ?
If you use nested tags with session scope it works (I can pass the value from the JSP to the Action ActionForward class using action) but if I use request scope, it does not work.
It gives the following message:

javax.servlet.ServletException: BeanUtils.populate
at org.apache.struts.util.RequestUtils.populate(
at org.apache.struts.action.RequestProcessor.processPopulate(
at org.apache.struts.action.RequestProcessor.process(

Does somebody know if is there a way to use request scope ???
15 years ago
There is a file that contains the key/value pairs for the default language of your application.
Is there a way to change from a comboBox (for example : English, Spanish , Portuguese) , the language of the application using cookie or something similar ??
For example, you choose your language from Spanish to English and the next time the user uses the aplication, the English language is loaded.

15 years ago
Thanks !.
It worked...
15 years ago
For the code below, I want to list for each employee, the name , the email and the options of countries. I am using the following code to use the nested beans in Struts but the comboBox is not appearing. Does somebody know how I can insert a combo inside a nested bean ?? . The comboBox is supposed to load name of countries as shown below.....

<nested:iterate property="employees">
Employee: <nested:text property="empName"/>
E-mail: <nested:text property="email"/><br/>
Country :<html:select name="country" property="Name" indexed="true">
<html ptions collection="country" property="value"/>

15 years ago
Using struts I want to load a comboBox with a disabled option
when some value is loaded

The code below in struts

<html:select name="test" property="comments" indexed="true">
<html ptions collection="collectionData" property="value" labelProperty="label"/>

shows the comboBox, but I want to disable when a specific value is loaded:
For instance , I make a combo of list of names. If the selected name is 'Paul', then the combo will load with Paul enabled to change but if the selected name is 'John', the combo will load with the disabled option (disabled=true).

How can I do using struts???
15 years ago
I am using jboss-3.2.1_tomcat-4.1.24 and I am using JAAS authentication
In web-xml, when an user is not authorized to access some page, I am using the following code


But the problem is that it doesn't work because it still shows the default error page. It should redirect to the page "NotAutorized.jsp". Does somebody know if it works in tomcat ??? Or is there another way to override the custom error page ???
Does somebody now how can I find an example of a ejb-ql using 2 or more tables?

If I have a query like this in SQL:
where = student.id_teacher
and = 1

How can I do using ejb-ql ??
I have 2 tables
teacher with the fields 'id' and 'name'
student with the fields 'id', 'name' and 'id_teacher'

Is there a way to use JAAS (Java Authentication and Authorization Service) with mysql or other Database??
How can I insert and update in 2 tables using EJB??
For example, after inserting a row in table of employee (a new employee) ,
I want to update a table of company (the field "number of employees"
will be added 1).
I am using session bean and entity bean but it seens that each entity bean is related with only one table.
Is there some pattern for this case???
Sometimes when I start runnig Jboss there is a problem like:
Unespected signal :EXCEPTION_ACESS_VIOLATION occured at PC=0x6d44a8ce
Function name = (N/A)
HotSpot Virtual Machine Error : EXCEPTION_ACESS_VIOLATION
There is more message but I didn't mention. I think this is enought to
show the problem
The strange is that sometimes it doen't appear.
The problems is that in more than 60% of cases this problem
is happening. This problem started exactly after downloading
service pack 3 of windows 2k. After that the jboss was never the same.
Does somebody know what is the problem??
Hardware??? or Windows 2k or the JVM???
16 years ago