Re: Netbeans 6.0 Editor Error with struts2 library

2008-01-16 Thread MK Tan
Have you try
1) close netbeans
2) delete the cache folder under /.netbeans/6.0/var/ ?
3) open netbeans again.

HTH


On Jan 17, 2008 3:26 PM, Igor Vlasov <[EMAIL PROTECTED]> wrote:

>
> This is not because an empty method:-/.
>
> I try to write there but do not get any response. :-((
>
>
>
> Al Sutton-4 wrote:
> >
> > Might be an idea to ask the Netbeans list, sounds like they've got some
> > optimization problems with empty methods being eliminated.
> >
> > - Original Message -
> > From: "Igor Vlasov" <[EMAIL PROTECTED]>
> > To: 
> > Sent: Wednesday, January 16, 2008 11:00 AM
> > Subject: Netbeans 6.0 Editor Error with struts2 library
> >
> >
> >>
> >> Hello.
> >>
> >> I have installed a netbeans 6 on jdk6u4 and  all recent updates for it.
> >>
> >> Then i Try to implement an interface in my custom class.
> >>
> >> public class Site1AuthAction  implements ServletRequestAware{
> >> public void setServletRequest(HttpServletRequest request) {
> >>
> >>  }
> >> }
> >>
> >> I get strarge editor warning in my UI Interface:
> >> "Site1AuthAction is not abstract and does not override abstract
> >> method
> >> setServletRequest(HttpServletRequest) in
> >> org.apache.struts2.interceptor.ServletRequestAware
> >>
> >> This is the screenshot:
> http://www.nabble.com/file/p14878230/nbgluck.JPG
> >> nbgluck.JPG
> >>
> >> BUT it compiles to valid Class and looks good.
> >>
> >> In Netbeans 5.5 and 5.5.1  all is working fine
> >>
> >>
> >> Anyone have such problem ?
> >>
> >>
> >>
> >> --
> >> View this message in context:
> >>
> http://www.nabble.com/Netbeans-6.0-Editor-Error-with-struts2-library-tp14878230p14878230.html
> >> Sent from the Struts - User mailing list archive at Nabble.com.
> >>
> >>
> >> -
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/Netbeans-6.0-Editor-Error-with-struts2-library-tp14878230p14913542.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Struts 2 - incompatibility between JSTL xml taglibs and Struts 2 ?????

2007-09-07 Thread MK Tan
look like struts taglibs cause the NPE.  unknown property name?


On 9/7/07, Riccardo Mollame <[EMAIL PROTECTED]> wrote:
>
> Could any one explain why this piece of code works
> fine:
>
> <%@ taglib prefix="c"
> uri="http://java.sun.com/jsp/jstl/core"%>
> <%@ taglib prefix="x"
> uri="http://java.sun.com/jsp/jstl/xml"%>
> <%@ taglib prefix="s" uri="/struts-tags"%>
>  var="pagelist" scope="application" />
> 
> 
>   
>   
>   
> 
>  select="$document/pages/[EMAIL PROTECTED]'P001']/title"/>
>   
> 
>
> while this one:
>
> <%@ taglib prefix="c"
> uri="http://java.sun.com/jsp/jstl/core"%>
> <%@ taglib prefix="x"
> uri="http://java.sun.com/jsp/jstl/xml"%>
> <%@ taglib prefix="s" uri="/struts-tags"%>
>  var="pagelist" scope="application" />
> 
> 
>   
>   
>   
> 
> 
> 
> 
>   
>   
>   
> 
> 
> 
>   
> 
>
> gives the following error:
>
> -web-main: Servlet error
> java.lang.NullPointerException
> at
> org.apache.struts2.views.jsp.TagUtils.getStack(TagUtils.java:58)
>
> at
> org.apache.struts2.views.jsp.StrutsBodyTagSupport.getStack(
> StrutsBodyTagSupport.java:52)
>
> at
> org.apache.struts2.views.jsp.ComponentTagSupport.doStartTag(
> ComponentTagSupport.java:49)
>
> at _jsps._Login._jspService(_Login.java:103)
> at com.orionserver[Oracle Containers for J2EE 10g
> (10.1.3.3.0)
> ].http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
>
> at
> oracle.jsp.runtimev2.JspPageTable.compileAndServe(JspPageTable.java:724)
>
> at
> oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:414)
>
> at
> oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
>
> at
> oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
>
> at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
>
> at com.evermind[Oracle Containers for J2EE 10g
> (10.1.3.3.0)
> ].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java
> :65)
> at
> org.apache.struts2.dispatcher.FilterDispatcher.doFilter(
> FilterDispatcher.java:413)
>
> at com.evermind[Oracle Containers for J2EE 10g
> (10.1.3.3.0)
> ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher
> .java:623)
> at com.evermind[Oracle Containers for J2EE 10g
> (10.1.3.3.0)
>
> ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher
> .java:370)
> at com.evermind[Oracle Containers for J2EE 10g
> (10.1.3.3.0)
> ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler
> .java:871)
> at com.evermind[Oracle Containers for J2EE 10g
> (10.1.3.3.0)
> ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler
> .java:453)
> at com.evermind[Oracle Containers for J2EE 10g
> (10.1.3.3.0)
> ].server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler
> .java:221)
> at com.evermind[Oracle Containers for J2EE 10g
> (10.1.3.3.0)
> ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:122)
>
> at com.evermind[Oracle Containers for J2EE 10g
> (10.1.3.3.0)
> ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:111)
>
> at
> oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(
> ServerSocketReadHandler.java:260)
>
> at
> oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(
> ServerSocketAcceptHandler.java:239)
>
> at
> oracle.oc4j.network.ServerSocketAcceptHandler.access$700(
> ServerSocketAcceptHandler.java:34)
>
> at
> oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(
> ServerSocketAcceptHandler.java:880)
>
> at com.evermind[Oracle Containers for J2EE 10g
> (10.1.3.3.0)
>
> ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor
> .java:303)
> at java.lang.Thread.run(Thread.java:595)
>
>
> I'm stuck. It has no explanation to me.
> Any help deeply appreciated.
> Thanks in advance.
>
> Ric
>
>
>   ___
> L'email della prossima generazione? Puoi averla con la nuova Yahoo! Mail:
> http://it.docs.yahoo.com/nowyoucan.html
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Eclipse Editor and struts tags

2007-08-02 Thread MK Tan
Hi,

WTP 
1.5with
EMF
2.2  will run
fine in Eclipse 3.2.2. ;-)

On 8/2/07, appel <[EMAIL PROTECTED]> wrote:
>
>
> Hi,
>
> I cannot install WTP unless I have EMF, and I cannot install EMF unless I
> have Eclipse 3.3.0 (I have Eclipse 3.2.2). So therefor I cannot install
> WTP!
> :|
>
> Also, I don't want to install a new Eclipse editor, it's a total pain
> maintaining 2 or 3 Eclipse installs, with 3 different workspaces.
> --
> View this message in context:
> http://www.nabble.com/Eclipse-Editor-and-struts-tags-tf4205171.html#a11963283
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Eclipse Editor and struts tags

2007-08-02 Thread MK Tan
Do you have WTP installed in your Eclipse?


On 8/2/07, appel <[EMAIL PROTECTED]> wrote:
>
>
> Hello,
>
> I'm using Eclipse 3.2.2, isn't it possible to get tag insight, syntax
> coloring, code completion etc. when editing JSP pages using struts-tags ?
>
> It's currently just raw black text.
> --
> View this message in context:
> http://www.nabble.com/Eclipse-Editor-and-struts-tags-tf4205171.html#a11961564
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: [S2] Passing values from one action to another

2007-07-16 Thread MK Tan

Have you try Chain Result
?



On 7/17/07, yitzle <[EMAIL PROTECTED]> wrote:


I got two action classes, A and B.
A has a bunch of getters and B has corresponding setters.
In order to get the value from A into B, does that value need to
appear in the JSP? e.g. ?
I know I can get it to work by passing the values through the JSP (and
calling B from the submit), but can I get the values from A's getters
to B's setters without placing them on the JSP?

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: Action class in struts-2.0 version

2007-06-28 Thread MK Tan

I means this
http://www.nabble.com/Re%3A-How-to-creae-Action-class-in-struts2.0.8-p11340666.html

On 6/28/07, MK Tan <[EMAIL PROTECTED]> wrote:


Wasn't you have the answer from this reply 
http://www.nabble.com/How-to-creae-Action-class-in-struts2.0.8-tf3993602.html#a11340518
?



On 6/28/07, manohar-AB <[EMAIL PROTECTED]> wrote:
>
>
> I want the code for the Action class and struts.xml in the struts2.0.8
> version
> --
> View this message in context: 
http://www.nabble.com/Action-class-in-struts-2.0-version-tf3993691.html#a11340772
>
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



Re: Action class in struts-2.0 version

2007-06-28 Thread MK Tan

Wasn't you have the answer from this reply
http://www.nabble.com/How-to-creae-Action-class-in-struts2.0.8-tf3993602.html#a11340518?



On 6/28/07, manohar-AB <[EMAIL PROTECTED]> wrote:



I want the code for the Action class and struts.xml in the struts2.0.8
version
--
View this message in context:
http://www.nabble.com/Action-class-in-struts-2.0-version-tf3993691.html#a11340772
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: is there anyway to store the previous added lateExtraAmount

2007-06-06 Thread MK Tan

you can put the previous added lateExtraAmount into session.
After that, just retrieve it back from the session n do ur calculation.

HTH,
MK Tan

On 6/4/07, prasad kumar <[EMAIL PROTECTED]> wrote:




hi,
  iam using struts, i have one class i.e LateExtra,in this class
   i have wriiten the code like below
  double lateExtraAmount = calc.calculateLateExtra(currentContract);

   from the above iam getting the lateExtraAmount
   for ex:intially the amount is 2000 After that i Updated the amount to
2500,
  then the lateExtraAmount =Updated Amount-Intial amount i.e 500,
  then After that iam setting the value  as
   model.setAmount(String.valueOf(lateExtraAmount));
  After some time I updated the amount from 2500 to 2600 then
lateExtraAmount=Updated Amount-Intial amount i.e 100.

   but i want the previous added lateExtraAmount and Latest added
lateExtraAmount .for that i have wriiten the code like below

  String newLateExtraAmount=new Double(Double.parseDouble(model.getAmount
())+lateExtraAmount).toString().
  model.setAmount(String.valueOf(newLateExtraAmount));

   but the problem with the above code is whenever iam going to that
screen the amount is incrementing.

  my problem  is there anyway to store the previous added lateExtraAmount?
so that i can add the previous added lateExtraAmount with  Latest added
lateExtraAmount.i will get the result properly

  if anybody knows please assist me i have been trying from the last two
days...

  thanks,
  prasad




-
Here's a new way to find what you're looking for - Yahoo! Answers


Re: [S2] Spring Injection

2007-05-23 Thread MK Tan

Hi,
Let assume your base class is like this:
public class BaseAction extends ActionSupport {
   private MyService myService;
   public void setMyService(MyService service) {
   this.myService = service;
   }

   //put others getter and setter here...
}

public class FooAction extends BaseAction {
//do whatever you want with myService
}

public class BarAction extends BaseAction {
//create anything you like with myService
}

in your applicationContext.xml, declare something shown below:

   






HTH
MK Tan
On 5/23/07, Roger Varley <[EMAIL PROTECTED]> wrote:


Hi

I suspect that this going to be a stupid question but please bear with
me. I have a BaseAction for my application that extends ActionSupport
and all my actions extend BaseAction. BaseAction recieves a reference
to a Service bean, through which my actions obtain objects from my
Business Layer, by injection from the Spring container.

Is there a way of configuring Struts and Spring so that I only need to
do this for my BaseAction  and therefore avoid having to define all my
actions to Spring or do I still need to inject the Service object into
each action.

I'm sorry if this is a really stupid question, but this is all new stuff
to me.

Regards
Roger

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: OT- need some help

2007-05-21 Thread MK Tan

On 5/21/07, vikas rao <[EMAIL PROTECTED]> wrote:


Can you give me an example?





The reason I chose to do it this way is basically I can change the

inputDirectory, outputdirectory and other values without making any
changes
in the code, hence using it anywhere becomes easy.
In our company, we have a jar file which is included in the build path and
then we access the config files like:
Config configRoot = ConfigFactory.create(ConfigFactory.DEFAULT);
and then using the Config object, go onto access the values in the .cfg
files...but If i want to use this elsewhere, how would i do a similar
thing?



As long as your jar file and the cfg file are under the same classpath,
it shouldn't be any problem to read the value.

That was my question.


Thanks.
Vikas.

On 5/21/07, MK Tan <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> Just wonder why you need to do this in xml way?
> Wasn't it much simpler if you do it in properties (key value) format?
> Most of the time, I just found it people like to overuse xml :-p
>
> Best regards,
> MK Tan
>
> On 5/21/07, vikas rao <[EMAIL PROTECTED]> wrote:
> >
> > Hi,
> >
> > Can someone point out a tutorial or some place where I can learn how
to
> > read
> > values from a .cfg file?
> > Say I have a Input.cfg file which goes like:
> > 
> > 
> > >  inputDir="C:/vray/xml_files/"
> >   outputDir="C:/xm_output"
> >/>
> > 
> > 
> >
> > Now, if I need the inputDir value inside my program, how do I do it?
> >
> > Sorry that this is off topic from struts, but i cant seem to find some
> > sensible help.
> >
> > Any help will be appreciated.
> > Thanks.
> > Vikas.
> >
>



Re: OT- need some help

2007-05-21 Thread MK Tan

Hi,

Just wonder why you need to do this in xml way?
Wasn't it much simpler if you do it in properties (key value) format?
Most of the time, I just found it people like to overuse xml :-p

Best regards,
MK Tan

On 5/21/07, vikas rao <[EMAIL PROTECTED]> wrote:


Hi,

Can someone point out a tutorial or some place where I can learn how to
read
values from a .cfg file?
Say I have a Input.cfg file which goes like:


   



Now, if I need the inputDir value inside my program, how do I do it?

Sorry that this is off topic from struts, but i cant seem to find some
sensible help.

Any help will be appreciated.
Thanks.
Vikas.



Re: [s2] unexpected Tomcat shutdown everyday

2007-05-17 Thread MK Tan

Hi,
Do you have any classes which invoke System.exit()?
or do u have any spring scheduler which will terminate tomcat?
or any error occurred before tomcat shutdown?

Best regards,
MK Tan

On 5/17/07, walidito <[EMAIL PROTECTED]> wrote:



Hi all,
I have a a very strange and critical pb with my struts 2.0.1 application
that makes my tomcat server shutdown everyday between 5:40pm and 6:30pm
approx. I'm sure that this come from my application since the pb does not
occur when I remove it.
tomcat is a 5.5.20, my jdk is 1.5-009.
When my app is deployed and the server's up, here the "normal logs :
17:29:30,281 DEBUG ManagerBase:676 - Start expire sessions StandardManager
at 1179264570281 sessioncount 0
17:29:30,281 DEBUG ManagerBase:684 - End expire sessions StandardManager
processingTime 0 expired sessions: 0
17:30:30,319 DEBUG ManagerBase:676 - Start expire sessions StandardManager
at 1179264630319 sessioncount 0
17:30:30,319 DEBUG ManagerBase:684 - End expire sessions StandardManager
processingTime 0 expired sessions: 0
17:31:30,356 DEBUG ManagerBase:676 - Start expire sessions StandardManager
at 1179264690356 sessioncount 0
17:31:30,356 DEBUG ManagerBase:684 - End expire sessions StandardManager
processingTime 0 expired sessions: 0
17:32:30,394 DEBUG ManagerBase:676 - Start expire sessions StandardManager
at 1179264750394 sessioncount 0

But when the problem happens, here are the logs that I get :
17:49:31,092 DEBUG ManagerBase:676 - Start expire sessions StandardManager
at 1179265771092 sessioncount 0
17:49:31,092 DEBUG ManagerBase:684 - End expire sessions StandardManager
processingTime 0 expired sessions: 0
17:49:32,424 DEBUG JspServlet:279 - JspServlet.destroy()
17:49:32,424 DEBUG TableTag:1618 - [null] release() called
17:49:32,424 DEBUG TableTag:1618 - [null] release() called
17:49:32,424 DEBUG TableTag:1618 - [null] release() called
17:49:32,424 DEBUG TableTag:1618 - [null] release() called
17:49:32,424 DEBUG TableTag:1618 - [null] release() called
17:49:32,434 DEBUG [/dev]:3658 - Stopping filters
17:49:32,434 DEBUG [/dev]:3666 -  Stopping filter 'struts2'
17:49:32,484  INFO [/dev]:646 - Closing Spring root WebApplicationContext
17:49:32,484  INFO XmlWebApplicationContext:500 - Closing application
context [Root WebApplicationContext]
17:49:32,484 DEBUG XmlWebApplicationContext:215 - Publishing event in
context [Root WebApplicationContext]:
org.springframework.context.event.ContextClosedEvent[source=
org.springframework.web.context.support.XmlWebApplicationContext:
display name [Root WebApplicationContext]; startup date [Tue May 15
09:32:32
EDT 2007]; root of context hierarchy; config locations
[/WEB-INF/applicationContext.xml]]
17:49:32,484  INFO DefaultListableBeanFactory:555 - Destroying singletons
in
factory
{org.springframework.beans.factory.support.DefaultListableBeanFactory
defining beans []; root of BeanFactory hierarchy}
17:49:32,484 DEBUG ManagerBase:655 - Stopping
17:49:32,494 DEBUG ManagerBase:477 - Unloading persisted sessions
17:49:32,494 DEBUG ManagerBase:484 - Saving persisted sessions to
SESSIONS.ser
17:49:32,494 DEBUG ManagerBase:507 - Unloading 0 sessions
17:49:32,504 DEBUG ManagerBase:551 - Expiring 0 persisted sessions
17:49:32,504 DEBUG ManagerBase:565 - Unloading complete
17:49:34,006  INFO DriverManagerConnectionProvider:147 - cleaning up
connection pool: jdbc:oracle:thin:@xx::
17:49:34,026  WARN DriverManagerConnectionProvider:155 - problem closing
pooled connection
java.sql.SQLException: Io exception: Socket closed
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java
:134)
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java
:179)

thanks a lot for your help.
--
View this message in context:
http://www.nabble.com/-s2--unexpected-Tomcat-shutdown-everyday-tf3772115.html#a10664842
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: posting form

2007-05-08 Thread MK Tan

Hi,

Have you try it yourself before posting? ;-)
Let me make a wild guess, it submit back to the same action which forward to
this jsp :D


cheers,
MK Tan

p/s: doing some homework or simple test before asking does not hurt or take
many time :p

On 5/9/07, temp temp <[EMAIL PROTECTED]> wrote:


My struts  action class forwards to  view which has  form tag (html
form tag)



   Here I did  not specify action attribute to the form just
specified  attribute method="POST" when user  submits this form where does
it go ?

  Thanks & Regards
  Miro



-
Need Mail bonding?
Go to the Yahoo! Mail Q&A for great tips from Yahoo! Answers users.


Re: s:url bug

2007-05-01 Thread MK Tan

Hi,


From the constructed url I assume you refer the url like this:

">some message

Try using , like this

some text again

AFAIK,  will give you the correct url.

HTH,

MK Tan
On 5/1/07, David Harland <[EMAIL PROTECTED]> wrote:


Hi,

I think I have found a bug with the url tag. If I have a url with 2
params






I get

%{msgUrl} gives

/test/test!delete.action?lastPage=home&amp;messageId=3851761

Am I doing something wrong?


__
Ufi Limited
Registered in England No.  3980770
Registered Office:  Dearing House, 1 Young Street, Sheffield, S1 4UP

learndirect Solutions Ltd
Registered in England No. 5081669
Registered Office:  Dearing House, 1 Young Street, Sheffield, S1 4UP

UFI Charitable Trust
Registered in England No.  3658378
Registered Charity No.  1081028
Registered Office:  Dearing House, 1 Young Street, Sheffield, S1 4UP

This email has been scanned by the MessageLabs Email Security System.

__


Re: compile error

2007-04-25 Thread MK Tan

or use maven2 ;-)

from the given error message.
It seem like the struts jar files are not in your classpath.
Try set the classpath ;-)

Best regards,
Mk Tan

On 4/25/07, Lance <[EMAIL PROTECTED]> wrote:


I highly recommend using ant to manage your project including clean,
compile, deploy, javadoc, etc. etc.


http://supportweb.cs.bham.ac.uk/docs/tutorials/docsystem/build/tutorials/ant/ant.html
http://ant.apache.org/

srikanth_arr wrote:
> i am new to struts when i compiling the my first struts app
> iam getting a error
>
> D:\Program Files\Apache Software Foundation\Tomcat
> 5.5\webapps\FirstApp>javac *.
> java -d ..\web-inf\classes
> UserRegistrationAction.java:8: error while writing
> strutsEx.UserRegistrationActi
> on: ..\web-inf\classes\strutsEx\UserRegistrationAction.class (The system
> cannot
> find the path specified)
> public class UserRegistrationAction extends Action
> ^
> Note: UserRegistrationForm.java uses or overrides a deprecated API.
> Note: Recompile with -Xlint  eprecation for details.
> 1 error
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: RE [S2] How to have validation message using localization ?

2007-04-19 Thread MK Tan

do u have a property named loginInput in package.properties?
IIRC, if struts / webwork can't find the appropriate property, it will
display the key as output

HTH

Best regards,
MK Tan



On 4/19/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:


Anyone ? :(


Michaël




Hi all,

With Struts 2.0.6, I try to have validation message with localization.

For example, I have a "login" form, with a "loginInput" input text :




I have a validation on it :








And the "errors.required" is in my package.properties :
errors.required= The field "${getText(fieldName)}" is required !
login.login = Login

But this will displays : "The field "loginInput" is required !"

And I would like : "The field "Login" is required !". So I would like
something which get the localization of my textfield label (login.login)
to have localization in my error message, and not the field name, which
does not say anything to the user :)

Could someone tells me how to do ?

Thanks a lot !

Regards,

Michaël.



Re: tags within tags in struts..

2007-04-11 Thread MK Tan

try this



On 4/11/07, mi <[EMAIL PROTECTED]> wrote:


hi i want to make the value of my url tag to come from the value of my
property tag..
like this..


>


but i am getting an error,. what is the correct way to do it?

thanks in advance.



-
Don't get soaked.  Take a quick peak at the forecast
with theYahoo! Search weather shortcut.


Re: [S2] using

2007-04-05 Thread MK Tan

have u try this








On 4/5/07, [EMAIL PROTECTED] <
[EMAIL PROTECTED]> wrote:


Hello,

I've been trying to use  but come across a problem when using
it with  to set parameters on the action url.

From the documentation there is an example:

  
  
  
  

Which should results in

  

However the actual result when trying this example from the browser is:



  

  

The params do not get added to the href URL.  Does this look like a
bug in the org.apache.struts2.components.Anchor class?

Thanks for any pointers,


Paul.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]