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
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
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
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) {
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);
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
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
7 matches
Mail list logo