Re: Re: is it a bug of CheckboxTag

2001-05-15 Thread JeanX

Jim Richards wrote at 2001-05-15 15:52:00,
Set the value to true in the ActionForm reset() method.



Hi Jim, my ActionForm are in request scope.
and I means those checkboxes are selected defaultly.

Best regards,
JeanX
pacificnet.com(GZ)




is it a bug of CheckboxTag

2001-05-14 Thread JeanX

Hi struts-user,

If I uncheck a checkbox, there is no corresponding parameter pair in request.
So I can not get the right status of certain form.
How to resolve it ?


:=)
Best regards,
JeanX
pacificnet.com(GZ)




Re: is it a bug of CheckboxTag

2001-05-14 Thread JeanX

Jim Richards wrote at 2001-05-15 14:48:00,
JeanX wrote:
 If I uncheck a checkbox, there is no corresponding parameter pair in request.
 So I can not get the right status of certain form.
 How to resolve it ?

In you ActionForm reset method you need to set all the checkbox values
to false, as reset() is called before the form is populated.

That way, the only values that get sent are the ones that need to be
set to true, and the ActionForm is correctly set.

So if I wanna some checkbox default true,
How can I do?


Best regards,
JeanX
pacificnet.com(GZ)




How to add new tag into struts-config.xml?

2001-04-25 Thread JeanX

Hi struts-user,

How to add new tag into struts-config.xml ?

Or

In my application, there is a framework jsp file that fixed included three jsp page 
components. And I call them 'header', 'left', and 'right' . 
So I want to setup these components in my action and then the framework jsp file can 
install them .  
And I think one way is setup these three components in my action.
But I think it is good if I can config them in my struts-config.xml.
Any ideas/help appreciated.

:=)
Best regards,
JeanX
pacificnet.com(GZ)




how to use ant tool to build my application?

2001-04-17 Thread JeanX

Hi struts-user,

I apologize  in advance for this kind of problem ,but I think it is the best 
mailing-list I am aware of :)
So when I use the ant to build my application, there are some error:

Buildfile: build.xml
BUILD FAILED
javax.xml.parsers.FactoryConfigurationError: org.apache.crimson.jaxp.SAXParserFa
ctoryImpl
at javax.xml.parsers.SAXParserFactory.newInstance(SAXParserFactory.java:
95)
at org.apache.tools.ant.ProjectHelper.getParserFactory(ProjectHelper.jav
a:706)
at org.apache.tools.ant.ProjectHelper.parse(ProjectHelper.java:105)
at org.apache.tools.ant.ProjectHelper.configureProject(ProjectHelper.jav
a:85)
at org.apache.tools.ant.Main.runBuild(Main.java:403)
at org.apache.tools.ant.Main.main(Main.java:149)

Total time: 0 seconds
org.apache.crimson.jaxp.SAXParserFactoryImpl

And I have put ant.jar, jaxp.jar, servlet.jar, and parser.jar these archives under 
$TOMCAT_HOME/lib directory . 

please help me .thx


:=)
Best regards,
JeanX
pacificnet.com(GZ)




how to get a global ActionForward object?

2001-04-06 Thread JeanX

Hi struts-user,

How to get a global ActionForward object defined in global-forwards tag in my Action 
class ?
Can I get it by calling findForward() on the ActionMapping object I received?
Thx

:=)
Best regards,
JeanX
pacificnet.com(GZ)




A problem about i18n

2001-04-06 Thread JeanX

Hi struts-user,

I know locale of user saved under the org.apache.struts.action.Action.LOCALE_KEY key 
in his session object .
But now I want to maintenance it in my own object.
So other class of Struts may not work rightly such as taglib.MessageTag .
How to resolve it except rewrite these class?
Thx

:=)
Best regards,
JeanX
pacificnet.com(GZ)




A problem about i18n

2001-04-06 Thread JeanX

Hi struts-user,

I know locale of user saved under the org.apache.struts.action.Action.LOCALE_KEY key 
in his session object .
But now I want to maintenance it in my own object.
So other class of Struts may not work rightly such as taglib.MessageTag .
How to resolve it except rewrite these class?
Thx

:=)
Best regards,
JeanX
pacificnet.com(GZ)




A problem about i18n

2001-04-05 Thread JeanX

Hi struts-user,

I know locale of user saved under the org.apache.struts.action.Action.LOCALE_KEY key 
in his session object .
But now I want to maintenance it in my own object.
So other class of Struts may not work rightly such as taglib.MessageTag .
How to resolve it except rewrite these class?
Thx

:=)
Best regards,
JeanX
pacificnet.com(GZ)




Can I nest struts:message tag in struts:link tag?

2001-03-28 Thread JeanX

Hi struts-user,

Can I nest struts:message tag in struts:link tag ?
Because I want to setup some query parameter reserved values in resources.
Thx

:=)
Best regards,
JeanX
pacificnet.com(GZ)




Can I nest struts:message tag in struts:link tag?

2001-03-27 Thread JeanX

Hi struts-user,

Can I nest struts:message tag in struts:link tag ?
Because I want to setup some query parameter in resources.
Thx

:=)
Best regards,
JeanX
pacificnet.com(GZ)




problem of newbie

2001-03-21 Thread JeanX

Hi struts-user,

I have a problem , pls help me.
I have a class that extended ActionMapping class .
It has a BeanName property.
And I config this property in struts-config.xml like below:
action-mappings
action path="/queryHots" 
className="com.my.MyMapping" type="com.my.MyAction"
set-property property="BeanName" value="static_hots"/
forward .../
/action   
/action-mappings
So when my tomcat startup , my console diplay these message:
...
New com.my.MyMapping 
Set com.my.MyMapping properties
Set com.my.MyMapping property BeanName to static_hots
...
But in fact , I can not get the value of property BeanName in perform mehthod
of MyAction instead it is null.

So what happend ? And how do I settle it on earth?
:=)
Best regards,
JeanX
pacificnet.com(GZ)




Re: RE: problem of newbie

2001-03-21 Thread JeanX

Hi Nigel Ainslie,

Ah yes .
When I rewrite "BeanName" to "beanName" in struts-config.xml , it works good.
Very thx.

:=)
ÔÚ 2001-03-22 15:39:00 ÄúдµÀ£º
...maybe you have a case-sensitivity issue. Sounds like your bean property
name should be "beanName" to allow methods "getBeanName" and
setBeanName"?

-Original Message-
From: JeanX [mailto:[EMAIL PROTECTED]]
Sent: Thursday, 22 March 2001 3:29
To: struts-user
Subject: problem of newbie


Hi struts-user,

I have a problem , pls help me.
I have a class that extended ActionMapping class .
It has a BeanName property.
And I config this property in struts-config.xml like below:
   action-mappings
   action path="/queryHots"
   className="com.my.MyMapping" type="com.my.MyAction"
   set-property property="BeanName"
value="static_hots"/
   forward .../
   /action   
   /action-mappings
So when my tomcat startup , my console diplay these message:

New com.my.MyMapping
Set com.my.MyMapping properties
Set com.my.MyMapping property BeanName to static_hots

But in fact , I can not get the value of property BeanName in perform
mehthod
of MyAction instead it is null.
   
So what happend ? And how do I settle it on earth?
:=)
Best regards,
JeanX
pacificnet.com(GZ)


Best regards,
JeanX
pacificnet.com(GZ)




PLS HELP!

2001-03-08 Thread JeanX

Hi struts-user ,

I extend ActionForward class for some new property .

//MyForward.class
private boolean some=false;
public boolean getSome(){
return this.some;
}
public void setSome(boolean is){
this.some=is;
}
//end 

And i set the new property value in struts-config.xml by set-property tag .
When my applicttion start , i can see infos on console :
set com.my.action.MyForward property Some to true .
But when i get this property value in my code by getSome method ,
the value is still false.
What means on earth ?
And how i to do ?


:=)
Best regards,
JeanX
pacificnet.com(GZ)




question about access property value?

2001-03-07 Thread JeanX

Hi struts-user,

How to get property value that defined in the struts_config.xml by set-property tags?
And how does it work?

:=)
Best regards,
JeanX
pacificnet.com(GZ)




Newbie to Struts

2001-02-27 Thread JeanX

Hi all,

Pls excuse for my poor english.
I want to put request URIs that mapped to some actions in jsp:include tag 
like this:
jsp:include page="/action.do?queryString=xxx" flush="true"/
And the container can execute the requested action ,but the client can not 
get the correct response.
So pls help me.


:=)
Best regards,
JeanX
pacificnet.com(GZ)




faq

2001-02-26 Thread JeanX

Hi struts-user,



:=)
Best regards,
JeanX
pacificnet.com(GZ)