old struts 1.3 app not work in GF3

2010-04-08 Thread senderj
I have an app written in 1.3.10 + Netbeans 6.8 + glassfishv2.1. It works fine both when GFv2.1 is run from Netbeans or standalone. I am trying to switch to GFv3. It still works if I start GFv3 in Netbeans. But if I run it in a standalone GFv3, it failed to start with message: [#|2010-04-javax.ente

Struts 1: character encoding

2009-10-06 Thread senderj
The components I use NetBean, Glassfish, Struts 1, EJB, Toplink, jdbc, MySQL. Basically what I want is to extract info from a web site (utf8 encoded Chinese), store the info in MySQL, retrieve the info and display on my web site for user to update/change it. But I got problem on the character enco

Re: [Struts 1.3] converter converts but not set property

2009-09-24 Thread senderj
t;warType". Arthur Neves wrote: > > BeansUtils just call your converter, if your form bean property "warType", > will be a 'WarrType' . > > On Wed, Sep 23, 2009 at 7:16 AM, senderj wrote: > >> >> I wrote a converter to convert a

[Struts 1.3] converter converts but not set property

2009-09-23 Thread senderj
I wrote a converter to convert a enum for BeanUtils.copyProperties(). I have this in my struts config: Here is my converters (embedded class in my Action) public class MyConverter1 implements Converter { @Override public WarrType convert(Class c, Object s) {

[Struts 1.3] first time use custom converter not working

2009-09-23 Thread senderj
I have a class Stk with property warType of type enum WarrType public enum WarrType { NONE, CALL, PUT; } I have in my struts config and in my Action MyConverter mc = new MyConverter(); ConvertUtils.register(mc, WarrType.class); PropertyUtils.copyProperties(stk, form);

logic:iterate

2009-09-02 Thread senderj
If I have a text input in my jsp named scoreNdays, I know I should declare my variable scoreNdays in the struts formbean with getter and setter like getScoreNdays(). Then it will work with the jsp. Now I have an iternation in my jsp like . Since the two input are indexed, they generate a

Struts and EJB 3

2009-03-06 Thread senderj
My env is Netbean with Glassfish. I am able to create a servlet to call EJB with this code: public class TryAdvise_create extends HttpServlet { @EJB AdviseFacadeRemote advBean; .. protected void processRequest(HttpServletRequest request, { .. Advise ad