Re: [U2] UniObjects for Java on Linux

2006-01-11 Thread John Hester

PJ Velzeboer wrote:

I have an interesting problem. I have written a jsp page which queries data
from a UniVerse database using UniObjects for java (asjava.uniobjects.*).
Whenever I read a field from a file the contents of the UniString are in the
following format field1?field2?field3?filed4 etc. Effectively this means that
using UniDynArray.extract(field, value, subvalue); doesn't work. Does anyone
have any ideas?


Yes, it seems all of us using UOJ on linux run into that one in the 
beginning ;).  Just make the following change to the LANG environment 
variable setting:


LANG=en_US.iso885915

The place to put it on RH linux is /etc/sysconfig/i18n.  I'm not sure 
about other distros.  That change will make the multivalue character 
translate correctly.


-John
--
John Hester
System  Network Administrator
Momentum Group Inc.
(949) 833-8886 x623
http://memosamples.com
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


Re: [U2] UniObjects for Java on Linux

2006-01-11 Thread Wendy Smoak
On 1/11/06, PJ Velzeboer [EMAIL PROTECTED] wrote:
 I have an interesting problem. I have written a jsp page which queries data
 from a UniVerse database using UniObjects for java (asjava.uniobjects.*).
 Whenever I read a field from a file the contents of the UniString are in the
 following format field1?field2?field3?filed4 etc. Effectively this means that
 using UniDynArray.extract(field, value, subvalue); doesn't work. Does anyone
 have any ideas?

Yes.  Move the code to a Servlet, populate a collection of objects,
and use JSTL to display the values:
table
   c:forEach items=${transactions} var=txn 
 tr
td${txn.code}/tdtd${txn.branch}/tdtd${txn.operator}/td
 /tr
   /c:forEach
/table

Oh.  You meant about the question marks. ;)  Check the LANG settings
on both the client and server... LANG=C is known to work.

--
Wendy
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


RE: [U2] UniObjects for Java on Linux

2006-01-11 Thread PJ Velzeboer
You little beauty, thank you very much. That has solved the problem.

Time to tell the boss I can deliver on my promises .

Cheers PJ 

-Original Message-
From: John Hester [mailto:[EMAIL PROTECTED] 
Sent: Thursday, 12 January 2006 11:08 AM
To: u2-users@listserver.u2ug.org
Subject: Re: [U2] UniObjects for Java on Linux

PJ Velzeboer wrote:
 I have an interesting problem. I have written a jsp page which queries

 data from a UniVerse database using UniObjects for java
(asjava.uniobjects.*).
 Whenever I read a field from a file the contents of the UniString are 
 in the following format field1?field2?field3?filed4 etc. Effectively 
 this means that using UniDynArray.extract(field, value, subvalue); 
 doesn't work. Does anyone have any ideas?

Yes, it seems all of us using UOJ on linux run into that one in the
beginning ;).  Just make the following change to the LANG environment
variable setting:

LANG=en_US.iso885915

The place to put it on RH linux is /etc/sysconfig/i18n.  I'm not sure
about other distros.  That change will make the multivalue character
translate correctly.

-John
--
John Hester
System  Network Administrator
Momentum Group Inc.
(949) 833-8886 x623
http://memosamples.com
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/



**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.clearswift.com
**
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/