RE: redirecting to another action
ActionA ===calling===ActionB In the forward attribute of actionmapping of ActionA specify the action path of ActionB action name=actionAForm type=ActionA scope=request/session validate=true input=xyz.do path=/A/do forward name=callActionB path=/B/do redirect=true / forward name=success path=/success.jsp / forward name=failure path=/failure.jsp / /action action name=actionBForm type=ActionB scope=request/session validate=true input=abc.do path=/B/do forward name=callActionB path=/B/do redirect=true / forward name=success path=/success.jsp / forward name=failure path=/failure.jsp / /action hth -Ramadoss -Original Message- From: Vanessa Monteiro [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 17, 2004 1:58 PM To: Subject: redirecting to another action Hello, I have an action and depending on the combo box value I need to redirect to another action. How can I do that? An action calling another action? _ Vanessa Monteiro Analista de Sistemas Quality Software 3475-3000 r:5062 - 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]
RE: redirecting to another action
YES, you can do that way ie set it before you call ActionB, inside ActionB you can get that value and execute any block of code of your choice...but I believe there are some other ways using which we can do it better. -Original Message- From: Vanessa Monteiro [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 17, 2004 2:18 PM To: [EMAIL PROTECTED] Subject: RE: redirecting to another action If I need to pass the method name to be executed in ActionB I can do it using setAttributes, right? _ Vanessa Monteiro Analista de Sistemas Quality Software 3475-3000 r:5062 [EMAIL PROTECTED] 17/03/2004 16:10:12 ActionA ===calling===ActionB In the forward attribute of actionmapping of ActionA specify the action path of ActionB action name=actionAForm type=ActionA scope=request/session validate=true input=xyz.do path=/A/do forward name=callActionB path=/B/do redirect=true / forward name=success path=/success.jsp / forward name=failure path=/failure.jsp / /action action name=actionBForm type=ActionB scope=request/session validate=true input=abc.do path=/B/do forward name=callActionB path=/B/do redirect=true / forward name=success path=/success.jsp / forward name=failure path=/failure.jsp / /action hth -Ramadoss -Original Message- From: Vanessa Monteiro [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 17, 2004 1:58 PM To: Subject: redirecting to another action Hello, I have an action and depending on the combo box value I need to redirect to another action. How can I do that? An action calling another action? _ Vanessa Monteiro Analista de Sistemas Quality Software 3475-3000 r:5062 - 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] - 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]
Passing Value to Tile
Hi, I have a main jsp contains set of tiles included and contents of each tile should be generated based on the value passed into it from its parent jsp.can anybody suggest me how can I send a value to tile from parent jsp and access that value inside tile? Thanks in advance, -Ramadoss - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Iterating List
Tnx a lot for Daniel and Tommy -Ramadoss -Original Message- From: Tommy Holm - TELMORE [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 10, 2004 4:40 AM To: Struts Users Mailing List; [EMAIL PROTECTED] Subject: SV: Iterating List The latter method would be the correct ! You could for clarity write the type of the id=myString which is the object you access in every iteration and it would be required for other custom objects logic:iterate id=myString name=myform property=ListofStringobjects type=java.lang.String bean:write name=myString/ /logic:iterate /Tommy -Oprindelig meddelelse- Fra: Daniel Henrique Alves Lima [mailto:[EMAIL PROTECTED] Sendt: 10. marts 2004 06:21 Til: Struts Users Mailing List Emne: Re: Iterating List How about this ? logic:iterate id=myString name=myform property=ListofStringobjects bean:write name=myString/ /logic:iterate Ramadoss Chinnakuzhandai wrote: finally I got the following working.. logic:iterate id=list name=myform property=ListofStringobjects bean:define id=xyz name=list type=java.lang.String/ /logic:iterate -Ramadoss - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[OT]JSP Debugger
1.First my apology for post this question which I have asked it already. 2.This is question reg Debugging JSP,I do understand that debugging JSP is not really required if we are really follow MVC pattern as we are not putting too much of logic in it...BUT just wanted to know that is there any JSP debugger tool/plugin available for Eclipse? we know that myeclipse works well with Tomcat as a separate container but when it comes with JBoss Tomcat bundle I could not debug JSP using the same tool. Tnx in advance, -Ramadoss - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT]JSP Debugger
If you have the code to the tags, you can set breakpoints there, and debug at that level. I have found that to meet 100% of my debugging needs as far as JSP debugging goes. 1.May I know which tool you are talking about..?? 2.If you are talking about MyEclipse I agree that it works well with Tomcat,JBoss as separate container...when it comes to JBoss 3.2.3 bundle(contains Tomcat) it doesn't works. -Ramadoss -Original Message- From: Larry Meadors [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 10, 2004 10:39 AM To: [EMAIL PROTECTED] Subject: Re: [OT]JSP Debugger If you have the code to the tags, you can set breakpoints there, and debug at that level. I have found that to meet 100% of my debugging needs as far as JSP debugging goes. Larry [EMAIL PROTECTED] 03/10/04 7:48 AM 1.First my apology for post this question which I have asked it already. 2.This is question reg Debugging JSP,I do understand that debugging JSP is not really required if we are really follow MVC pattern as we are not putting too much of logic in it...BUT just wanted to know that is there any JSP debugger tool/plugin available for Eclipse? we know that myeclipse works well with Tomcat as a separate container but when it comes with JBoss Tomcat bundle I could not debug JSP using the same tool. Tnx in advance, -Ramadoss - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Iterating List
I need to iterate and display collection object List containing objects of type String in my JSP, I know that if the collection is of type Array I can index and get all the objects but is there anyway I can iterate this List object and disply its String objects in my JSP(without having to convert the list to Array). Thanks for your help -Ramadoss - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Iterating List
finally I got the following working.. logic:iterate id=list name=myform property=ListofStringobjects bean:define id=xyz name=list type=java.lang.String/ /logic:iterate -Ramadoss -Original Message- From: Daniel Henrique Alves Lima [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 09, 2004 8:35 PM To: Struts Users Mailing List Subject: Re: Iterating List Try logic:iterate (http://jakarta.apache.org/struts/userGuide/struts-logic.html#iterate) and bean:write (http://jakarta.apache.org/struts/userGuide/struts-bean.html#write). Look at mail archive (http://mail-archives.apache.org/eyebrowse/[EMAIL PROTECTED]). I think somebody has been sent a question like yours. I hope this helps you... Ramadoss Chinnakuzhandai wrote: I need to iterate and display collection object List containing objects of type String in my JSP, I know that if the collection is of type Array I can index and get all the objects but is there anyway I can iterate this List object and disply its String objects in my JSP(without having to convert the list to Array). Thanks for your help -Ramadoss - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Hiding URL Parameters
Is there anyway I can hide sending all the URL parameters (in the browser address) from once page to other whenever I do submit/click on html link? any help would be appreciated. Tnx in advance, -Ramadoss - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Hiding URL Parameters
But if you're using an html hyperlink, or the Struts html:link... tag, you cannot pass arguments without having them appear in the URL. Im using html:link in most cases.and there is the need of hiding URL parameters despite I'm using method=post in my html:form any clue?? -Ramadoss -Original Message- From: Slattery, Tim - BLS [mailto:[EMAIL PROTECTED] Sent: Thursday, March 04, 2004 2:36 PM To: 'Struts Users Mailing List' Subject: RE: Hiding URL Parameters Is there anyway I can hide sending all the URL parameters (in the browser address) from once page to other whenever I do submit/click on html link? If you set method=post in your form element (which Strut's html:form... tag does as default) the arguments will not appear as part of the URL. But if you're using an html hyperlink, or the Struts html:link... tag, you cannot pass arguments without having them appear in the URL. -- Tim Slattery [EMAIL PROTECTED] - 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]
RE: Hiding URL Parameters
tnx all for your helpsure I would try that way. -Ramadoss -Original Message- From: Michael McGrady [mailto:[EMAIL PROTECTED] Sent: Thu 3/4/2004 5:41 PM To: Struts Users Mailing List Cc: Subject: RE: Hiding URL Parameters Well, yes and no. There are lots of things to be done, actually. First, whatever is sent to the server as a get can be disguised. You are not locked into anything except some agreement between client and server. You can use Diffie-Hellman if you want, for example. Second, what you can do depends in great part on what your application is doing. Why don't you use some JavaScript, however, to convert your link to an html form? At 11:45 AM 3/4/2004, you wrote: But if you're using an html hyperlink, or the Struts html:link... tag, you cannot pass arguments without having them appear in the URL. Im using html:link in most cases.and there is the need of hiding URL parameters despite I'm using method=post in my html:form any clue?? I already said it. A link is a GET request. With a GET, the parameters are part of the request. There's no way around that. -- Tim Slattery [EMAIL PROTECTED] - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Action not forwarding to another Action
a href=app/UpdateOrder.exec?id=30.. In other words, I get to the Action class through a 'link' rather than a 'submit', can I still use String id = Request.getParameter(id); to retrieve the id? I tried it and I can't find id from the Request object. Yes, You can, provided that you are not submitting the form meaning though you are passing value thru html:link it wont carry but value in sumbit action of your form. example If you are submitting it thru html:link action=action=/xyz/id=30html:image //html:link you wont get this id in your request.getParameter(id), replace html:image/ by html:img/ so by you are not submitting the form. htp. -Ramadoss -Original Message- From: Au-Yeung, Stella H [mailto:[EMAIL PROTECTED] Sent: Monday, March 01, 2004 11:14 PM To: 'Struts Users Mailing List' Subject: RE: Action not forwarding to another Action Thanks Ramadoss. You led me to look into my web.xml file. It is mapped to *.exec and not *.exe. It's an oversight on my part. Let me elaborate my question #3: If my .JSP has a html:form action=/app/UpdateOrder?id=30 , I know when I click a 'submit' button to get to an Action class, I can retrieve the id in my Action class by doing String id = Request.getParameter(id); But if my .jsp uses a link to pass the id such as a href=app/UpdateOrder.exec?id=30.. In other words, I get to the Action class through a 'link' rather than a 'submit', can I still use String id = Request.getParameter(id); to retrieve the id? I tried it and I can't find id from the Request object. -Original Message- From: Ramadoss Chinnakuzhandai [mailto:[EMAIL PROTECTED] Sent: Monday, March 01, 2004 6:24 PM To: Struts Users Mailing List Subject: RE: Action not forwarding to another Action If Im not wrongif .exe is what you hv configured in web.xml then I see there is no reason why it is not picking up / possible reason could be... make sure that you are forwarding to Content which is mapped to /app/ListOfOrder.exe in your OrderMaintainAction 1) Can someone also tell me if I have a Request attribute defined in OrderMaintainAction, if the above redirection works, will I be able to see the same Request attribute in OrderSearchAction? the same scenarion where I'm not able to get the value of request attribute which I set in my previous Action class then I set as session attribute and Im able to get that value in the other Action class where Im redirecting to. 2) A general question: if formA is linked to formB through a 'link'. If I click on the 'link' in formA, can I get to the passed parameter of FormA by doing Request.geParameter(id) or I can only retrieve 'id' throught a 'submit' rather than through a 'link'? I dont really understand your point but I assumed that you are passing a parameter from one form to another in such case if you are calling other page/calling action class by passing request parameter you could get those parameters on the other page/action class. hth -Ramadoss -Original Message- From: Au-Yeung, Stella H [mailto:[EMAIL PROTECTED] Sent: Monday, March 01, 2004 5:51 PM To: '[EMAIL PROTECTED]' Subject: Action not forwarding to another Action Hi: I have a similar problem that I can't invoke OrderSearchAction.exe from OrderMaintainAction. I set a debug breakpoint at the beginning of OrderSearchAction and never get there. actionpath=/app/DeleteOrder type=com.cat.action.OrderMaintainAction name=OrderFormBean scope=request validate=false forward name=Content path=/app/ListOfOrder.exe redirect=true / forward name=ContentError path=/app/DeleteError.jsp/ /action actionpath=/app/ListOfOrder type=com.cat.action.OrderSearchAction name=OrderSearchFormBean scope=request validate=false forward name=Content path=/app/ListOfOrder.jsp/ forward name=ContentError path=/app/OrderError.jsp/ /action I have two other questions: 1) Can someone also tell me if I have a Request attribute defined in OrderMaintainAction, if the above redirection works, will I be able to see the same Request attribute in OrderSearchAction? 2) A general question: if formA is linked to formB through a 'link'. If I click on the 'link' in formA, can I get to the passed parameter of FormA by doing Request.geParameter(id) or I can only retrieve 'id' throught a 'submit' rather than through a 'link'? Thanks for any help! - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e
RE: Action class calling other Action class
When I try to call actionA from actionB by forwarding to the path which mapped to actionA it is not actually invoking actionA. action name=myaccountDomainActionForm type=com.register.struts.account.AccountDomainAction scope=session path=/myaccount/domains !-- set-property property=secure value=true/ -- forward name=success path=myaccount.dmdetails redirect=false / forward name=requiresLogin path=myaccount.login redirect=false / forward name=restoreDefaultDNSSettings path=myaccount.dmdetails.outsidedns.restore.confirm redirect=false / forward name=addMoreDNS path=myaccount.dmdetails.dns.add redirect=false / forward name=manageRegdNameServers path=myaccount.dmdetails.dns.registered redirect=false / /action action name=myaccountDomainActionForm type=com.register.struts.account.AccountDomainAction scope=session path=/myaccount/domains !-- set-property property=secure value=true/ -- forward name=success path=myaccount.dmdetails redirect=false / forward name=requiresLogin path=myaccount.login redirect=false / forward name=restoreDefaultDNSSettings path=myaccount.dmdetails.outsidedns.restore.confirm redirect=false / forward name=addMoreDNS path=myaccount.dmdetails.dns.add redirect=false / forward name=manageRegdNameServers path=myaccount.dmdetails.dns.registered redirect=false / /action -Original Message- From: Gopalakrishnan, Jayesh [mailto:[EMAIL PROTECTED] Sent: Friday, February 27, 2004 5:18 PM To: Struts Users Mailing List Subject: RE: Action class calling other Action class You could do this by just forwarding to an action mapping entry for ActionClassB. In you action mapping for ActionClassA, have multiple forwards. And the logic in ActionClassA would forward to whichever, with 1 of them being ActionClassB. action path=/actionA type=ActionClassA name=form scope=request forward name=SUCCESS path=/do/actionB / forward name=FAILURE path=/test.jsp / forward name=CANCEL path=whatever / /action action path=actionB type=ActionClassB name=form scope=request set-property property=secure value=true / forward name=SUCCESS path=/any.jsp / forward name=FAILURE path=/anyOther.jsp / /action hth -jayash -Original Message- From: Ramadoss Chinnakuzhandai [mailto:[EMAIL PROTECTED] Sent: Friday, February 27, 2004 12:29 PM To: [EMAIL PROTECTED] Subject: Action class calling other Action class Hi, I hv ActionClassA ==Display JSP of ActionClassA having a link to Edit JSP of ActionClassB==ActionClassB=Edit JSP of ActionClassB==ActionClassB(Update records)=dispatch control over to ActionClassA. My question is that Can I forward my control to ActionClassA from ActionClassB? or is there any better approach/alternative?? Tnx in advance, -Ramadoss - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Action class calling other Action class
When I try to call actionA from actionB by forwarding to the path which mapped to actionA it is not actually invoking actionA. I dont know what is wrong with my codefollowing is piece of my code action name=actionA type=ActionA scope=session path=/myaccount/domains forward name=success path=myaccount.dmdetails redirect=false / /action action name=actionB type=ActionB scope=session path=/myaccount/domains forward name=updateSuccess path=/myaccount/domains redirect=true / forward name=manageRegdNameServers path=myaccount.dmdetails.dns.registered/ /action Note: I hv tried set-property property=secure value=true/ in the actionA but was getting exception from the server saying the bean does not contain the property secure. Can you help me where Im doing wrong? Tnx, -Ramadoss -Original Message- From: Gopalakrishnan, Jayesh [mailto:[EMAIL PROTECTED] Sent: Friday, February 27, 2004 5:18 PM To: Struts Users Mailing List Subject: RE: Action class calling other Action class You could do this by just forwarding to an action mapping entry for ActionClassB. In you action mapping for ActionClassA, have multiple forwards. And the logic in ActionClassA would forward to whichever, with 1 of them being ActionClassB. action path=/actionA type=ActionClassA name=form scope=request forward name=SUCCESS path=/do/actionB / forward name=FAILURE path=/test.jsp / forward name=CANCEL path=whatever / /action action path=actionB type=ActionClassB name=form scope=request set-property property=secure value=true / forward name=SUCCESS path=/any.jsp / forward name=FAILURE path=/anyOther.jsp / /action hth -jayash -Original Message- From: Ramadoss Chinnakuzhandai [mailto:[EMAIL PROTECTED] Sent: Friday, February 27, 2004 12:29 PM To: [EMAIL PROTECTED] Subject: Action class calling other Action class Hi, I hv ActionClassA ==Display JSP of ActionClassA having a link to Edit JSP of ActionClassB==ActionClassB=Edit JSP of ActionClassB==ActionClassB(Update records)=dispatch control over to ActionClassA. My question is that Can I forward my control to ActionClassA from ActionClassB? or is there any better approach/alternative?? Tnx in advance, -Ramadoss - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Action not forwarding to another Action
If Im not wrongif .exe is what you hv configured in web.xml then I see there is no reason why it is not picking up / possible reason could be... make sure that you are forwarding to Content which is mapped to /app/ListOfOrder.exe in your OrderMaintainAction 1) Can someone also tell me if I have a Request attribute defined in OrderMaintainAction, if the above redirection works, will I be able to see the same Request attribute in OrderSearchAction? the same scenarion where I'm not able to get the value of request attribute which I set in my previous Action class then I set as session attribute and Im able to get that value in the other Action class where Im redirecting to. 2) A general question: if formA is linked to formB through a 'link'. If I click on the 'link' in formA, can I get to the passed parameter of FormA by doing Request.geParameter(id) or I can only retrieve 'id' throught a 'submit' rather than through a 'link'? I dont really understand your point but I assumed that you are passing a parameter from one form to another in such case if you are calling other page/calling action class by passing request parameter you could get those parameters on the other page/action class. hth -Ramadoss -Original Message- From: Au-Yeung, Stella H [mailto:[EMAIL PROTECTED] Sent: Monday, March 01, 2004 5:51 PM To: '[EMAIL PROTECTED]' Subject: Action not forwarding to another Action Hi: I have a similar problem that I can't invoke OrderSearchAction.exe from OrderMaintainAction. I set a debug breakpoint at the beginning of OrderSearchAction and never get there. actionpath=/app/DeleteOrder type=com.cat.action.OrderMaintainAction name=OrderFormBean scope=request validate=false forward name=Content path=/app/ListOfOrder.exe redirect=true / forward name=ContentError path=/app/DeleteError.jsp/ /action actionpath=/app/ListOfOrder type=com.cat.action.OrderSearchAction name=OrderSearchFormBean scope=request validate=false forward name=Content path=/app/ListOfOrder.jsp/ forward name=ContentError path=/app/OrderError.jsp/ /action I have two other questions: 1) Can someone also tell me if I have a Request attribute defined in OrderMaintainAction, if the above redirection works, will I be able to see the same Request attribute in OrderSearchAction? 2) A general question: if formA is linked to formB through a 'link'. If I click on the 'link' in formA, can I get to the passed parameter of FormA by doing Request.geParameter(id) or I can only retrieve 'id' throught a 'submit' rather than through a 'link'? Thanks for any help! - 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]
RE: Action not forwarding to another Action
tnx a lot for your help. -Ramadoss -Original Message- From: Gopalakrishnan, Jayesh [mailto:[EMAIL PROTECTED] Sent: Monday, March 01, 2004 6:45 PM To: Struts Users Mailing List Subject: RE: Action not forwarding to another Action I think when you say 'redirect=true', then you lose your request object. This is like a client side/browser redirect. Remove this attribute from your forward element and give it a try. -Original Message- From: Ramadoss Chinnakuzhandai [mailto:[EMAIL PROTECTED] Sent: Monday, March 01, 2004 3:24 PM To: Struts Users Mailing List Subject: RE: Action not forwarding to another Action If Im not wrongif .exe is what you hv configured in web.xml then I see there is no reason why it is not picking up / possible reason could be... make sure that you are forwarding to Content which is mapped to /app/ListOfOrder.exe in your OrderMaintainAction 1) Can someone also tell me if I have a Request attribute defined in OrderMaintainAction, if the above redirection works, will I be able to see the same Request attribute in OrderSearchAction? the same scenarion where I'm not able to get the value of request attribute which I set in my previous Action class then I set as session attribute and Im able to get that value in the other Action class where Im redirecting to. 2) A general question: if formA is linked to formB through a 'link'. If I click on the 'link' in formA, can I get to the passed parameter of FormA by doing Request.geParameter(id) or I can only retrieve 'id' throught a 'submit' rather than through a 'link'? I dont really understand your point but I assumed that you are passing a parameter from one form to another in such case if you are calling other page/calling action class by passing request parameter you could get those parameters on the other page/action class. hth -Ramadoss -Original Message- From: Au-Yeung, Stella H [mailto:[EMAIL PROTECTED] Sent: Monday, March 01, 2004 5:51 PM To: '[EMAIL PROTECTED]' Subject: Action not forwarding to another Action Hi: I have a similar problem that I can't invoke OrderSearchAction.exe from OrderMaintainAction. I set a debug breakpoint at the beginning of OrderSearchAction and never get there. actionpath=/app/DeleteOrder type=com.cat.action.OrderMaintainAction name=OrderFormBean scope=request validate=false forward name=Content path=/app/ListOfOrder.exe redirect=true / forward name=ContentError path=/app/DeleteError.jsp/ /action actionpath=/app/ListOfOrder type=com.cat.action.OrderSearchAction name=OrderSearchFormBean scope=request validate=false forward name=Content path=/app/ListOfOrder.jsp/ forward name=ContentError path=/app/OrderError.jsp/ /action I have two other questions: 1) Can someone also tell me if I have a Request attribute defined in OrderMaintainAction, if the above redirection works, will I be able to see the same Request attribute in OrderSearchAction? 2) A general question: if formA is linked to formB through a 'link'. If I click on the 'link' in formA, can I get to the passed parameter of FormA by doing Request.geParameter(id) or I can only retrieve 'id' throught a 'submit' rather than through a 'link'? Thanks for any help! - 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] - 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]
Action class calling other Action class
Hi, I hv ActionClassA ==Display JSP of ActionClassA having a link to Edit JSP of ActionClassB==ActionClassB=Edit JSP of ActionClassB==ActionClassB(Update records)=dispatch control over to ActionClassA. My question is that Can I forward my control to ActionClassA from ActionClassB? or is there any better approach/alternative?? Tnx in advance, -Ramadoss - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[OT]Ant Script
Hi, Using Ant Script is it possible to detect the latest modified file by comparing the same file across two different locations and make them sync or override the old file with the latest modified file and make sure that same version of file exists on these two different location?? dirX/abc.jsp(timestamp as today) ant script which will update abc.jsp under dirY with abc.jsp under dirX dirY/abc.jsp(timestamp as yesterday) is there any ANT guru to solve my my brain's fuzzing -Ramadoss - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: A question on Struts taglib.
add index attribute in your logic iterate and append that index to your host string. e.g logic:iterate id=xyzID name=xyzForm property=xyz indexId=index yourhoststring+%=indexId % /logic:iterate -R -Original Message- From: Au-Yeung, Stella H [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 24, 2004 3:18 PM To: [EMAIL PROTECTED] Subject: A question on Struts taglib. A question on Struts taglib. Can someone tell me how to reference the index of each element so I can pass it as a parameter with the a href path string? For example I have the following code, I want to print out 'partNumber' and 'partDescription' and a a href' with index of each element'. logic:iterate id=parts collection=%=ShopWorkOrderFormBean.getShopWorkOrder().getPartList()% type=com.cat.sdl.fdd.dataBean.shopWorkOrder.PartBean/td tr td class=formCellbean:write name=parts property=partNumber/nbsp;/td td class=formCellbean:write name=parts property='partDescription' /nbsp;/td td class=formCell a href=app/fdd/shopWorkOrder/UpdatePart.exec?index=How to reference the index here img src=images/iconEdit.gif/anbsp; /td/tr /logic:iterate Thanks in advance! Stella - 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]
ActionClass
Hi, Is there any features in Struts using which I can make the ActionClass smart enough to understand where the request is coming from and execute appropriate block ? If so could you pls drop some light on it? Thank you in advance, -Ramadoss - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: ActionClass
for example XYZAction class handle multiple request coming from several different JSPs .to identify the request I can pass some unique action parameter and execute appropriate block. My question is that is there any feature available is Struts so that I can identify the request where it is coming from rather than define different path against each request and associate that path with the XYZAction class. Path would be the same(no action parameter passed)for all request but XYZAction class must be smart enough to identify the source and redirect the result to the page where it is coming from. -Ramadoss -Original Message- From: Max Cooper [mailto:[EMAIL PROTECTED] Sent: Monday, February 23, 2004 4:08 PM To: Struts Users Mailing List Subject: Re: ActionClass Define what you mean by where the request is coming from and what kind of processing you would like to optionally perform. It is not clear what you are trying to accomplish -- give some more details so we can help. -Max - Original Message - From: Ramadoss Chinnakuzhandai [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, February 23, 2004 11:26 AM Subject: ActionClass Hi, Is there any features in Struts using which I can make the ActionClass smart enough to understand where the request is coming from and execute appropriate block ? If so could you pls drop some light on it? Thank you in advance, -Ramadoss - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: ActionClass
struts-config.xml String fw = checkForward(request); if(this.getUseFW()) { if( ( fw != null ) ( !fw.equals() ) ) { return new ActionForward(state, fw, true); } } String stateURL = (String) request.getParameter(state); if(stateURL != null) { //page defined aForward = new ActionForward(state, stateURL + ?fw= + fw, redirect); } else if (mapping.findForward(state) == null ) { //default aForward = new ActionForward(state, forward + (String) stateHash.get(state) + ?fw= + fw, redirect); } else { aForward = mapping.findForward(state); } return aForward; } } -Original Message- From: Ramadoss Chinnakuzhandai [mailto:[EMAIL PROTECTED] Sent: Monday, February 23, 2004 3:38 PM To: Struts Users Mailing List Subject: RE: ActionClass for example XYZAction class handle multiple request coming from several different JSPs .to identify the request I can pass some unique action parameter and execute appropriate block. My question is that is there any feature available is Struts so that I can identify the request where it is coming from rather than define different path against each request and associate that path with the XYZAction class. Path would be the same(no action parameter passed)for all request but XYZAction class must be smart enough to identify the source and redirect the result to the page where it is coming from. -Ramadoss -Original Message- From: Max Cooper [mailto:[EMAIL PROTECTED] Sent: Monday, February 23, 2004 4:08 PM To: Struts Users Mailing List Subject: Re: ActionClass Define what you mean by where the request is coming from and what kind of processing you would like to optionally perform. It is not clear what you are trying to accomplish -- give some more details so we can help. -Max - Original Message - From: Ramadoss Chinnakuzhandai [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, February 23, 2004 11:26 AM Subject: ActionClass Hi, Is there any features in Struts using which I can make the ActionClass smart enough to understand where the request is coming from and execute appropriate block ? If so could you pls drop some light on it? Thank you in advance, -Ramadoss - 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] - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: ActionClass
are you saying about getRequestURL()? can you shed some light on it?? -R -Original Message- From: McClung, Brian [mailto:[EMAIL PROTECTED] Sent: Monday, February 23, 2004 5:08 PM To: 'Struts Users Mailing List' Subject: RE: ActionClass You can always try to pull the referer from the request. But that can be unreliable. Brian -Original Message- From: Ramadoss Chinnakuzhandai [mailto:[EMAIL PROTECTED] Sent: Monday, February 23, 2004 4:07 PM To: Struts Users Mailing List Subject: RE: ActionClass tnx for your informationjust curious that is it possible to identify the request url and executure block wrt that url and return the result back to that url **without using DynaAction and DispatchAction but I still wanted use simple Action class. -R -Original Message- From: McClung, Brian [mailto:[EMAIL PROTECTED] Sent: Monday, February 23, 2004 4:50 PM To: 'Struts Users Mailing List' Subject: RE: ActionClass I have created a Dynamic Action class (DynaAction) that allows a page to define where resulting action states should go. You can define defaults within the actual action or struts-config.xml and then override at the page level. The one drawback that I have seen is that since you are defining your action states at the page level using hidden tags, it gives more visibility into the application that what you otherwise might want to have. To use the code below, extend from DynaAction and inside your class call addState(String stateName, String URL) for each state that your action could result in. When you are ready to return the ActionMapping, call loadState(String stateName, ActionMapping, HttpServletRequest). If you need to perform a redirect you can set redirect to true. The code for DynaAction is below. /*** The DynaAction package com.belo.struts.action; import com.belo.campaign.mail.BeloMail; import org.apache.struts.action.Action; import org.apache.struts.action.ActionForward; import org.apache.struts.action.ActionMapping; import org.apache.struts.util.MessageResources; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpSession; import java.util.Hashtable; /** * * Extends Action to support dynamic forwarding, basic email mechanism, * and hashtable creation. * * @author Brian McClung * @version $Revision: 1.8 $Date: 2004/01/21 23:23:38 $ **/ public class DynaAction extends Action { /** * the hashtable for class level mappings **/ protected Hashtable stateHash; /** * Any path that should be prepended to the URL in the stateHash **/ protected String forward = ; /** * Tells the new Forward action to handle URL's as a page redirect instead * of a return; **/ protected boolean redirect = false; /** * Allows a fw= queryString parameter to either pass through to the next page * or be used to redirect the current page. **/ protected boolean useFW = false; /** * Default constructor **/ public DynaAction() { stateHash = new Hashtable(); } /** * * Refactor of builcStateHash so action classes won't have to implement them. * **/ public void addState(String stateID, String URL) { stateHash.put(stateID, URL); } /** * Sets the redirect flag for forwarding. **/ public void setRedirect(boolean redirect) { this.redirect = redirect; } /** * Sets the path to be prepended to a URL before forwarding to a page **/ public void setForward(String forward) { if(forward == null) { return; } this.forward = forward; } /** * Returns the boolean value of useFW. * * @return current boolean value of useFW **/ public boolean getUseFW() { return useFW; } /** * Sets the boolean value of useFW * * @param useFW - boolean value to set useFW to. **/ public void setUseFW(boolean useFW) { this.useFW = useFW; } /** * * Pulls the appropriate URL to forward to based on the state received. * * @param state - the state this object is currently in. Used to look up the appropriate * path for this object * @param mappings - the ActionMapping associated with this object. * @param
RE: Must have action=..... in html:form tag?
I'm not sure this but you can try... Create Main screen (define a attribute in your form which holds the value of which screen and set update/create before dispatch) use 'theForm' to input data (here check that attribute value whether it is create/update and assign the same to the action path either your JavaScript sumbit or whatever ) return back to Create main -R -Original Message- From: Au-Yeung, Stella H [mailto:[EMAIL PROTECTED] Sent: Monday, February 23, 2004 6:08 PM To: 'Struts Users Mailing List' Subject: RE: Must have action=. in html:form tag? Shyam: I am not sure what you mean, can you elaborate that? The current form only has one 'submit' button. After the user fills in data on the current form, I want the data to be submitted to the DB and then automatically be taken back to the 'previous' screen. This previous screen can be a 'Create main screen' or an 'Update main screen'. I use a hidden field 'whichAction' to remember which is the 'previous' screen. So when the user submits the input data on the cuurrent form, that's when the javascript submitForm() function decides which screen (/app/fdd/shopWorkOrder/fromCreateShopWorkOrder or /app/fdd/shopWorkOrder/fromUpdateShopWorkOrder) to return to. Example: Create Main screen use 'theForm' to input data return back to Create main Update Main screen - use 'theForm' to input data return back to Update main (this screen 'theForm' is where I decide which precious screen to return to based on the hidden field whichAction. That's why form action has to be dynamic My user only wants ONE submit button on theForm and the application should be smart enough to return to the correct 'previous' page. -Original Message- From: Shyam A [mailto:[EMAIL PROTECTED] Sent: Monday, February 23, 2004 5:31 PM To: Struts Users Mailing List Subject: RE: Must have action=. in html:form tag? Just a suggestion. Not sure if I'm right... Instead of using onSubmit() event of your html:form, why don't you call the Javascript when the user clicks/submits the associcated HTML component - Create/Update button, and set the action accordingly. HTH, Shyam --- Au-Yeung, Stella H [EMAIL PROTECTED] wrote: But I don't always want /app/fdd/shopWorkOrder/fromCreateShopWorkOrder to be my action all the time. I want the action for the form to be dynamic and depends on the form field whichAction. That's why I created the javascript function submitForm(frm) to pick the action dynamically. In other words, I have action mapping in my struts-config.xml file for both path /app/fdd/shopWorkOrder/fromCreateShopWorkOrder and /app/fdd/shopWorkOrder/fromUpdateShopWorkOrder. But I want whichever one to be chosen to be dynamically. So how I do that all within the html:form tag? -Original Message- From: Hubert Rabago [mailto:[EMAIL PROTECTED] Sent: Monday, February 23, 2004 4:58 PM To: Struts Users Mailing List Subject: RE: Must have action=. in html:form tag? I never said anything close to what you're asking me. All I said is choose one of your two possible outcomes (doesn't matter which one), take the path that you gave it in the struts-config.xml, then use that in your html:form. Let's say you have the ff entry in your struts-config: action path=/fromCreateShopWorkOrder ... name=theForm forward .../ /action then in your html:form, specify that action: html:form action=/fromCreateShopWorkOrder method=post onSubmit=return submitForm(document.theForm) ... /html:form You do have action's associated with fromCreateShopWorkOrder and fromUpdateShopWorkOrder, right? - Hubert --- Au-Yeung, Stella H [EMAIL PROTECTED] wrote: Hubert: Can you elaborate that In othe words, how do I do everything that the function submitForm() does to dynamically pick an action all within the html:form tag? -Original Message- From: Hubert Rabago [mailto:[EMAIL PROTECTED] Sent: Monday, February 23, 2004 4:36 PM To: Struts Users Mailing List Subject: Re: Must have action=. in html:form tag? Specify the Action associated with fromCreateShopWorkOrder or fromUpdateShopWorkOrder in the html:form attribute. --- Au-Yeung, Stella H [EMAIL PROTECTED] wrote: Hi: My html:form tag doesn't allow me to skip an 'action' attribue. If you look at my code below, I move the assignment of the 'form action' to the javascript function so which action to take is dynamically depends on the form element 'whichAction'. But the compiler insist I have to have the 'action' property right inside the html:form tag. But that doesn't allow me to choose the action dynamically. Does anyone have any
Sturts JSP and Javascript
Can anybody provide me sample code of Struts JSP contains Javascript..? or any link to refer how to use JavaScript function inside Struts JSP..?? Thanks in advance, -Ramadoss - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[OT]Eclipse CVS
Hi, Can anybody tell me the procedure to setup CVS in eclipse...or any document to refer? Tnx in advance, -Ramadoss - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Debugging JSP
Hi, I'm debugging Java code using JBoss IDE installed with Eclipse 2.1 and I found I could not debug JSP using the same IDEthen I installed MyEclipse to debug JSP and tested working fine with JSP when I come to debug Java code the break point which I put seems to be does not working then I found MyEclipse has got its own JBoss IDE and it clashes with JBoss IDE which I installed already. Can anybody suggest me how can get rid of this problem or suggest is there anyother way I can debug JSP without getting into this problem? or any better alternatives debug JSP without affecting debugging of java code?? Thankx in advance, -Ramadoss - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] Re: Debugging JSP
I do understand your pointbut the same time wondering is there anyway we can debug JSP as I mentioned. for eg I just wanted to change the value dynamically while displaying it in JSP without testing it action before dispatching to JSP for some reasons. -Ramadoss -Original Message- From: news [mailto:[EMAIL PROTECTED] Behalf Of Vic Cekvenich Sent: Monday, February 09, 2004 12:07 PM To: [EMAIL PROTECTED] Subject: Re: [OT] Re: Debugging JSP James Mitchell wrote: - if you rely on JSP debugging, chances are good that you have WAY too much logic in your pages. Consider following an MVC approach. +1 .V - 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]
RE: Orkut
add me too :-) -R -Original Message- From: Babu, Bharathi [mailto:[EMAIL PROTECTED] Sent: Monday, February 09, 2004 6:21 PM To: 'Struts Users Mailing List' Subject: RE: Orkut Please add me. -Original Message- From: Srinivas Kusunam [mailto:[EMAIL PROTECTED] Sent: Monday, February 09, 2004 3:47 PM To: [EMAIL PROTECTED] Subject: RE: Orkut Can some one add me to the list please?? Thanks, Sree [EMAIL PROTECTED] 02/09/04 02:11PM Hi, Can someone please add me to Orkut Thanks in advance Cheers, Matthias -Original Message- From: Wiebe de Jong [mailto:[EMAIL PROTECTED] Sent: Monday, February 09, 2004 6:33 PM To: 'Struts Users Mailing List' Subject: RE: Orkut Hello, Please add me to Orkut. Thanks -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Vic Cekvenich Sent: Sunday, February 08, 2004 8:16 PM To: [EMAIL PROTECTED] Subject: Orkut If you want to join Struts in Orkut Social Network send me an e-mail saying so. .V (if you do not know what it is don't worry) - 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] - 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] - 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]
[OT]CVS client
Hi, can anybody suggest me any better CVS client other than WinCVS and JCVS? Tnx in advance, -Ramadoss - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT]CVS client
I use Eclipse as well...but the problem Im facing is I could not able to find out the locally changed file when I merge with CVS server...Im looking for something like separate GUI CVS client where I can view all the files in detail..something like WinCVS(somehow I could able to install this). Tnx for your help -Ramadoss -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 04, 2004 3:00 PM To: Struts Users Mailing List Subject: Re: [OT]CVS client The Eclipse CVS integration is pretty nice, thats what I have been doing but I'm no power user. John- On Wed, 4 Feb 2004 15:33:11 -0400 Franck Lefebure [EMAIL PROTECTED] wrote: Le Tuesday, February 03, 2004 4:17 PM, Ramadoss Chinnakuzhandai [EMAIL PROTECTED] m'a, d'une plume avisee, ecrit: Hi, can anybody suggest me any better CVS client other than WinCVS and JCVS? I use Sun One Studio built in cvs client for little cvs actions (add, commit) and cvs unix command line on the server for mass cvs actions (checkout, imports) works fine bye -- Franck Lefebure - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Re-deploying in JBoss3.2.3
Marc, Tnx a lot for your details information...I would try the way you suggested and will come back to you if I encounter any problem. Once again appreciate you for helping others. -Ramadoss -Original Message- From: Marc L. Veary [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 27, 2004 2:45 PM To: 'Struts Users Mailing List' Subject: RE: Re-deploying in JBoss3.2.3 I generally explode the ear and war files creating a directory structure in the 'deploy' directory. I can then added and amend JSP's at will within the directory structure. If I have a new class or changed any of the xml's (struts-config, tiles-config) then I simply touch the application.xml and Jboss goes ahead and runs through a re-deployment. Hope this helps. -- Marc -Original Message- From: Ramadoss Chinnakuzhandai [mailto:[EMAIL PROTECTED] Sent: 26 January 2004 19:32 To: [EMAIL PROTECTED] Subject: Re-deploying in JBoss3.2.3 Importance: High Hi, Can anybody suggest me Is there anyway I can avoid re-deploy the ear file contains war again and again whenever we make changes to JSP's in JBoss 3.2.3 bundle with Tomcat 4.1.29..? earlier we were running separate container(JBoss and Tomcat as different container) and were able to re-deploy the war file without affecting the ear. Thank you in advance. -Ramadoss - 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]
Re-deploying in JBoss3.2.3
Hi, Can anybody suggest me Is there anyway I can avoid re-deploy the ear file contains war again and again whenever we make changes to JSP's in JBoss 3.2.3 bundle with Tomcat 4.1.29..? earlier we were running separate container(JBoss and Tomcat as different container) and were able to re-deploy the war file without affecting the ear. Thank you in advance. -Ramadoss - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Switch Action
Hi, Can anybody give an example for switch action if possible in detail. Thanks in advance. -Ram - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Debugging in JBoss 3.2.3
Can u drop more light on itit would be helpful for guy like me whoz new to JBoss Tnx in advance. -R -Original Message- From: James Mitchell [mailto:[EMAIL PROTECTED] Sent: Thursday, January 22, 2004 3:27 PM To: Struts Users Mailing List Subject: Re: Debugging in JBoss 3.2.3 Yes, 1. Setup JBoss for remote debugging. (specifically, you need to add a line to the .bat/.sh startup script) 2. Setup your .war expanded (for example, the directory in the deploy directory is named 'myapp.war') 3. Startup JBoss/Tomcat and use remote debugging in Eclipse sorry for the speedy, not-quite-complete helpbut that's basically what I used to do before I found MyEclipse. Now, if only MyEclipse worked on 3.0 M6...hm -- James Mitchell Software Engineer / Struts Evangelist http://www.struts-atlanta.org 678.910.8017 (cell) AIM:jmitchtx MSN: [EMAIL PROTECTED] - Original Message - From: Ramadoss Chinnakuzhandai [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, January 22, 2004 3:07 PM Subject: Debugging in JBoss 3.2.3 Hi, I'm using JBoss 3.2.3 (with Tomcat as default container) and was using version 3.2.1 earliar with Tomcat as separate container and was able to debug my application using eclipse, now we are moved onto JBoss 3.2.3 with Tomcat as default container. Is there anyway I can debug my application using eclipse without having to re-deploy my application again and again. I know I can use myeclipse plugin to debug but wondering is there any other better alternate for debugging. Thanks in advance, -Ramadoss - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Debugging in JBoss 3.2.3
that would great. Tnx for your help. -Ramadoss -Original Message- From: James Mitchell [mailto:[EMAIL PROTECTED] Sent: Friday, January 23, 2004 9:40 AM To: Struts Users Mailing List Subject: Re: Debugging in JBoss 3.2.3 I'll see if I can put together something this weekend like this: http://jakarta.apache.org/struts/faqs/eclipse.html -- James Mitchell Software Engineer / Struts Evangelist http://www.struts-atlanta.org 678.910.8017 (cell) AIM: jmitchtx MSN: [EMAIL PROTECTED] - Original Message - From: Ramadoss Chinnakuzhandai [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, January 23, 2004 9:24 AM Subject: RE: Debugging in JBoss 3.2.3 Can u drop more light on itit would be helpful for guy like me whoz new to JBoss Tnx in advance. -R -Original Message- From: James Mitchell [mailto:[EMAIL PROTECTED] Sent: Thursday, January 22, 2004 3:27 PM To: Struts Users Mailing List Subject: Re: Debugging in JBoss 3.2.3 Yes, 1. Setup JBoss for remote debugging. (specifically, you need to add a line to the .bat/.sh startup script) 2. Setup your .war expanded (for example, the directory in the deploy directory is named 'myapp.war') 3. Startup JBoss/Tomcat and use remote debugging in Eclipse sorry for the speedy, not-quite-complete helpbut that's basically what I used to do before I found MyEclipse. Now, if only MyEclipse worked on 3.0 M6...hm -- James Mitchell Software Engineer / Struts Evangelist http://www.struts-atlanta.org 678.910.8017 (cell) AIM:jmitchtx MSN: [EMAIL PROTECTED] - Original Message - From: Ramadoss Chinnakuzhandai [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, January 22, 2004 3:07 PM Subject: Debugging in JBoss 3.2.3 Hi, I'm using JBoss 3.2.3 (with Tomcat as default container) and was using version 3.2.1 earliar with Tomcat as separate container and was able to debug my application using eclipse, now we are moved onto JBoss 3.2.3 with Tomcat as default container. Is there anyway I can debug my application using eclipse without having to re-deploy my application again and again. I know I can use myeclipse plugin to debug but wondering is there any other better alternate for debugging. Thanks in advance, -Ramadoss - 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] - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Debugging in JBoss 3.2.3
Do we hv to redeploy the ear file whenever we make changes to the jsps(war)? since Tomcat is running under JBoss 3.2.3. -R -Original Message- From: Pascal THIVENT [mailto:[EMAIL PROTECTED] Sent: Thursday, January 22, 2004 3:49 PM To: Struts Users Mailing List Subject: Re: Debugging in JBoss 3.2.3 JBoss-IDE brings you very good integration with Eclipse. From the homepage : JBoss-IDE provides the following features : * The debugging and monitoring of JBoss servers and the control of their life cycle (start/stop). * A very comfortable and sophisticated support for XDoclet (completion and generation). * An easy way to configure the packaging layout of archives (packed or exploded) * A simple way to deploy the packaged and/or exploded archive to a JBoss server http://www.jboss.org/index.html?module=htmlop=userdisplayid=developers/projects/jboss/jbosside Pascal Ramadoss Chinnakuzhandai wrote: Hi, I'm using JBoss 3.2.3 (with Tomcat as default container) and was using version 3.2.1 earliar with Tomcat as separate container and was able to debug my application using eclipse, now we are moved onto JBoss 3.2.3 with Tomcat as default container. Is there anyway I can debug my application using eclipse without having to re-deploy my application again and again. I know I can use myeclipse plugin to debug but wondering is there any other better alternate for debugging. Thanks in advance, -Ramadoss - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Debugging in JBoss 3.2.3
Hi, I'm using JBoss 3.2.3 (with Tomcat as default container) and was using version 3.2.1 earliar with Tomcat as separate container and was able to debug my application using eclipse, now we are moved onto JBoss 3.2.3 with Tomcat as default container. Is there anyway I can debug my application using eclipse without having to re-deploy my application again and again. I know I can use myeclipse plugin to debug but wondering is there any other better alternate for debugging. Thanks in advance, -Ramadoss - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Multiple config files under single application
Hi, Is there anyway I can define multiple config files under a single application ? any suggestions/inputs would be hightly appreciated. Thanks in advance. -Ram - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[OT] Oldest Language
Hi, If anyone of you might be wizard of liguistics facts...may I know the worlds oldest language? my apology for posting other topic..thought some one is out there to answer. -R - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] Oldest Language
yeah Tim I googled but was getting pages like the one you mentioned :-) but not what I wantedand so thought any of you might be better than google ;-) -R -Original Message- From: Tim Kettering [mailto:[EMAIL PROTECTED] Sent: Thursday, January 08, 2004 2:13 PM To: 'Struts Users Mailing List' Subject: RE: [OT] Oldest Language You'd probably be best off asking Google (the one true Oracle). This is what turned up on world's oldest language, but probably not the answer you were looking for. http://www.linguistlist.org/~ask-ling/archive-most-recent/msg01880.html -Original Message- From: Ramadoss Chinnakuzhandai [mailto:[EMAIL PROTECTED] Sent: Thursday, January 08, 2004 1:50 PM To: [EMAIL PROTECTED] Subject: [OT] Oldest Language Hi, If anyone of you might be wizard of liguistics facts...may I know the worlds oldest language? my apology for posting other topic..thought some one is out there to answer. -R - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] Oldest Language
yeah I agree too.if you say so then the oldest civilzation of Egyptian,Persian,Indues Valley,Greek are again debatable?. or I can ask more tangible like you mentioned language which hot got oldest literature or history or whatever -Original Message- From: Tim Kettering [mailto:[EMAIL PROTECTED] Sent: Thursday, January 08, 2004 2:30 PM To: 'Struts Users Mailing List' Subject: RE: [OT] Oldest Language I have to agree with those people, it is hard to nail down a oldest language because the question itself is too general. What do you define as language to start with. At what point do you stop calling it simple communication, and call it a language? And the second difficulty is that many of the oldest (including the oldest) languages were very likely to be spoken only, so as soon as their speakers/culture vanished, the language vanished too. Or they were simply assimliated into another language, a newer language. So if you narrow the scope of your question to something more specific, more tangible, like the oldest written language, or earliest known language, you may have better answers. -tim -Original Message- From: Ramadoss Chinnakuzhandai [mailto:[EMAIL PROTECTED] Sent: Thursday, January 08, 2004 2:20 PM To: Struts Users Mailing List Subject: RE: [OT] Oldest Language yeah Tim I googled but was getting pages like the one you mentioned :-) but not what I wantedand so thought any of you might be better than google ;-) -R -Original Message- From: Tim Kettering [mailto:[EMAIL PROTECTED] Sent: Thursday, January 08, 2004 2:13 PM To: 'Struts Users Mailing List' Subject: RE: [OT] Oldest Language You'd probably be best off asking Google (the one true Oracle). This is what turned up on world's oldest language, but probably not the answer you were looking for. http://www.linguistlist.org/~ask-ling/archive-most-recent/msg01880.html -Original Message- From: Ramadoss Chinnakuzhandai [mailto:[EMAIL PROTECTED] Sent: Thursday, January 08, 2004 1:50 PM To: [EMAIL PROTECTED] Subject: [OT] Oldest Language Hi, If anyone of you might be wizard of liguistics facts...may I know the worlds oldest language? my apology for posting other topic..thought some one is out there to answer. -R - 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] - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] Oldest Language
my apology again for posting the wrong question.may be it would hv been better if I would hv posted oldest programming lang ;o) -R -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, January 08, 2004 2:45 PM To: Struts Users Mailing List Subject: Re: [OT] Oldest Language Wouldnt it be assembly for a computer language? - Original Message - From: Ramadoss Chinnakuzhandai [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Thursday, January 08, 2004 2:36 PM Subject: RE: [OT] Oldest Language yeah I agree too.if you say so then the oldest civilzation of Egyptian,Persian,Indues Valley,Greek are again debatable?. or I can ask more tangible like you mentioned language which hot got oldest literature or history or whatever -Original Message- From: Tim Kettering [mailto:[EMAIL PROTECTED] Sent: Thursday, January 08, 2004 2:30 PM To: 'Struts Users Mailing List' Subject: RE: [OT] Oldest Language I have to agree with those people, it is hard to nail down a oldest language because the question itself is too general. What do you define as language to start with. At what point do you stop calling it simple communication, and call it a language? And the second difficulty is that many of the oldest (including the oldest) languages were very likely to be spoken only, so as soon as their speakers/culture vanished, the language vanished too. Or they were simply assimliated into another language, a newer language. So if you narrow the scope of your question to something more specific, more tangible, like the oldest written language, or earliest known language, you may have better answers. -tim -Original Message- From: Ramadoss Chinnakuzhandai [mailto:[EMAIL PROTECTED] Sent: Thursday, January 08, 2004 2:20 PM To: Struts Users Mailing List Subject: RE: [OT] Oldest Language yeah Tim I googled but was getting pages like the one you mentioned :-) but not what I wantedand so thought any of you might be better than google ;-) -R -Original Message- From: Tim Kettering [mailto:[EMAIL PROTECTED] Sent: Thursday, January 08, 2004 2:13 PM To: 'Struts Users Mailing List' Subject: RE: [OT] Oldest Language You'd probably be best off asking Google (the one true Oracle). This is what turned up on world's oldest language, but probably not the answer you were looking for. http://www.linguistlist.org/~ask-ling/archive-most-recent/msg01880.html -Original Message- From: Ramadoss Chinnakuzhandai [mailto:[EMAIL PROTECTED] Sent: Thursday, January 08, 2004 1:50 PM To: [EMAIL PROTECTED] Subject: [OT] Oldest Language Hi, If anyone of you might be wizard of liguistics facts...may I know the worlds oldest language? my apology for posting other topic..thought some one is out there to answer. -R - 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] - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.559 / Virus Database: 351 - Release Date: 1/8/2004 - 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]
RE: [OT] Oldest Language
btw I stop the old(est)thread whoever interested in answering the question oldest programming language go ahead and enjoy. -Original Message- From: Ramadoss Chinnakuzhandai Sent: Thursday, January 08, 2004 2:51 PM To: Struts Users Mailing List Subject: RE: [OT] Oldest Language my apology again for posting the wrong question.may be it would hv been better if I would hv posted oldest programming lang ;o) -R -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, January 08, 2004 2:45 PM To: Struts Users Mailing List Subject: Re: [OT] Oldest Language Wouldnt it be assembly for a computer language? - Original Message - From: Ramadoss Chinnakuzhandai [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Thursday, January 08, 2004 2:36 PM Subject: RE: [OT] Oldest Language yeah I agree too.if you say so then the oldest civilzation of Egyptian,Persian,Indues Valley,Greek are again debatable?. or I can ask more tangible like you mentioned language which hot got oldest literature or history or whatever -Original Message- From: Tim Kettering [mailto:[EMAIL PROTECTED] Sent: Thursday, January 08, 2004 2:30 PM To: 'Struts Users Mailing List' Subject: RE: [OT] Oldest Language I have to agree with those people, it is hard to nail down a oldest language because the question itself is too general. What do you define as language to start with. At what point do you stop calling it simple communication, and call it a language? And the second difficulty is that many of the oldest (including the oldest) languages were very likely to be spoken only, so as soon as their speakers/culture vanished, the language vanished too. Or they were simply assimliated into another language, a newer language. So if you narrow the scope of your question to something more specific, more tangible, like the oldest written language, or earliest known language, you may have better answers. -tim -Original Message- From: Ramadoss Chinnakuzhandai [mailto:[EMAIL PROTECTED] Sent: Thursday, January 08, 2004 2:20 PM To: Struts Users Mailing List Subject: RE: [OT] Oldest Language yeah Tim I googled but was getting pages like the one you mentioned :-) but not what I wantedand so thought any of you might be better than google ;-) -R -Original Message- From: Tim Kettering [mailto:[EMAIL PROTECTED] Sent: Thursday, January 08, 2004 2:13 PM To: 'Struts Users Mailing List' Subject: RE: [OT] Oldest Language You'd probably be best off asking Google (the one true Oracle). This is what turned up on world's oldest language, but probably not the answer you were looking for. http://www.linguistlist.org/~ask-ling/archive-most-recent/msg01880.html -Original Message- From: Ramadoss Chinnakuzhandai [mailto:[EMAIL PROTECTED] Sent: Thursday, January 08, 2004 1:50 PM To: [EMAIL PROTECTED] Subject: [OT] Oldest Language Hi, If anyone of you might be wizard of liguistics facts...may I know the worlds oldest language? my apology for posting other topic..thought some one is out there to answer. -R - 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] - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.559 / Virus Database: 351 - Release Date: 1/8/2004 - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[OT] Who owns Eclipse
Hi, Is Eclipse owned by IBM or bought by IBM? Any idea? -Ram - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] Who owns Eclipse
Cooper Tnx for your information :) -Ramadoss -Original Message- From: news [mailto:[EMAIL PROTECTED] Behalf Of Martin Cooper Sent: Friday, December 26, 2003 3:22 PM To: [EMAIL PROTECTED] Subject: Re: [OT] Who owns Eclipse Neither. IBM originally created Eclipse, but then donated it to the open source community. See: http://www.ibm.com/news/us/2001/11/05.html My understanding is that Eclipse grew out of IBM's VisualAge for Java project. -- Martin Cooper Ramadoss Chinnakuzhandai [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, Is Eclipse owned by IBM or bought by IBM? Any idea? -Ram - 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]
RE: [OT] Who owns Eclipse
meaning eclipse own by===OTI===own by IBM== Eclipse own by IBM? -Original Message- From: Ingo Adler [mailto:[EMAIL PROTECTED] Sent: Friday, December 26, 2003 3:49 PM To: Struts Users Mailing List Subject: Re: [OT] Who owns Eclipse Eclipse developement is driven by OTI (www.oti.com), an IBM company. They developed Visual Age before. IBM (and maybe some of the OTI employees) builds WebSphere Studio Application Developer on top of it and sells it. Ingo Ramadoss Chinnakuzhandai wrote: Hi, Is Eclipse owned by IBM or bought by IBM? Any idea? -Ram - 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]
RE: From Suresh
Just look at the existing mail archives which has similar thread -Original Message- From: Suresh Korvi Sent: Wednesday, December 24, 2003 1:32 PM To: [EMAIL PROTECTED] Subject: From Suresh Hi Guys Can anybody help how to work with StrutsTestCase i am using Eclipse suresh - 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]
RE: [OT] SQL Date to Util Date
if you hv yahoo id I can add and chat whenever we need. my id is [EMAIL PROTECTED] -Original Message- From: Tiago Henrique Costa Rodrigues Alves [mailto:[EMAIL PROTECTED] Sent: Friday, December 12, 2003 4:02 PM To: 'Struts Users Mailing List' Subject: RES: [OT] SQL Date to Util Date Take a look at the DateFormat class (J2sdk API) Tiago Henrique C. R. Alves Analista de Sistemas Politec - CSS Tel: 3038-6952 -Mensagem original- De: Raj Yadav [mailto:[EMAIL PROTECTED] Enviada em: sexta-feira, 12 de dezembro de 2003 16:59 Para: [EMAIL PROTECTED] Assunto: [OT] SQL Date to Util Date Hi All, I want to display date in a JSP page. It's coming from Oracle as java.sql.Date (2003-12-11) I want to put it in displayable format and put it in a JSP page. Something like 12/11/03. Someone please help me on this. Thanks, -raj - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] SQL Date to Util Date
ignore my prev mail tnx -Original Message- From: Ramadoss Chinnakuzhandai Sent: Friday, December 12, 2003 4:31 PM To: Struts Users Mailing List Subject: RE: [OT] SQL Date to Util Date if you hv yahoo id I can add and chat whenever we need. my id is [EMAIL PROTECTED] -Original Message- From: Tiago Henrique Costa Rodrigues Alves [mailto:[EMAIL PROTECTED] Sent: Friday, December 12, 2003 4:02 PM To: 'Struts Users Mailing List' Subject: RES: [OT] SQL Date to Util Date Take a look at the DateFormat class (J2sdk API) Tiago Henrique C. R. Alves Analista de Sistemas Politec - CSS Tel: 3038-6952 -Mensagem original- De: Raj Yadav [mailto:[EMAIL PROTECTED] Enviada em: sexta-feira, 12 de dezembro de 2003 16:59 Para: [EMAIL PROTECTED] Assunto: [OT] SQL Date to Util Date Hi All, I want to display date in a JSP page. It's coming from Oracle as java.sql.Date (2003-12-11) I want to put it in displayable format and put it in a JSP page. Something like 12/11/03. Someone please help me on this. Thanks, -raj - 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] - 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]
Form with a Form
Hi, Can we define a form within a form...if so can you guide me . Actually in my jsp I wanted to perform two different action with respect to button pressed.so If I define global form I can only submit the global action defined in that form but I wanted to submit different action with respect to different button clicked so in that case I'm going for two different formplz set me if I'm wrong.. possible pls provide me how can I achieve the same. Tnx in advance, Ramadoss - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Form with a Form
You are right Ajay...I agree with that...but I want to do it without using Javascript and hidden variable using Struts -Original Message- From: Ajay Kalidindi [mailto:[EMAIL PROTECTED] Sent: Monday, December 08, 2003 1:40 PM To: Struts Users Mailing List Subject: RE: Form with a Form I have a suggestion. You can add a HIDDEN field, write a java script on click of multiple buttons Like ADD, DELETE, EDIT, RENAME buttons. What the java script will do is update HIDDEN variable and submit. I have not come across form within a form in HTML. Regards Ajay Kalidindi -Original Message- From: Ramadoss Chinnakuzhandai [mailto:[EMAIL PROTECTED] Sent: Monday, December 08, 2003 10:17 AM To: [EMAIL PROTECTED] Subject: Form with a Form Hi, Can we define a form within a form...if so can you guide me . Actually in my jsp I wanted to perform two different action with respect to button pressed.so If I define global form I can only submit the global action defined in that form but I wanted to submit different action with respect to different button clicked so in that case I'm going for two different formplz set me if I'm wrong.. possible pls provide me how can I achieve the same. Tnx in advance, Ramadoss - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Form with a Form
Hi, If at all I can use JavaScript in Struts...pls guide me how can I implement the same Tnx in Advace, -Ramadoss -Original Message- From: Ajay Kalidindi [mailto:[EMAIL PROTECTED] Sent: Monday, December 08, 2003 1:40 PM To: Struts Users Mailing List Subject: RE: Form with a Form I have a suggestion. You can add a HIDDEN field, write a java script on click of multiple buttons Like ADD, DELETE, EDIT, RENAME buttons. What the java script will do is update HIDDEN variable and submit. I have not come across form within a form in HTML. Regards Ajay Kalidindi -Original Message- From: Ramadoss Chinnakuzhandai [mailto:[EMAIL PROTECTED] Sent: Monday, December 08, 2003 10:17 AM To: [EMAIL PROTECTED] Subject: Form with a Form Hi, Can we define a form within a form...if so can you guide me . Actually in my jsp I wanted to perform two different action with respect to button pressed.so If I define global form I can only submit the global action defined in that form but I wanted to submit different action with respect to different button clicked so in that case I'm going for two different formplz set me if I'm wrong.. possible pls provide me how can I achieve the same. Tnx in advance, Ramadoss - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Form with a Form
-Original Message- From: Khalid K. [mailto:[EMAIL PROTECTED] Sent: Monday, December 08, 2003 3:08 PM To: Struts Users Mailing List Subject: RE: Form with a Form This sounds like a DispatchAction problem. If you use DispatchAction, (look the API for more info) then in your jsp: html:hidden property=method value=display/ html:button property=edit_button onclick=form.method.value='edit' Edit /html:button html:button property=update_button onclick=form.method.value='update' Update /html:button Hi, If at all I can use JavaScript in Struts...pls guide me how can I implement the same Tnx in Advace, -Ramadoss -Original Message- From: Ajay Kalidindi [mailto:[EMAIL PROTECTED] Sent: Monday, December 08, 2003 1:40 PM To: Struts Users Mailing List Subject: RE: Form with a Form I have a suggestion. You can add a HIDDEN field, write a java script on click of multiple buttons Like ADD, DELETE, EDIT, RENAME buttons. What the java script will do is update HIDDEN variable and submit. I have not come across form within a form in HTML. Regards Ajay Kalidindi -Original Message- From: Ramadoss Chinnakuzhandai [mailto:[EMAIL PROTECTED] Sent: Monday, December 08, 2003 10:17 AM To: [EMAIL PROTECTED] Subject: Form with a Form Hi, Can we define a form within a form...if so can you guide me . Actually in my jsp I wanted to perform two different action with respect to button pressed.so If I define global form I can only submit the global action defined in that form but I wanted to submit different action with respect to different button clicked so in that case I'm going for two different formplz set me if I'm wrong.. possible pls provide me how can I achieve the same. Tnx in advance, Ramadoss - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Khalid K. - 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]
RE: Email Validation Rules
Tnx Manjunath, I'll try your exp btw I got it solved,the expression which I tested found working was as below ^[A-Z0-9a-z_]+(.)[EMAIL PROTECTED](.)?[A-Za-z]{2,4}$ hope whoever need this can use the same for validate email -Ram -Original Message- From: Manjunath Bhat [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 19, 2003 4:05 AM To: Struts Users Mailing List Subject: RE: Email Validation Rules Try this, [\p{L}_-]+(\.[\p{L}_-]+)[EMAIL PROTECTED](\.[\p{L}_]+)+ -Original Message- From: David Friedman [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 18, 2003 11:46 PM To: Struts Users Mailing List Subject: RE: Email Validation Rules I'd suggest calling: org.apache.commons.validator.GenericValidator.isEmail(String arg); -Original Message- From: Ramadoss Chinnakuzhandai [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 18, 2003 1:03 PM To: Struts Users Mailing List Subject: Email Validation Rules Can any one correct me where I'm wrong using the following rule for validating email addressIt fails to validate against the valid email address..? [EMAIL PROTECTED],4}$ Tnx in advance :) -Ram - 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] - 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]
RE: Tokens
Hi Gurpreet, If what I understand is correct from your question, you can use split function the same way as you use String Token...following is sample snap shot String str = botherouioero:and:foroffo:mar:ssod:slave; String[] arr = str.split(:, 9); System.out.println(length of arr[] is: + arr.length); for (int i = 0; i arr.length; i++) { System.out.println(value is : + arr[i]); } String[] ar = str.split(o, 8); System.out.println(length of arr[] is: + ar.length); for (int i = 0; i ar.length; i++) { System.out.println(value is : + ar[i]); } Where the number 9 and 8 denotes number of occurences you want to consider after which it will be treated as whole single string and will be included into your String Array. Hope this help, -Ram -Original Message- From: Gurpreet Dhanoa [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 19, 2003 6:19 AM To: Struts Users Mailing List; [EMAIL PROTECTED] Subject: Tokens hi All Can somebody explain small code snap shot of using Tokens. AS i am trying to use it in one of my application. but due to some unknown reason it is not working. I may be doing something wrong. Any help will be appreciated Regards GAry - 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]
RE: Struts Validation
Hi Luci, As you mentioned in your expression there a in-build function called email which will make use of org.apache.commons.validator.GenericValidator.isEmail(String arg) but the problem here is it does accepts even invalid email address also (eg) [EMAIL PROTECTED] would rather suggest you to use your own mask pattern which will make use of the following expression constant constant-nameemailAddress/constant-name constant-value^[A-Z0-9a-z_]+(.)[EMAIL PROTECTED](.)?[A-Za-z]{2,4}$/constant-value /constant Hope this help to some extend, -Ram -Original Message- From: Luciano Campi [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 19, 2003 7:55 AM To: Struts Users Mailing List Subject: Struts Validation Hi all, I need to validate a e-mail CC form field like a [EMAIL PROTECTED] , [EMAIL PROTECTED] I would you like to known how to create a new Validator class that validate multiples e-mail address(like a CC and BCC address) and uses org.apache.commons.validator.EmailValidator to validate a simgle e-mail address. The Regular Expression will be like this [ [{e-mail}, ]* {e-mail} ]* I will very grateful for any advice or pointers. Regards, Luciano Campi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Email Validation Rules
Tnx Richard...let me try and come back to you... :) -Ram -Original Message- From: Yee, Richard K,,DMDCWEST [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 19, 2003 12:32 PM To: 'Struts Users Mailing List' Subject: RE: Email Validation Rules Ramadoss, Your regexp can't handle an email address that has the domain specified as an IP address. Try this one instead: /^(([^()[\]\\.,;:[EMAIL PROTECTED]]+(\.[^()[\]\\.,;:[EMAIL PROTECTED]]+)*)|(\.+\))@((\[[0-9]{1 ,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}) )$/ It's from this site: http://www.breakingpar.com/bkp/home.nsf/Doc?OpenNavigatorU=87256B280015193F 87256C40004CC8C6 which I found using google with 'email address regular expression' Regards, Richard -Original Message- From: Ramadoss Chinnakuzhandai [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 19, 2003 6:34 AM To: Struts Users Mailing List Subject: RE: Struts Validation Hi Luci, As you mentioned in your expression there a in-build function called email which will make use of org.apache.commons.validator.GenericValidator.isEmail(String arg) but the problem here is it does accepts even invalid email address also (eg) [EMAIL PROTECTED] would rather suggest you to use your own mask pattern which will make use of the following expression constant constant-nameemailAddress/constant-name constant-value^[A-Z0-9a-z_]+(.)[EMAIL PROTECTED](. )?[A-Za-z]{2,4}$/constant-value /constant Hope this help to some extend, -Ram -Original Message- From: Luciano Campi [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 19, 2003 7:55 AM To: Struts Users Mailing List Subject: Struts Validation Hi all, I need to validate a e-mail CC form field like a [EMAIL PROTECTED] , [EMAIL PROTECTED] I would you like to known how to create a new Validator class that validate multiples e-mail address(like a CC and BCC address) and uses org.apache.commons.validator.EmailValidator to validate a simgle e-mail address. The Regular Expression will be like this [ [{e-mail}, ]* {e-mail} ]* I will very grateful for any advice or pointers. Regards, Luciano Campi - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: IDE
There is something you cant buy(?)for everything there is an eclipse -ram -Original Message- From: Hubert Rabago [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 19, 2003 10:13 AM To: Struts Users Mailing List Subject: RE: IDE Sergio, If you're looking for an IDE with good Struts support, I'd suggest you look at WSAD. It's based on Eclipse. It's got decent knowledge of what struts is and what your config.xml is supposed to have in it. However, I'm pretty convinced it's also one of those IDEs that give IDEs a bad name (and there's too many of them). If you're looking for a good Java IDE/editor, download and evaluate IDEA (http://www.intellij.com). It's the type of IDE us IDE-haters can actually appreciate. Here are some more points of view: http://jakarta.apache.org/struts/faqs/kickstart.html#ide http://nagoya.apache.org/wiki/apachewiki.cgi?StrutsMyFavoriteIDE Hubert --- Larry Meadors [EMAIL PROTECTED] wrote: Just bear in mind that all IDEs suck and that you will not find one that meets all of your needs. For what I need to do today, eclipse is the one that sucks the *least*, but make no mistake: it still sucks. Nice fast java editing. XML and jsp editors totally suck though. Netbeans is good if you are learning jstl, and need code completion in jsp tags. It's xml editor is still far superior to anything I have seen in eclipse. But it is slow - even the newest releases are slower than eclipse. I know - I have used them. Larry -Original Message- From: Gonzalez Comesaña, Sergio Eduardo Subject: IDE Hello, Someone knows a good editor for Java and Struts ?? I use Jdeveloper 9.03 but I would like change it. __ Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard http://antispam.yahoo.com/whatsnewfree - 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]
Email Validation Rules
Can any one correct me where I'm wrong using the following rule for validating email addressIt fails to validate against the valid email address..? [EMAIL PROTECTED],4}$ Tnx in advance :) -Ram - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Email Validation Rules
yeah...I tried that way but the problem I belive is it does accepting special character after the . part of email address. any other idea how to make it work??? -Original Message- From: David Friedman [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 18, 2003 1:16 PM To: Struts Users Mailing List Subject: RE: Email Validation Rules I'd suggest calling: org.apache.commons.validator.GenericValidator.isEmail(String arg); -Original Message- From: Ramadoss Chinnakuzhandai [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 18, 2003 1:03 PM To: Struts Users Mailing List Subject: Email Validation Rules Can any one correct me where I'm wrong using the following rule for validating email addressIt fails to validate against the valid email address..? [EMAIL PROTECTED],4}$ Tnx in advance :) -Ram - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Hello Basic Question.
Hi Tim, Following are the easy steps to develop web app using Struts You also might want to try out my newbie walk throughs at http://www.reumann.net/do/struts/main I created those lessons because when I was learning nothing was out there like it (baby step by step stuff:). Let me know if you find them helpful. -Million Tnx to Rick Reumann Hope this help you, -Ram -Original Message- From: tim duch [mailto:[EMAIL PROTECTED] Sent: Friday, November 14, 2003 8:01 AM To: [EMAIL PROTECTED] Subject: Hello Basic Question. Hello , I want to try out a very samll example of Struts I tried some stuff but seems not working .. can any Struts Guru point out wat are the basic req. to develope the web application using Struts .. How the directory arraged. and what all will be the req. please let me know .. regards -Tim80 __ Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard http://antispam.yahoo.com/whatsnewfree - 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]
RE: Validation using mask
when attempt to try this with other field its working fine()...Any Idea? Has anyone ever experienced such problem in validation ?? -Ram -Original Message- From: Ramadoss Chinnakuzhandai Sent: Wednesday, November 12, 2003 4:46 PM To: Struts Users Mailing List Subject: RE: Validation using mask sorry Saul I tried that as well but again it does not accepting . Any idea/suggestion would be appreciated. -Ram -Original Message- From: Saul Q Yuan [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 12, 2003 3:20 PM To: 'Struts Users Mailing List' Subject: RE: Validation using mask Try take out the - before \., ie. Use: ^[0-9a-zA-Z\.]*$ Saul -Original Message- From: Ramadoss Chinnakuzhandai [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 12, 2003 3:09 PM To: Struts Users Mailing List Subject: RE: Validation using mask Any suggestions or ideas for the below mail would be greatly appreciated. Tnx in advance, -Ram -Original Message- From: Ramadoss Chinnakuzhandai Sent: Wednesday, November 12, 2003 10:18 AM To: [EMAIL PROTECTED] Subject: Validation using mask Sorry for posting my prev question again... In my form I'm validating a TextField hostname in order to accept only ^[0-9a-zA-Z-\.]*$ in its input value using mask pattern in validation.xml. field property=hostname depends=required,mask,minlength,maxlength arg0 key=form.hostname/ arg1 key=${var:minlength} name=minlength resource=false/ arg2 key=${var:maxlength} name=maxlength resource=false/ msg name=mask key=errors.hostname.invalid/ var var-namemaxlength/var-name var-value63/var-value /var var var-nameminlength/var-name var-value1/var-value /var var var-namemask/var-name var-value^[0-9a-zA-Z-\.]*$/var-value /var /field The problem is that it DOES NOT accepting . character as part its input value. The same time I tested the same pattern for different TextField called ccID on the other page and I found it accepting . character as part of its input value field property=ccID depends=requiredif,mask arg0 key=form.creditcard.cid/ msg name=mask key=errors.hostname.invalid/ var var-namefield[0]/var-name var-valueccNoID/var-value /var var var-namefieldTest[0]/var-name var-valueEQUAL/var-value /var var var-namefieldValue[0]/var-name var-valuefalse/var-value /var var var-namemask/var-name var-value^[0-9a-zA-Z-\.]*$/var-value /var /field I'm just wondering why it does accepting the first field and why it does not for the second field? Please correct me where I'm going wrong or do I hv to modify the mask pattern in such a way that it accepts . character...?? -Ram - 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] - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Validation using mask
Can anybody suggest me is there any good resources to refer particularty deep into Struts Validation...? I did refer Struts by Marinescu and other one by Ted Husted but unfortunately did not find enough information particularly deal with Struts Validation.. I hv been trying to see what is the cause but seems still look very hard for me to find out the following problem... :) -Ram -Original Message- From: Ramadoss Chinnakuzhandai Sent: Thursday, November 13, 2003 9:54 AM To: Struts Users Mailing List Subject: RE: Validation using mask when attempt to try this with other field its working fine()...Any Idea? Has anyone ever experienced such problem in validation ?? -Ram -Original Message- From: Ramadoss Chinnakuzhandai Sent: Wednesday, November 12, 2003 4:46 PM To: Struts Users Mailing List Subject: RE: Validation using mask sorry Saul I tried that as well but again it does not accepting . Any idea/suggestion would be appreciated. -Ram -Original Message- From: Saul Q Yuan [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 12, 2003 3:20 PM To: 'Struts Users Mailing List' Subject: RE: Validation using mask Try take out the - before \., ie. Use: ^[0-9a-zA-Z\.]*$ Saul -Original Message- From: Ramadoss Chinnakuzhandai [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 12, 2003 3:09 PM To: Struts Users Mailing List Subject: RE: Validation using mask Any suggestions or ideas for the below mail would be greatly appreciated. Tnx in advance, -Ram -Original Message- From: Ramadoss Chinnakuzhandai Sent: Wednesday, November 12, 2003 10:18 AM To: [EMAIL PROTECTED] Subject: Validation using mask Sorry for posting my prev question again... In my form I'm validating a TextField hostname in order to accept only ^[0-9a-zA-Z-\.]*$ in its input value using mask pattern in validation.xml. field property=hostname depends=required,mask,minlength,maxlength arg0 key=form.hostname/ arg1 key=${var:minlength} name=minlength resource=false/ arg2 key=${var:maxlength} name=maxlength resource=false/ msg name=mask key=errors.hostname.invalid/ var var-namemaxlength/var-name var-value63/var-value /var var var-nameminlength/var-name var-value1/var-value /var var var-namemask/var-name var-value^[0-9a-zA-Z-\.]*$/var-value /var /field The problem is that it DOES NOT accepting . character as part its input value. The same time I tested the same pattern for different TextField called ccID on the other page and I found it accepting . character as part of its input value field property=ccID depends=requiredif,mask arg0 key=form.creditcard.cid/ msg name=mask key=errors.hostname.invalid/ var var-namefield[0]/var-name var-valueccNoID/var-value /var var var-namefieldTest[0]/var-name var-valueEQUAL/var-value /var var var-namefieldValue[0]/var-name var-valuefalse/var-value /var var var-namemask/var-name var-value^[0-9a-zA-Z-\.]*$/var-value /var /field I'm just wondering why it does accepting the first field and why it does not for the second field? Please correct me where I'm going wrong or do I hv to modify the mask pattern in such a way that it accepts . character...?? -Ram - 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] - 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] - 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]
RE: validation
field property=txtField1 depends=requiredif arg0 key=form.txtField1/ var var-namefield[0]/var-name var-valuecheckBox/var-value /var var var-namefieldTest[0]/var-name var-valueEQUAL/var-value /var var var-namefieldValue[0]/var-name var-valueon/var-value /var /field field property=txtFieldn depends=requiredif arg0 key=form.txtFieldn/ var var-namefield[0]/var-name var-valuecheckBox/var-value /var var var-namefieldTest[0]/var-name var-valueEQUAL/var-value /var var var-namefieldValue[0]/var-name var-valueon/var-value /var /field Hope this help you... :) -Ram -Original Message- From: sairam manda [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 12, 2003 4:44 AM To: [EMAIL PROTECTED] Subject: validation Hello Sir, I am new to struts .I have a question in validating a form . My form has a checkbox and few textfields corresponding to the checkbox ie I want to validate these textfeilds only if the checkbox is checked . Can anybody guide me how I can do this using requiredIf validation. regards sairam _ Express your Digital Self. Win fabulous prizes. http://www.msn.co.in/DigitalSelf/ Enter this cool contest. - 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]
Validation using mask
Sorry for posting my prev question again... In my form I'm validating a TextField hostname in order to accept only ^[0-9a-zA-Z-\.]*$ in its input value using mask pattern in validation.xml. field property=hostname depends=required,mask,minlength,maxlength arg0 key=form.hostname/ arg1 key=${var:minlength} name=minlength resource=false/ arg2 key=${var:maxlength} name=maxlength resource=false/ msg name=mask key=errors.hostname.invalid/ var var-namemaxlength/var-name var-value63/var-value /var var var-nameminlength/var-name var-value1/var-value /var var var-namemask/var-name var-value^[0-9a-zA-Z-\.]*$/var-value /var /field The problem is that it DOES NOT accepting . character as part its input value. The same time I tested the same pattern for different TextField called ccID on the other page and I found it accepting . character as part of its input value field property=ccID depends=requiredif,mask arg0 key=form.creditcard.cid/ msg name=mask key=errors.hostname.invalid/ var var-namefield[0]/var-name var-valueccNoID/var-value /var var var-namefieldTest[0]/var-name var-valueEQUAL/var-value /var var var-namefieldValue[0]/var-name var-valuefalse/var-value /var var var-namemask/var-name var-value^[0-9a-zA-Z-\.]*$/var-value /var /field I'm just wondering why it does accepting the first field and why it does not for the second field? Please correct me where I'm going wrong or do I hv to modify the mask pattern in such a way that it accepts . character...?? -Ram - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Validation using mask
Any suggestions or ideas for the below mail would be greatly appreciated. Tnx in advance, -Ram -Original Message- From: Ramadoss Chinnakuzhandai Sent: Wednesday, November 12, 2003 10:18 AM To: [EMAIL PROTECTED] Subject: Validation using mask Sorry for posting my prev question again... In my form I'm validating a TextField hostname in order to accept only ^[0-9a-zA-Z-\.]*$ in its input value using mask pattern in validation.xml. field property=hostname depends=required,mask,minlength,maxlength arg0 key=form.hostname/ arg1 key=${var:minlength} name=minlength resource=false/ arg2 key=${var:maxlength} name=maxlength resource=false/ msg name=mask key=errors.hostname.invalid/ var var-namemaxlength/var-name var-value63/var-value /var var var-nameminlength/var-name var-value1/var-value /var var var-namemask/var-name var-value^[0-9a-zA-Z-\.]*$/var-value /var /field The problem is that it DOES NOT accepting . character as part its input value. The same time I tested the same pattern for different TextField called ccID on the other page and I found it accepting . character as part of its input value field property=ccID depends=requiredif,mask arg0 key=form.creditcard.cid/ msg name=mask key=errors.hostname.invalid/ var var-namefield[0]/var-name var-valueccNoID/var-value /var var var-namefieldTest[0]/var-name var-valueEQUAL/var-value /var var var-namefieldValue[0]/var-name var-valuefalse/var-value /var var var-namemask/var-name var-value^[0-9a-zA-Z-\.]*$/var-value /var /field I'm just wondering why it does accepting the first field and why it does not for the second field? Please correct me where I'm going wrong or do I hv to modify the mask pattern in such a way that it accepts . character...?? -Ram - 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]
RE: Validation using mask
sure Saul...let me test it and update you :) -Ram -Original Message- From: Saul Q Yuan [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 12, 2003 3:20 PM To: 'Struts Users Mailing List' Subject: RE: Validation using mask Try take out the - before \., ie. Use: ^[0-9a-zA-Z\.]*$ Saul -Original Message- From: Ramadoss Chinnakuzhandai [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 12, 2003 3:09 PM To: Struts Users Mailing List Subject: RE: Validation using mask Any suggestions or ideas for the below mail would be greatly appreciated. Tnx in advance, -Ram -Original Message- From: Ramadoss Chinnakuzhandai Sent: Wednesday, November 12, 2003 10:18 AM To: [EMAIL PROTECTED] Subject: Validation using mask Sorry for posting my prev question again... In my form I'm validating a TextField hostname in order to accept only ^[0-9a-zA-Z-\.]*$ in its input value using mask pattern in validation.xml. field property=hostname depends=required,mask,minlength,maxlength arg0 key=form.hostname/ arg1 key=${var:minlength} name=minlength resource=false/ arg2 key=${var:maxlength} name=maxlength resource=false/ msg name=mask key=errors.hostname.invalid/ var var-namemaxlength/var-name var-value63/var-value /var var var-nameminlength/var-name var-value1/var-value /var var var-namemask/var-name var-value^[0-9a-zA-Z-\.]*$/var-value /var /field The problem is that it DOES NOT accepting . character as part its input value. The same time I tested the same pattern for different TextField called ccID on the other page and I found it accepting . character as part of its input value field property=ccID depends=requiredif,mask arg0 key=form.creditcard.cid/ msg name=mask key=errors.hostname.invalid/ var var-namefield[0]/var-name var-valueccNoID/var-value /var var var-namefieldTest[0]/var-name var-valueEQUAL/var-value /var var var-namefieldValue[0]/var-name var-valuefalse/var-value /var var var-namemask/var-name var-value^[0-9a-zA-Z-\.]*$/var-value /var /field I'm just wondering why it does accepting the first field and why it does not for the second field? Please correct me where I'm going wrong or do I hv to modify the mask pattern in such a way that it accepts . character...?? -Ram - 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] - 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]
RE: Validation using mask
sorry Saul I tried that as well but again it does not accepting . Any idea/suggestion would be appreciated. -Ram -Original Message- From: Saul Q Yuan [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 12, 2003 3:20 PM To: 'Struts Users Mailing List' Subject: RE: Validation using mask Try take out the - before \., ie. Use: ^[0-9a-zA-Z\.]*$ Saul -Original Message- From: Ramadoss Chinnakuzhandai [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 12, 2003 3:09 PM To: Struts Users Mailing List Subject: RE: Validation using mask Any suggestions or ideas for the below mail would be greatly appreciated. Tnx in advance, -Ram -Original Message- From: Ramadoss Chinnakuzhandai Sent: Wednesday, November 12, 2003 10:18 AM To: [EMAIL PROTECTED] Subject: Validation using mask Sorry for posting my prev question again... In my form I'm validating a TextField hostname in order to accept only ^[0-9a-zA-Z-\.]*$ in its input value using mask pattern in validation.xml. field property=hostname depends=required,mask,minlength,maxlength arg0 key=form.hostname/ arg1 key=${var:minlength} name=minlength resource=false/ arg2 key=${var:maxlength} name=maxlength resource=false/ msg name=mask key=errors.hostname.invalid/ var var-namemaxlength/var-name var-value63/var-value /var var var-nameminlength/var-name var-value1/var-value /var var var-namemask/var-name var-value^[0-9a-zA-Z-\.]*$/var-value /var /field The problem is that it DOES NOT accepting . character as part its input value. The same time I tested the same pattern for different TextField called ccID on the other page and I found it accepting . character as part of its input value field property=ccID depends=requiredif,mask arg0 key=form.creditcard.cid/ msg name=mask key=errors.hostname.invalid/ var var-namefield[0]/var-name var-valueccNoID/var-value /var var var-namefieldTest[0]/var-name var-valueEQUAL/var-value /var var var-namefieldValue[0]/var-name var-valuefalse/var-value /var var var-namemask/var-name var-value^[0-9a-zA-Z-\.]*$/var-value /var /field I'm just wondering why it does accepting the first field and why it does not for the second field? Please correct me where I'm going wrong or do I hv to modify the mask pattern in such a way that it accepts . character...?? -Ram - 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] - 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]
Struts-Validation Error
Hi, I need to accept .(dot) as part of input value. While trying to test it does not accept . in the input entry. Any idea how to make it accept . character in the validation pattern. following is the validation pattern for that field in validation.xml form name=AvailabilityForm field property=hostname depends=required,mask arg0 key=form.hostname/ arg1 key=${var:minlength} name=minlength resource=false/ arg2 key=${var:maxlength} name=maxlength resource=false/ msg name=mask key=errors.hostname.invalid/ var var-namemaxlength/var-name var-value63/var-value /var var var-nameminlength/var-name var-value1/var-value /var var var-namemask/var-name var-value^[0-9a-zA-Z-\.]*$/var-value /var /field /form /formset -Any help would be greatly appreciated. Tnx in advance, -Ram - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Struts-Validation Error
I'm experiencing some peculiar error in the validation framework.. I hv tested the validation for two different fields in different pages using pattern matching maskfield in some page it does working...but other doesn't...I just wondering what was the problem with me..? It does working for field ccID with requiredif field property=ccID depends=requiredif,mask arg0 key=form.creditcard.cid/ msg name=mask key=errors.hostname.invalid/ var var-namefield[0]/var-name var-valueccNoID/var-value /var var var-namefieldTest[0]/var-name var-valueEQUAL/var-value /var var var-namefieldValue[0]/var-name var-valuefalse/var-value /var var var-namemask/var-name var-value^[0-9a-zA-Z-\.]*$/var-value /var /field where in other field hostnameit does not accepting . as the input value for hostname. field property=hostname depends=required,mask,minlength,maxlength arg0 key=form.hostname/ arg1 key=${var:minlength} name=minlength resource=false/ arg2 key=${var:maxlength} name=maxlength resource=false/ msg name=mask key=errors.hostname.invalid/ var var-namemaxlength/var-name var-value63/var-value /var var var-nameminlength/var-name var-value1/var-value /var var var-namemask/var-name var-value^[0-9a-zA-Z-\.]*$/var-value /var /field Guide me where I'm doing wrong or how to resolve this. Tnx in advance, -Ram -Original Message- From: Ramadoss Chinnakuzhandai Sent: Tuesday, November 11, 2003 3:18 PM To: [EMAIL PROTECTED] Subject: Struts-Validation Error Hi, I need to accept .(dot) as part of input value. While trying to test it does not accept . in the input entry. Any idea how to make it accept . character in the validation pattern. following is the validation pattern for that field in validation.xml form name=AvailabilityForm field property=hostname depends=required,mask arg0 key=form.hostname/ arg1 key=${var:minlength} name=minlength resource=false/ arg2 key=${var:maxlength} name=maxlength resource=false/ msg name=mask key=errors.hostname.invalid/ var var-namemaxlength/var-name var-value63/var-value /var var var-nameminlength/var-name var-value1/var-value /var var var-namemask/var-name var-value^[0-9a-zA-Z-\.]*$/var-value /var /field /form /formset -Any help would be greatly appreciated. Tnx in advance, -Ram - 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]
RE: Struts-Validation
yes Rickas exactly like what you mentioned what I did is first I just called super.validate() in my validate method of ActionForm then did the custon validation...btw is there any way in which I can validate those fields in framework itself..??? one like NotRequiredIf...?? like I should restrict the user to enter either CreditCardId text box or radio button which represent NoCreditCardId and not both If so I should throw err msg. -Ram -Original Message- From: Rick Reumann [mailto:[EMAIL PROTECTED] Sent: Thursday, November 06, 2003 12:13 AM To: Struts Users Mailing List Subject: Re: Struts-Validation Ramadoss Chinnakuzhandai wrote: yesI should restrict the user to enter both fields i.e they should enter anyone of the fields and not both. These option I think is to use the validate method in your ActionForm and then first call your validation framework and then do the check for the custom stuff you need to take care of public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) { ServletContext application = getServlet().getServletContext(); ActionErrors errors = new ActionErrors(); //parameter will tell it what validation to look at String parameter = request.getParameter( mapping.getParameter() ); Validator validator = Resources.initValidator( parameter, this, application, request, errors, page); try { validatorResults = validator.validate(); } catch (ValidatorException e) { log.error(e.getMessage(), e); } //!! now do the custom stuff.. comparing the fields etc and add //any more errors to errors return errors; } -- Rick - 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]
Nightly Build
Hi, Can anybody let me know how can I integrate *Nightly Build* to my application if possible pls let me know the steps involved.since I'm going for validwhen. Tnx in advance. -Ram - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Nightly Build
Hi, Do I have to override all the existing jar files in my project with those new jars or override only particular jar with new jar...??? pls let me know the same for dtd and tld also. tnx in advance. -Ram -Original Message- From: Wendy Smoak [mailto:[EMAIL PROTECTED] Sent: Thursday, November 06, 2003 1:42 PM To: Struts Users Mailing List Subject: RE: Nightly Build Ramadoss Chinnakuzhandai wrote: Can anybody let me know how can I integrate *Nightly Build* to my application if possible pls let me know the steps involved.since I'm going for validwhen. Download the binary distribution from Jakarta and unzip it. Copy the .jar and .xml files into your project directory. Simple as that! I have an Ant task that copies over the necessary files: target name=struts-nightly copy todir=${lib} fileset dir=${struts}/lib include name=*.jar/ /fileset /copy copy todir=${webinf} fileset dir=${struts}/lib include name=validator-rules.xml/ /fileset /copy copy todir=${lib} fileset dir=${struts}/contrib/struts-el/lib include name=*.jar/ /fileset /copy /target Set ${struts} to wherever you expanded the .zip/.tar.gz file you downloaded from Jakarta. ${webinf} is the WEB-INF directory, and ${lib} is WEB-INF/lib. (If you're using an older container, you might also need the .tld files.) HTH, -- Wendy Smoak Applications Systems Analyst, Sr. Arizona State University, PA, IRM - 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]
RE: Javascript question...
Try this simple... document.write('select NAME='+optionName+''); document.write('option value=yearYear/option'); for (var i=(year-4);i(year+4);i++ ) { document.write('option value=' + i +'' + i+'/option'); if(i==defaultValue) { document.write('option value=' + i + ' selected' + i + '/option'); } } document.write('/select'); -Ram -Original Message- From: Jacob Wilson [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 04, 2003 9:04 PM To: Struts Users Mailing List Subject: RE: Javascript question... Oh... thanks buddy... I actually created an option object and finished this... After you saying I checked and yes how stupid I am !!! simple mistakes need an other eye... Thanks again... I did something like this -- this works fine too... var s = document.forms[0]; function generateYear(optionName,defaultValue) { var today = new Date(); var year = today.getYear(); document.write('select NAME='+optionName+''); document.write('option value=yearYear/option'); for (var i=(year-4);i(year+4);i++ ) { if(defaultValue == i) { yearOption = new Option(); yearOption.text= i; yearOption.value= i; s.elements[optionName].options[s.elements[optionName].options.length]=yearOption; yearOption.selected = true; } else { document.write('option value='+i+''+i+'/option'); } } document.write('/select'); } Joe Krause [EMAIL PROTECTED] wrote: You need to put a space in front of the word selected. Right now your HTML output will contain: 2005 This makes the value equal to 2005selected. By putting a space in between the quote and the word selected - you will change the value to 2005 and selected will be picked up correctly. document.write('' + i + ''); You should put double quotes around the value parameter - its cleaner HTML: document.write('' + i + ''); You might have to escape those - I'm not sure. -Original Message- From: Jacob Wilson [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 04, 2003 5:00 PM To: Struts Users Mailing List Subject: RE: Javascript question... Richard... I find this list to be more user friendly in terms of responding to questions... Also, not that I do not use Struts at all... for this particular requirement of an old project under maintenance, I am trying to do this... I consider this to be very much knowledge sharing list and hence post questions whenever I have any... thanks is advance... Now, getting back to your question... this is the code... function generateYear(optionName,defaultValue) { var today = new Date(); var year = today.getYear(); document.write(''); document.write('Year'); for (var i=(year-4);i if(defaultValue == i) { document.write('' + i+''); } else { document.write('' + i+''); } } document.write(''); } generateYear(optStartDtYear,2005); My idea is to make '2005' selected when the page loads... The above code fails to make '2005' selected!!! If you can make me know the reason, it'd be great... Thanks! Yee, Richard K,,DMDCWEST wrote: Jacob, You wrote: unfortunately we aren't using Struts here...? If you aren't using Struts then a) why are you asking this question on a Struts mailing list b) What do you mean then when you write Now if I have values of day, month, year executing an action. How can I default those values in the select box??? Regards, Richard - Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard - Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Struts-Validation
Hi, I hv two fields field1 and field2 1. If field1 is null while field2 is empty I should throw error message that anyone of the field is mandatoryI implemented using requiredif and its working fine. 2. when both fields are entered I should throw an error message that enter anyone of the field and not both. Can anybody suggest me how to handle such condition using Struts validation.xml.. Tnx in advance. -Ram - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Struts-Validation
yesI should restrict the user to enter both fields i.e they should enter anyone of the fields and not both. That's a self-contradiction if you want to use them at the same time. You will need to write your own validation for that. you mean to say separate JavaScript or whatever to validate this condition...??? -Ram -Original Message- From: Yansheng Lin [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 05, 2003 5:29 PM To: 'Struts Users Mailing List' Subject: RE: Struts-Validation So you are saying you need something like notRequireIf for field2, right? That's a self-contradiction if you want to use them at the same time. You will need to write your own validation for that. -Original Message- From: Ramadoss Chinnakuzhandai [mailto:[EMAIL PROTECTED] Sent: November 5, 2003 1:54 PM To: [EMAIL PROTECTED] Subject: Struts-Validation Hi, I hv two fields field1 and field2 1. If field1 is null while field2 is empty I should throw error message that anyone of the field is mandatoryI implemented using requiredif and its working fine. 2. when both fields are entered I should throw an error message that enter anyone of the field and not both. Can anybody suggest me how to handle such condition using Struts validation.xml.. Tnx in advance. -Ram - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Beginner Struts
-Original Message- From: Rick Reumann [mailto:[EMAIL PROTECTED] Sent: Monday, November 03, 2003 5:26 PM To: Struts Users Mailing List Subject: Re: Beginner Struts Ramadoss Chinnakuzhandai wrote: Can anybody suggest which is the best book for beginner to understand Struts1.1 in a easy approach...? Programming Jakarta Struts by Chuck Cavaness http://www.amazon.com/exec/obidos/tg/detail/-/0596003285/qid=1067898114/sr=8-2/ref=sr_8_2/102-1084108-9634561?v=glancen=507846 (a search through the mailing list archives http://www.mail-archive.com/struts-user%40jakarta.apache.org/ also reveals a lot on this topic). -- Rick - 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]
Javadoc Warning
Hi, I getting the following warning while generating Javadoc from ant build file.. [javadoc] initialize application beans [javadoc] 1. [javadoc] This sentence is different from what would be generated using -breakiterator: [javadoc] initialize application beans [javadoc] 1. states [javadoc] 2. country codes [javadoc] DOCUMENT ME! [javadoc] * [javadoc] C:\RCOM\development\redesign\java\webapps\beta\src\com\register\struts\framework\RCOMServlet.java:28: warning - The first sentence is int preted to be: [javadoc] * @author kerukulla [javadoc] * [javadoc] C:\RCOM\development\redesign\java\webapps\beta\src\com\register\struts\about\IntlPricingAction.java:41: warning - The first sentence is i erpreted to be: [javadoc] This sentence is different from what would be generated using -breakiterator: [javadoc] DOCUMENT ME! [javadoc] [javadoc] Populates the cartfrom object that holds all of our cart data.br [javadoc] This sentence is different from what would be generated using -breakiterator: is there anyway I can get rid of these warning.?? here is the build file target name=javadocs depends=compile description=Make the Javadoc pages ant antfile=${masterbuild.dir}/javadoc.xml dir=. inheritall=false property name=javadoc.title value=RCOM Redesign Project - project-name Component API/ property name=javadoc.dest.dir value=${javadoc.dir}/ reference refid=compile.classpath torefid=javadoc.classpath/ /ant /target - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Javadoc Warning
could you pls explain... -Original Message- From: Larry Meadors [mailto:[EMAIL PROTECTED] Sent: Monday, November 03, 2003 1:59 PM To: [EMAIL PROTECTED] Subject: Re: Javadoc Warning Yes. [EMAIL PROTECTED] 11/03/03 11:56 AM Hi, I getting the following warning while generating Javadoc from ant build file.. is there anyway I can get rid of these warning.?? - 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]
RE: Javadoc Warning
if you know how to solve this problem pls let me know tnx in advance ~Ram -Original Message- From: Ramadoss Chinnakuzhandai Sent: Monday, November 03, 2003 2:34 PM To: Struts Users Mailing List Subject: RE: Javadoc Warning could you pls explain... -Original Message- From: Larry Meadors [mailto:[EMAIL PROTECTED] Sent: Monday, November 03, 2003 1:59 PM To: [EMAIL PROTECTED] Subject: Re: Javadoc Warning Yes. [EMAIL PROTECTED] 11/03/03 11:56 AM Hi, I getting the following warning while generating Javadoc from ant build file.. is there anyway I can get rid of these warning.?? - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Serializing objects in session
Can anybody suggest which is the best book for beginner to understand Struts in a easyway. Tnx -Ram -Original Message- From: Derek Richardson [mailto:[EMAIL PROTECTED] Sent: Monday, November 03, 2003 4:32 PM To: Struts Users Mailing List Subject: Serializing objects in session Is everything that struts puts in session context serializable? I am beginning to investigate load-balancing on BEA and this seems to be the primary question. Thanks, Derek Richardson - 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]
RE: Serializing objects in session
sorry for posting my prev msg here...I apologize for that. -Original Message- From: Ramadoss Chinnakuzhandai Sent: Monday, November 03, 2003 4:45 PM To: Struts Users Mailing List Subject: RE: Serializing objects in session Can anybody suggest which is the best book for beginner to understand Struts in a easyway. Tnx -Ram -Original Message- From: Derek Richardson [mailto:[EMAIL PROTECTED] Sent: Monday, November 03, 2003 4:32 PM To: Struts Users Mailing List Subject: Serializing objects in session Is everything that struts puts in session context serializable? I am beginning to investigate load-balancing on BEA and this seems to be the primary question. Thanks, Derek Richardson - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Beginner Struts
Hi, Can anybody suggest which is the best book for beginner to understand Struts1.1 in a easy approach...? Appreciate your time, -Tnx, Ram - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Debug output
Try set Threshold level to higher in your root logger or log4j.properties/xml file(Levels FatalErrorWarnInfoDebug). -Ram -Original Message- From: Norr, Peter [mailto:[EMAIL PROTECTED] Sent: Monday, November 03, 2003 5:06 PM To: 'Struts Users Mailing List' Subject: Debug output How do I adjust the logging level of struts? I am getting way too many DEBUG messages.. Peter -- This message is intended only for the personal and confidential use of the designated recipient(s) named above. If you are not the intended recipient of this message you are hereby notified that any review, dissemination, distribution or copying of this message is strictly prohibited. This communication is for information purposes only and should not be regarded as an offer to sell or as a solicitation of an offer to buy any financial product, an official confirmation of any transaction, or as an official statement of Lehman Brothers. Email transmission cannot be guaranteed to be secure or error-free. Therefore, we do not represent that this information is complete or accurate and it should not be relied upon as such. All information is subject to change without notice. - 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]
RE: Requiredif error?
Try var-namefieldTest[0]/var-name -Original Message- From: Greg Hess [mailto:[EMAIL PROTECTED] Sent: Saturday, October 25, 2003 12:21 PM To: Struts Subject: Requiredif error? Hi All, I get the following error when I submit my form using the requiredif: 25 Oct 2003 12:03:13,311 - ERROR org.apache.commons.validator.Validator - reflection: null java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.commons.validator.Validator.validateFieldForRule(Validator.java:454) at org.apache.commons.validator.Validator.validateField(Validator.java:544) at org.apache.commons.validator.Validator.validate(Validator.java:582) at org.apache.struts.validator.ValidatorForm.validate(ValidatorForm.java:152) at org.apache.struts.action.RequestProcessor.processValidate(RequestProcessor.java:942) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:255) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482) at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525) at javax.servlet.http.HttpServlet.service(HttpServlet.java:165) at javax.servlet.http.HttpServlet.service(HttpServlet.java:103) at com.caucho.server.http.FilterChainServlet.doFilter(FilterChainServlet.java:96) at com.caucho.http.security.SecurityFilter.doFilter(SecurityFilter.java:115) at com.caucho.server.http.FilterChainFilter.doFilter(FilterChainFilter.java:88) at com.caucho.server.http.Invocation.service(Invocation.java:315) at com.caucho.server.http.CacheInvocation.service(CacheInvocation.java:135) at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:246) at com.caucho.server.http.HttpRequest.handleConnection(HttpRequest.java:164) at com.caucho.server.TcpConnection.run(TcpConnection.java:139) at java.lang.Thread.run(Thread.java:536) Caused by: java.lang.NullPointerException at org.apache.struts.validator.FieldChecks.validateRequiredIf(FieldChecks.java:200) ... 23 more My config is good: form name=archiveRestoreForm field property=archive depends=requiredif arg0 key=archiveRestoreForm.archiveFile/ var var-namefield[0]/var-name var-valueevent/var-value /var var var-namefield-test[0]/var-name var-valueNOTNULL/var-value /var /field /form If I switch the rule to required all is well. Any help is much appreciated. Greg Hess Software Engineer Wrapped Apps Corporation 275 Michael Cowpland Dr. Suite 201 Ottawa, Ontario K2M 2G2 Tel: (613) 591 -7552 Fax: (613) 591-0523 1 (877) 388-6742 www.wrappedapps.com http://www.wrappedapps.com
RE: [OT] JSP code formatting/indentation
JSP code editors/beautifiers and integration into eclipse Editor plug-in in eclipse for better viewing and editing of JSP and xml files. You can download from http://gd.tuwien.ac.at/opsys/linux/sf/subcat/cli/solareclipse/ (net.sf.solareclipse.jsp.ui_0.4.0) Also http://www.trita.com/features/jsp-beautifier.jsp We can integrate this with eclipse as described in http://www.trita.com/integrations/eclipse.jsp hope this help.. -Ram -Original Message- From: Laura Finlay [mailto:[EMAIL PROTECTED] Sent: Monday, October 27, 2003 3:28 PM To: Struts Users Mailing List Subject: RE:[OT] JSP code formatting/indentation --- Nail, Evan Burke [EMAIL PROTECTED] wrote: The only ones I have used come with the IDEs, although I'll bet if you google you'll find a free, freestanding one. NetBeans has a very easy to use one in it's IDE. I've used NetBeans, but it does not have the reformat feature that's available when editing Java code. This means I have to indent my JSP code manually, instead of having the IDE clean it up for me. Eclipse has one in its 3.x Milestone 3 version ( maybe earlier, not sure). I haven't used it much, so I'm not sure how well it performs. I've also tried Eclipse, but it also does not have a reformat capability for JSP code. L. __ Do you Yahoo!? Exclusive Video Premiere - Britney Spears http://launch.yahoo.com/promos/britneyspears/ - 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]
RE: Role based action
Thank you Mike I would explore it meantime if anyone of this forum hv any better idea pls let me know. tnx -Ram -Original Message- From: Mike Duffy [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 21, 2003 10:21 PM To: Struts Users Mailing List Subject: RE: Role based action SecurityFilter works great, without those annoying container managed security limitations! http://securityfilter.sourceforge.net/ SecurityFilter is a Java Servlet Filter that mimics container managed security. It looks just like container managed security to your app, as you can call request.getRemoteUser(), request.isUserInRole(), and request.getUserPrincipal() and get valid responses. The Security Filter configuration file follows the web.xml standard, which makes it easy to switch to Security Filter from container managed security, or switch back as your requirements or deployment environment details change. --- [EMAIL PROTECTED] wrote: Hi That is what we plan to do with the tiles library. Actually in our case some of the tabs in the same JSP won't appear for all uses. Mohan -Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 21, 2003 4:52 PM To: Struts Users Mailing List Subject: Re: Role based action On 10/21/2003 07:51 PM Ramadoss Chinnakuzhandai wrote: Hi, I need to load some jsp pages based on different level of access control who are accessing the site. for eg for userA I need to show some pages while userB can only view/access few pages. Thanks in advance, -Ram - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Hi Ram, you can set that up using container-managed security and specifying the roles that are returned by your realm for each action mapping. Adam -- struts 1.1 + tomcat 5.0.12 + java 1.4.2 Linux 2.4.20 RH9 - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.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]
RE: HAPPY DIWALI!
Great translation Shishir. -Ram -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 22, 2003 9:49 AM To: [EMAIL PROTECTED] Subject: RE: HAPPY DIWALI! Hi All before people start cursing over the beautiful festival of Deepawali its something equivaltent of a X-Mas in western world. the name signifies a chain of lighted lamps ( which signifies the overcome of evil(dark) by good(light)) this explaination might be crude bah! but people can google for its meaning. here's line by line translation. Aapko Naye Saal me... --(to the one who reads it)In the Comming new Year Chandragupt Ki Shakti Power like Emperor ChandraGupt Meerabai Ki Bhakti Devotion like Meerabai ( a known saint for her devotion to lord Krishna) Ramchandra Ka Gyan Knowledge as possesed by Rama Karan Ka Daan Einstein Ki Buddhi Brains of Einstein Nobel Prize Ki Siddhi Achievement of winning a Nobel Prize Gandhi Ki Ahimsa India Ki Parampara Tradition of India Vajpayee Ki Maryada Nizaam Ki Sampada Wealth as Nizam ( a one of the wealthiest king in India) Michael Jordan Ki Salary A Salary equiating to that of Michael Jordan Abdul Kalam Ki Vocabulary Vocabulary like that of Abdul Kalam Bhagat Singh Ka Deshprem Love for Country as like Shaheed Bhagat Singh (a well known freedom fighter in India) Sweetheart Ka Amarprem Love of ur beloved Microsoft Ke Share Shares of M$ Rupiyo Ke Dher Enormous amount of (money) (all the below given names represent well known figures in indian business or sports or bollywood ) Tata Ke Senses Sense like TATA Ambani Ke Licenses Licenses like Reliance ( Ambani) Birla Ka Bangla A lavish house of BIRLA Daler Ka Bhangra Dance like Daler Mehendi ( Bhangra is a type of Dance) Amitabh Ki Style a Style of Amitabh Bacchan Madhuri Ki Smile a smile of a well known Madhuri Dixit Shahrukh Ki Personality a personality of Shahrukh khan Aishwarya Ki Popularity a popularity equivalent to that of Ms World Aishwarya Rai Worldtour Ka Ticket a ticket for the tour of whole World Tendulkar Ka Wicket a wicket of Sachin Tendulkar ( if u be a cricket bowler ) Administrator Ke Passwords Administrators Passwords Jokes Ke Forwards Forward jokes Mercedez Ki Car Car from Mercedez Diamond Ka Haar a Diamond Necklace Aur Logon Ka Dher Saraa Pyar Prapt Ho... And lots and lots of Love from people around u thanks and regards Shishir Visit our website at http://www.ubs.com This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. This message is provided for informational purposes and should not be construed as a solicitation or offer to buy or sell any securities or related financial instruments. - 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]
RE: Role based action
Hi Mike, The Security Filter configuration file follows the web.xml standard, which makes it easy to switch to Security Filter from container managed security, or switch back as your requirements or deployment environment details change. Could u pls elaborate how it validates a user against access level...is there any file where we specify the user level and access control if so what is that file could u pls drop light on it. -tnx Ram -Original Message- From: Mike Duffy [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 21, 2003 10:21 PM To: Struts Users Mailing List Subject: RE: Role based action SecurityFilter works great, without those annoying container managed security limitations! http://securityfilter.sourceforge.net/ SecurityFilter is a Java Servlet Filter that mimics container managed security. It looks just like container managed security to your app, as you can call request.getRemoteUser(), request.isUserInRole(), and request.getUserPrincipal() and get valid responses. The Security Filter configuration file follows the web.xml standard, which makes it easy to switch to Security Filter from container managed security, or switch back as your requirements or deployment environment details change. --- [EMAIL PROTECTED] wrote: Hi That is what we plan to do with the tiles library. Actually in our case some of the tabs in the same JSP won't appear for all uses. Mohan -Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 21, 2003 4:52 PM To: Struts Users Mailing List Subject: Re: Role based action On 10/21/2003 07:51 PM Ramadoss Chinnakuzhandai wrote: Hi, I need to load some jsp pages based on different level of access control who are accessing the site. for eg for userA I need to show some pages while userB can only view/access few pages. Thanks in advance, -Ram - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Hi Ram, you can set that up using container-managed security and specifying the roles that are returned by your realm for each action mapping. Adam -- struts 1.1 + tomcat 5.0.12 + java 1.4.2 Linux 2.4.20 RH9 - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.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]
User Authentication implemented in Struts
apologize for repeating my question againI'm newbie to Struts and hv basic doubt in security level implemented using Struts framework. we are aware that in normal J2EE application we are authenticating user based on user access level specified in web-app in web.xml(web container) My Questions are 1.Are we following the same process of authenticating a user against his/her access level as that of the above...? if not pls explain how you are authentication a user in your struts-based application. 2.If yes to the above question Is there someother way of authenticating a user available in Sturts? If so pls explain how you are authentication a user? tnx in advance. Regards, -Ram - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Role based action
Hi, I need to load some jsp pages based on different level of access control who are accessing the site. for eg for userA I need to show some pages while userB can only view/access few pages. Thanks in advance, -Ram - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Access control in Struts
Hi, I'm new to struts,I need to load some jsp pages based on different level of access control who are accessing the site. for eg for userA I need to show some pages while userB can only view/access few pages. Thanks in advance, -Ram -Original Message- From: Barry Volpe [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 21, 2003 1:48 PM To: Struts Users Mailing List Subject: Re: DynaForms and java.util.ArrayList Tim, Thanks. The error is gone. Should have realized I couldn't initialize array with initial=. Barry - Original Message - From: Chen, Gin [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Tuesday, October 21, 2003 10:42 AM Subject: RE: DynaForms and java.util.ArrayList Remove initial= Then in your jsp do: c:forEach var=blah items=${myFormBean.map.city} c:out value=${blah}/ /c:forEach -Tim -Original Message- From: Barry Volpe [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 21, 2003 1:14 PM To: Struts Users Mailing List Subject: DynaForms and java.util.ArrayList When I define this in my struts-config: form-property name=city type=java.util.ArrayList initial=/ I get this error: [ServletException in:/tiles/locationselection.jsp] Exception creating bean of class org.apache.struts.validator.DynaValidatorForm: {1}' Can I access city using JSTL in my jsp. What should I put in my JSP. What am I missing? Thanks, Barry - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Access control in Struts
I just wanted to know how to achieve it using Struts. Any clue? -Ram -Original Message- From: Ramadoss Chinnakuzhandai Sent: Tuesday, October 21, 2003 1:54 PM To: Struts Users Mailing List Subject: Access control in Struts Hi, I'm new to struts,I need to load some jsp pages based on different level of access control who are accessing the site. for eg for userA I need to show some pages while userB can only view/access few pages. Thanks in advance, -Ram -Original Message- From: Barry Volpe [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 21, 2003 1:48 PM To: Struts Users Mailing List Subject: Re: DynaForms and java.util.ArrayList Tim, Thanks. The error is gone. Should have realized I couldn't initialize array with initial=. Barry - Original Message - From: Chen, Gin [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Tuesday, October 21, 2003 10:42 AM Subject: RE: DynaForms and java.util.ArrayList Remove initial= Then in your jsp do: c:forEach var=blah items=${myFormBean.map.city} c:out value=${blah}/ /c:forEach -Tim -Original Message- From: Barry Volpe [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 21, 2003 1:14 PM To: Struts Users Mailing List Subject: DynaForms and java.util.ArrayList When I define this in my struts-config: form-property name=city type=java.util.ArrayList initial=/ I get this error: [ServletException in:/tiles/locationselection.jsp] Exception creating bean of class org.apache.struts.validator.DynaValidatorForm: {1}' Can I access city using JSTL in my jsp. What should I put in my JSP. What am I missing? Thanks, Barry - 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] - 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]
RE: Role based action
-Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 21, 2003 4:52 PM To: Struts Users Mailing List Subject: Re: Role based action On 10/21/2003 07:51 PM Ramadoss Chinnakuzhandai wrote: Hi, I need to load some jsp pages based on different level of access control who are accessing the site. for eg for userA I need to show some pages while userB can only view/access few pages. Thanks in advance, -Ram - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Hi Ram, you can set that up using container-managed security and specifying the roles that are returned by your realm for each action mapping. Adam -- struts 1.1 + tomcat 5.0.12 + java 1.4.2 Linux 2.4.20 RH9 - 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]