PropertyUtils.copyProperties

2001-04-12 Thread Fred Lo

Hi all,

I just wonder if anyone have a utility class that is perform something to 
PropertyUtils.copyProperties() but with type conversion?

The reason is that I am coding all my ActionForm with string (for validation 
concern) but the underlying objects are in their respective type, so there 
is some tedious coding that copy the properties from the form/object back 
and forth.

Any help will be appreciated.

Fred
_
Get your FREE download of MSN Explorer at http://explorer.msn.com




forwarding to original page

2001-03-12 Thread Fred Lo

Hello all,

I have an application that contain support for multiple languages, we opt 
for the multiple language/multiple jsp option, where each language of the 
system will contain its own set of jsp.

We now have a problem that during validation, when there is an error, we 
would like the page forwarded back to the original jsp (of the originating 
language). But right now the mapping only allow us to define one input form, 
so upon looking at the source file, I think we can redefine 
processValidate() of ActionServlet a bit, instead of getting the input form 
from the mapping, we can get it from a parameter:

// Has an input form been specified for this mapping?
String uri = (request.getParameter(Constants.INPUT_FORM));
if (uri == null || uri.equals(""))
{ uri = mapping.getInput(); }


The idea is like this, is our approach correct? (pls don't say we shouldn't 
have a duplicate set of jsp) Or there is some better way to achieve that?

Thanks a lot.

Fred Lo
_
Get your FREE download of MSN Explorer at http://explorer.msn.com




struts-test problem

2001-03-04 Thread Fred Lo

Hello,

I have deployed the struts-test of 1.0beta to iplanet 6.0 sp2. But at
some of test page I have encountered errors, for example:

[05/Mar/2001 02:33:26:8] error: Exception: SERVLET-compile_failed: Failed in 
compiling template: /struts-vg/bean-include.jsp, javac error: 
d:\iplanet\ias6\ias\APPS\struts-vg\struts-vg\WEB-INF\compiled_jsp\jsp\APPS\struts_vg\bean_include.java:78:
 
Incompatible type for method. Can't convert java.lang.String to boolean.
((org.apache.struts.taglib.bean.WriteTag)_JSP__1).setFilter("true");
^
1 error

Exception Stack Trace:
java.lang.Exception: javac error: 
d:\iplanet\ias6\ias\APPS\struts-vg\struts-vg\WEB-INF\compiled_jsp\jsp\APPS\struts_vg\bean_include.java:78:
 
Incompatible type for method. Can't convert java.lang.String to boolean.
((org.apache.struts.taglib.bean.WriteTag)_JSP__1).setFilter("true");
^
1 error

at com.netscape.server.servlet.jsp.JSPCompiler.compileJSP(Unknown 
Source)
at 
com.netscape.server.servlet.jsp.JSPCompiler.compileOrLoadJSP(Unknown Source)
at 
com.netscape.server.servlet.jsp.JSPCompiler.compileInstance(Unknown Source)
at 
com.netscape.server.servlet.jsp.JSPCompiler.compileInstance(Unknown Source)


I wonder if this is an iplanet problem or what...

I couldn't also access the following pages:





Match Tags

Any idea??

Fred Lo


_
Get your FREE download of MSN Explorer at http://explorer.msn.com




using struts on iplanet

2001-03-01 Thread Fred Lo

Hello,

Anyone have experience with iplanet 6.0 sp2 and struts?

I am trying the struts-test.war application. I could load the jsp without 
problem, but it seems whenever an servlet is called upon it
will report:

GX Error (GX2GX)
socket reuslt code missing!!!

With the following in the log file:

[02/Mar/2001 00:20:28:6] warning: UTIL-013: GXGUID: NameTrans lookup failed 
(Applogic Servlet struts-test_html-select.do)

Anyone could shed some light on me?

I suspect it's some sort of deployment problem but what i did was
just create the .ear from the .war and deploy (using the GUI deployment
tools). Did I miss anything?

Thanks in advance

_
Get your FREE download of MSN Explorer at http://explorer.msn.com