struts2 freemarker.template.TemplateNotFoundException

2018-04-15 Thread john lee
Please help I use struts2 to handle file upload, i already configured the following a. /WEB-INF/lib    contains     commons-fileupload-1.3.2.jar    commons-io-2.2.jar      b. /WEB-INF/classes/struts.xml            c. /var/apache-tomcat-7.0.34/webapps/mytest/WEB-INF/classes/dream     mytest    app

Re: struts2 +rest service problem

2017-07-19 Thread john lee
I did add conventions plug-in,  From: Ken McWilliams To: Struts Users Mailing List ; john lee Sent: Wednesday, July 19, 2017 4:52 PM Subject: Re: struts2 +rest service problem As mentioned in the other thread have you added the conventions plug-in? The indicated error indicates

Re: struts2 with rest service

2017-07-19 Thread john lee
after i append, the problem is gone, but when i did test, have error message generated. please see the thread. thanks in advance. john From: Ken McWilliams To: Struts Users Mailing List ; john lee Sent: Wednesday, July 19, 2017 4:11 PM Subject: Re: struts2 with rest service

struts2 +rest service problem

2017-07-19 Thread john lee
Please help for the struts2 + rest service  http://beta-dev/ecommerce/employee.xml return the following error report Struts Problem Report Struts has detected an unhandled exception: | Messages: | - com.thoughtworks.xstream.XStream - com/thoughtworks/xstream/XStream - java.lang.

struts2 with rest service

2017-07-19 Thread john lee
To whom it may concern,  my struts+spring+hibernate+mysql works fine, but try to embed the rest service in the application and failed to start. my adding/change is the following WEB-INF/lib  (add the following jar)    json-lib-2.3-jdk15.jar     struts2-rest-plugin-2.3.32.jar WEB-INF/classes/strut

struts2 json return to front

2014-10-28 Thread john lee
  After click the button,     the value of partid is passed to action class, and see the output '123' from the console.    the assigned value of dummymesg is displayed on the console as well.  but the dummymesg never return to front javascript.    looks like success or error function call never

Re: [struts-user] Re: struts2 json return null if involve hibernate or spring

2014-10-27 Thread john lee
ubject: RE: [struts-user] Re: struts2 json return null if involve hibernate or spring > -Original Message- > From: john lee > Sent: Monday, October 27, 2014 9:06 > > the delete itself has no problem if called it directly.  (please try not to top post) >      From: Lukasz

Re: struts2 json return null if involve hibernate or spring

2014-10-27 Thread john lee
the delete itself has no problem if called it directly.  From: Lukasz Lenart To: Struts Users Mailing List Sent: Monday, October 27, 2014 2:46 AM Subject: Re: struts2 json return null if involve hibernate or spring 2014-10-27 3:55 GMT+01:00 john lee : >  is hibernate

struts2 json return null if involve hibernate or spring

2014-10-26 Thread john lee
is hibernate dao manipulation could affect struts 2 json return? or spring framework could affect struts2 json return? my program's struts2 json execution is success if not involve dao or spring call. but if involve hibernate/spring/dao manipulation, then json return is null and not returned. st

Re: s:textfield jquery can not change placeholder

2014-07-25 Thread john lee
Thanks Chris.   It is solved after apply ID     On Friday, July 25, 2014 3:04 PM, Chris Pratt wrote: Make sure you set the "id" attribute on the s:textfield if you're going to refer to it that way using jQuery.   (*Chris*) On Fri, Jul 25, 2014 at 12:30 PM, john lee wr

s:textfield jquery can not change placeholder

2014-07-25 Thread john lee
  I can use jquery to change html input tag's placeholder for no problem, but no matter what method I use, impossible for me to change   s:textfield's placeholder. I tried $('#partid').attr('placeholder','XXX');     and     $('#partid').val('XXX');     and $('#partid').text('XXX');   s:t

Re: struts2 s:url call action method

2014-06-27 Thread john lee
Hi Dave, How to verify ? thanks in advance John On Friday, June 27, 2014 4:04 PM, Dave Newton wrote: Do you have dynamic method invocation turned on? On Fri, Jun 27, 2014 at 4:34 PM, john lee wrote: > > > I try to use s:url to call action's method, but not works,

struts2 s:url call action method

2014-06-27 Thread john lee
I try to use s:url to call action's method, but not works, please advise from the executed link, it shows http://omega3.neucoinc.com/ecommerce/CartAction.action!additem?partid=1508, but logfile no method shows executed. i executed/tested manually by  http://localhost/CartAction.action!add?pa

struts2 jquery sj:tabbedpanel remoteurl

2013-11-19 Thread john lee
I use sturs2 jquery  sj:tabbedpanel with remoteurl feature, it works fine. But, the remote url is called when did initiala load, how can I disable initial load for remote url? i just want to load(tab1 with remote URL) when i click it. thanks in advance John *

Struts 2, session, s:iterator s:if not working, please help (this is revised)

2013-11-18 Thread john lee
from the following output,    we can tell sell_price=36.97, display_price=1 why    none of test statement works ? please advise, thanks in advance john   Class Part { float sell_price;     int display_price;     ./*..get set here */ Act

s:if iterator session problem

2013-11-18 Thread john lee
  from the following output,    we can tell sell_price=36.97, display_price=1   why    none of test statement works ?     please advise, thanks in advance   john       Class Part { float sell_price;     int display_price;     ./*..get set here *

Re: sj:tabbedpanel javascript

2013-08-09 Thread john lee
the attribute selectedTab of sj:tabbedpanel's attrubte "selectedTab", but not working.   >        >        >        >        Accessories here >        Replacement Parts here >        Cross Reference here >    Please advise   thanks again   john     

Re: sj:tabbedpanel javascript

2013-08-09 Thread john lee
thanks for reply,   i did view source before ask question here, but sj:tabbedpanel convert into jquery, even view source, still not match.   john From: Chris Pratt To: Struts Users Mailing List ; john lee Sent: Friday, August 9, 2013 12:43 PM Subject: Re

sj:tabbedpanel javascript

2013-08-09 Thread john lee
  try to using javascript to set sj:tabbedpanel's attribute, but not working   what is the correct format for access attribute sj:tabbedpanel's atrtribute in javascript?   thanks in advance   John         function setpartmoreinfo(id) {     $("#Cross").tabs( "option", "partmoreinfo_id", id);  

Re: sj:a json return result question

2013-08-06 Thread john lee
Dave,   Thanks your very much, it works very well   brw, the book you wrote/published, i had it.   john     From: Dave Newton To: Struts Users Mailing List ; john lee Sent: Tuesday, August 6, 2013 11:26 AM Subject: Re: sj:a json return result question

sj:a json return result question

2013-08-06 Thread john lee
  Question for Sjquery's   sj:a  tag as the following       TOTAL # PARTS        public class ReportkeyAction extends extends ActionSupport {   private int sum;   public int getSum() { return sum; }   public void setSum(int sum) { this.sum = sum; }   public String execute() throws

s:select detail question for preselected

2013-08-02 Thread john lee
for following jsp, i can retrieve the data from KeywordcategoryAction for no problem,     the contents of retrieved list is   Motor   Electrical   Temperature       but, the default value(why) as defined from KeywordcategoryAction did not wor

sj:select default value not load

2013-08-02 Thread john lee
  For struts2 sj:select tag from google         for above jsp file, i can retrieve the data from KeywordcategoryAction for no problem   but, the default value(why) as defined from KeywordcategoryAction did not working at all   I try to change from value="why" to valu

Re: s:property display INTERGER

2013-07-29 Thread john lee
SSCCE ? what u refer to? From: Dave Newton To: john lee Cc: Struts Users Mailing List Sent: Monday, July 29, 2013 10:04 PM Subject: Re: s:property display INTERGER Please put an SSCCE on github/equivalent; I'm very skeptical. On Mon, Jul 29,

Re: s:property display INTERGER

2013-07-29 Thread john lee
No, inside the action, before the return, I do      detailpart.getQty().intValue(), return is 1, /* have value inside */   thanks for reply, any other thoughts?   john From: Dave Newton To: Struts Users Mailing List ; john lee Sent: Monday, July 29, 2013 9

s:property display INTERGER

2013-07-29 Thread john lee
  I have class Part     class Part {   String pid,   Integer  qty; }   how can I display object/convert inside JSP?   /* if define/set (Part detailpart)  before return */       /* this is no problem */   how about qty?   I tried the following, but show null      I tried the following, but

struts2 action return to invoker jsp, but jsp value not change

2013-07-27 Thread john lee
  I have an jsp, called Part.jsp       ..        in the testAction    . have setter/geter method for qty      ...    qty=99 /* before return force qty=99 */    ...    return "input"   in struts.xml     Part.jsp      after back to same page

s:interator s:div not working

2013-07-21 Thread john lee
            works fine, but I need to use s:div inside the s:iterator, the nightmare happen   first of all, after I did research, in order to let DIV works inside s:iterator, have to use S:DIV   second,  I try to use inside S:DIV, value not trieved, and display:none not work at all   functio

Re: s:url pass arraylist object possible?

2013-07-19 Thread john lee
x27;d need to use the same indexed format as form fields-all you can send from the browser are strings. On Jul 19, 2013 5:11 PM, "john lee" wrote: > > > I have no problem to iterator the arrarylist > > > >  < > > > but if i want to pass ar

s:url pass arraylist object possible?

2013-07-19 Thread john lee
I have no problem to iterator the arrarylist  < but if i want to pass arraylist parts back to action, can i do following?                                                 Keyword Process thanks in advance john

struts2 jquery plugin

2013-07-12 Thread john lee
the following sample is from Struts2/Jquery plugin sample, and works perfect in JSP,  in Action private Map accordion; public String execute() throws Exception { accordion = new HashMap(); accordion.put("Section 1", "sample 1"); accordion.put("Section 2", "sample 2"); accordion.put("Section

Re: struts s:property

2013-07-10 Thread john lee
thanks, it works the format is  From: Dave Newton To: Struts Users Mailing List Sent: Wednesday, July 10, 2013 10:17 PM Subject: Re: struts s:property Escape it. Check out the tag Docs. On Jul 10, 2013 11:16 PM, "john lee" wrote: >

struts s:property

2013-07-10 Thread john lee
in my application, the following newline charactor never happen.   how to let above take effect? thanks john

struts2 jquery s:div resize feature

2013-07-09 Thread john lee
I wrote an action class to return an image, and display perfect. http://localhost/ecommerce/ImageAction?imageId=darksouls.jpg but, when i use struts 2' jquery plugin div resize sample(just copy& paste their demo code, but only change action at following.                 It return/displ

Re: class has set member, how s:iterator to access it?

2013-07-02 Thread john lee
I use Lucas's suggestion, but still can not get value out please advise how to get list member of an class from stack. thanks in advance john                                     From: john lee To: struts support Sent: Friday, June 28, 2013 11:

class has set member, how s:iterator to access it?

2013-06-28 Thread john lee
i have an the following 2 class Part is just parts itself Partxref is the accesary(component) of part.     class Part {                     String  manufacture;                     String  pid;                     private Set partxrefs=new HashSet();                     /* set, get .here */  

how to acess sublist of list from s:iterator

2013-06-28 Thread john lee
i have an the following 2 class Part is just parts itself Partxref is the accesary(component) of part.     class Part {                     String  manufacture;                     String  pid;                     private Set partxrefs=new HashSet();                     /* set, get .here */

OGNL s:interator index problem

2013-06-26 Thread john lee
an class     class SearchInfo {    String input_part;    String search_part;    int current_page=0;    int total_find=0;    int total_pages=0;    int size=20;    /* set, get  skip */   } after search,    session.put("searchinfo", searchinfo); at j

Re: multiple form s:fielderror mesg cross over, how to solve?

2013-06-19 Thread john lee
Thanks Chester,     the  fieldName attribute is good remind,  that is what i am looking for. From: Chester Twomey To: Struts Users Mailing List ; john lee Sent: Wednesday, June 19, 2013 9:02 AM Subject: Re: multiple form s:fielderror mesg cross over, how to

multiple form s:fielderror mesg cross over, how to solve?

2013-06-18 Thread john lee
i need to have multiple on single web page, (at top panel, our site always provide parts search box/) (at middle panel,  could have other form such as checkout section, login section, etc) when  any single form's validation triggered, then and displayed at all form's textfields  place,  ho

multiple s:form cause validation not working, pls help

2013-06-14 Thread john lee
 i need to have multiple on single web page, when  any single form's validation triggered, then and displayed at multiple form's textfields  place,  how to solve it? or that is struts 2 bug? please help thanks in advance john

1 page multiple form's fields validation problem

2013-06-14 Thread john lee
for struts 2,      1 html page have 2 forms at different panel, each form have its own textfield for input and submit button as well. the problem:     when 1 form's textfield validation trigger, but error message display at both form's texfield place.    in other words,                 can n

Re: how interceptor knowing invoke's class name?

2013-06-09 Thread john lee
tks chris, that is what i want to know From: Chris Pratt To: Struts Users Mailing List ; john lee Sent: Sunday, June 9, 2013 9:55 PM Subject: Re: how interceptor knowing invoke's class name? The interceptor is called by Struts, not by the Action.

how interceptor knowing invoke's class name?

2013-06-09 Thread john lee
in struts2 , defined an interceptor, it triggered by Action, my question is   inside the interceptor class, what is the function call that can tell caller's name, because that interceptor could be triggered by different Action, we need to log the caller's name, but how? thanks  john

struts2 s:button

2013-05-28 Thread john lee
<%@ taglib prefix="s" uri="/struts-tags"%>                                 but when test, in the logfile, giving the error SEVERE: Servlet.service() for servlet jsp threw exception org.apache.jasper.JasperException: /PageMenu.jsp (line: 7, column: 5) No tag "button" defined in tag lib

Re: struts2 Intercepter Actioncontext

2013-05-24 Thread john lee
efore proceeding too much further-it'll save some time in the long run. Also note that it's often faster to just try something. Dave On May 24, 2013 3:17 PM, "john lee" wrote: > > > In an cutomized Struts2 Intercepter class, > >    public class SecurityVerifySessionI

struts2 Intercepter Actioncontext

2013-05-24 Thread john lee
In an cutomized Struts2 Intercepter class,      public class SecurityVerifySessionIntercepter extends AbstractInterceptor           ActionContext actionContext = invocation.getInvocationContext();           HttpServletRequest request= (HttpServletRequest) actionContext.get(StrutsStatics.HTTP_RE

Re: struts 2 Intercepter ServletRequestAware

2013-05-23 Thread john lee
in the interceptor,  in order to access ServletActionContext, in the interceptor class, which interface should be implement? tks in advance john From: Chris Pratt To: Struts Users Mailing List ; john lee Sent: Thursday, May 23, 2013 6:25 PM Subject: Re

Re: struts 2 Intercepter ServletRequestAware

2013-05-23 Thread john lee
because if cookie exist, then interceptor can catch it and assign the session object if user open the new webpage. From: "jlm...@gmail.com" To: Struts Users Mailing List ; john lee Sent: Thursday, May 23, 2013 6:25 PM Subject: Re: struts 2 I

Re: struts 2 Intercepter ServletRequestAware

2013-05-23 Thread john lee
thanks, so, how can I access Cookie in the interceptor? as my knowledge, to access cookie, i have to get Servlet first, then get Request object, then access Cookie.. please advise  john From: Chris Pratt To: Struts Users Mailing List ; john lee Sent

Re: struts 2 Intercepter ServletRequestAware

2013-05-23 Thread john lee
, not interceptors. On May 23, 2013 5:51 PM, "john lee" wrote: > it is interceptor, the following is struts.xml, (i just not include last > time) > > >  > >        >              class

Re: struts 2 Intercepter ServletRequestAware

2013-05-23 Thread john lee
                            From: Dave Newton To: Struts Users Mailing List Sent: Thursday, May 23, 2013 4:31 PM Subject: Re: struts 2 Intercepter ServletRequestAware That interface is for actions, not interceptors. On May 23, 2013 5:30 PM, "john lee" wrote:

struts 2 Intercepter ServletRequestAware

2013-05-23 Thread john lee
Please advise the following for struts2, for an login action, an predefined interceptor is triggered for checking cookie , the code is the following for  SecurityVerifySessionIntercepter, i implement the ServletRequestAware, but get null catached. my question is: for intercepter, Request obje

Re: Cookie in struts2

2013-05-15 Thread john lee
thanks, in my program, after i import it, the compile error is gone. From: Chris Pratt To: Struts Users Mailing List Cc: john lee Sent: Wednesday, May 15, 2013 4:54 PM Subject: Re: Cookie in struts2 Ah, my bad, you are correct, Dave. John, like Dave

return Action.LoginAction;

2013-05-15 Thread john lee
for struts 2,      i follow the example from the web to use 'Action.x'  (xxx is actual action name), but the compile report the following error cannot find symbol symbol  : variable Action location: class SecurityVerifySessionIntercepter   return Action.LoginAction;   which librar

Cookie in struts2

2013-05-15 Thread john lee
I have no difficulty to handle cookie in struts 1, but have lots of error in struts 2 i have the following program public class SecurityVerifySessionIntercepter extends AbstractInterceptor implements ServletResponseAware, ServletRequestAware { Map session= ActionContext.getContext().ge

Re: struts 2 ajax choice

2013-05-13 Thread john lee
Dave, so, as your experience, which one u recommend to use? JSON or S2Jquery? thanks in advance john  From: Dave Newton To: Struts Users Mailing List Cc: john lee Sent: Monday, May 13, 2013 5:03 PM Subject: Re: struts 2 ajax choice On Mon

Re: struts 2 ajax choice

2013-05-13 Thread john lee
So, JSON is the only choice ? thanks john From: Paul Benedict To: Struts Users Mailing List ; john lee Sent: Monday, May 13, 2013 4:43 PM Subject: Re: struts 2 ajax choice Please note the Dojo plugin is deprecated. On Mon, May 13, 2013 at 4:42 PM

struts 2 ajax choice

2013-05-13 Thread john lee
from the document, Struts 2 support both DoJo plugin and JSON plugin, which one is easy to plugin and use? which one is more powerful? thanks in advance john

struts 2 / sitemesh/

2013-05-09 Thread john lee
  alpha:/var/apache-tomcat-7.0.34/webapps/ecommerce # cat partsearchinput.jsp <%@ taglib prefix="s" uri="/struts-tags"%> the above code works, and verified by http://localhost/ecommerce/partsearchinput.jsp but, after i start to use sitemesh, it has the problem as the following The Strut

struts 2 session question

2013-05-08 Thread john lee
  for stuts 1, to get session, via the following     session=request.getSession();   session.setAttribute("PERSON", person);    /* person is object name */   for struts 2, to get session, via the following     Map session=ActionContext.getContext().getSession();   session.put("PERSO

struts 2 presentation layer

2013-03-11 Thread john lee
struts 2 presentation layer support JSP, freemaker  as i know. does it support PHP? what is the presentation layer it support? thanks john From: Martin Gainty To: Struts Users Mailing List Sent: Monday, March 11, 2013 5:33 AM Subject: RE: struts 2 star

struts 2 start problem struts2-gxp-plugin-2.3.7.jar

2013-03-10 Thread john lee
i try to start tomcat, but giving the following error Unable to load configuration... struts2-gxp-plugin-2.3.7.jar... in the CLASSPTH, i even did not load struts2-gxp-plugin-2.3.7.jar at all, why this happen? please advise thanks in advance john SEVERE: Dispatcher initialization failed

struts 2 session share

2013-03-10 Thread john lee
after user login our e-commerce site successfuly, he was granted an session. his shopping cart is saved into an session object. sometimes, customer need help for his shopping cart, in order to do that, we need to access his cart/session object. how can we do session share in struts2 ? in othe

Re: struts 2 validation if use with spring

2013-03-08 Thread john lee
? is this the only way to lett struts2/spring validation works? thanks so much in advance john From: Lukasz Lenart To: Struts Users Mailing List ; john lee Sent: Friday, March 8, 2013 7:27 AM Subject: Re: struts 2 validation if use with spring 2013/3/

Re: struts 2 validation if use with spring

2013-03-08 Thread john lee
2013/3/8 john lee : >                  As specified in the docs [1][2], validation file name must match schema: class-name-validation.xml -> LoginAction-signin-validation.xml [1] http://struts.apache.org/development/2.x/docs/validation.html#Validation-DefiningValidationRules [2]

struts 2 validation if use with spring

2013-03-07 Thread john lee
Problem   I use struts2/spring 3 as integration, and need to use struts2 validation.xml as well, Basically, the action name in the login.jsp/struts.xml  is pseudo class name, but is implemented in the applicationContext.xml In order to let validation.xml works, I defined  all the possible XX

struts 2 validation error

2013-03-06 Thread john lee
please advise thanks in advance john ** error: Template processing error: "Method public java.util.List org.apache.struts2.components.Form.getValidators(java.lang.String) threw an exception when invok

Struts 2 -> java.lang.ClassNotFoundException

2013-03-05 Thread john lee
I use struts at webserver, and create proxy action , that proxy action forward to spring, but when executed result is the following   please advise   thanks in advance   john   [CODE] Struts Problem Report Struts has detected an unhandled exception: Messages

struts2/spring Parameter is on the excludeParams list of patterns!

2013-03-03 Thread john lee
The input    http://localhost:8080/ecommerce/login.jsp The Output     login is succcese Sun Mar 03 01:01:16 CST 2013 problem    login.jsp->loginAction->struts.xml->applicationContext.xml->loginAction->neuco.AcctAction->inject   acctsmgr-….->     but  in the AcctActio

Re: struts2+hiberate org.hibernate.cfg.Configuration

2012-12-14 Thread john lee
tks for reply.   it is at local, no proxy, no firwall   also, i just change to SYSTEM for give an try, but also receive same error message.     From: Jeff Black To: Struts Users Mailing List ; john lee Sent: Friday, December 14, 2012 2:44 PM Subject: Re

struts2+hiberate org.hibernate.cfg.Configuration

2012-12-14 Thread john lee
i am new to struts2+hiberate,  i can successfuly make struts2 sample project working, but not hiberate, i just make an simple test program, and compile is good, but when execute, the error is at following, the project tree is also include   please help, thanks in advance           alpha:/var/apa

struts 1.x webservice question

2010-06-16 Thread john lee
how can i implement webservice inside the struts 1.x application?   if i need to implement webservice server, which library need to download or use?   if i need to implment websrvice client only, which libary need to call ?   should i download apache AXIS as requirement ?   tks in advance   john

struts 2, how to trigger interceptor after action's execute() ?

2010-04-03 Thread john lee
  ***        try       /success.jsp     try 2   the above code triggers interceptor before class try's execute(), and the purpose of intercep

Re: struts 2 - framework question

2010-03-08 Thread john lee
; You will need 2 action definitions, one in each package, calling the >> same java action and setting the storeId parameter like said before. >> >> Then, in each JSP for each store, you call the correct struts action. >> >> Is it clear for you ? >> >> Ci

Re: struts 2 - framework question

2010-03-08 Thread john lee
ch 8, 2010, 6:51 AM If each company will have their own domain name this will solve itself. On Sat, Mar 6, 2010 at 10:18 PM, john lee wrote: > > my company is distributor, we plan to provide platform for our > customer(different store) to sell their product to indivual customers. &g

Re: struts 2 - framework question

2010-03-08 Thread john lee
: struts 2 - framework question To: "john lee" Cc: "Struts Users Mailing List" Date: Sunday, March 7, 2010, 8:33 PM John, I don't have immediate code that I can copy paste, but I can explain a bit more the package solution. You will have to declare 2 packages, one w

Re: struts 2 - framework question

2010-03-07 Thread john lee
namespaces at the package level to distinguish your stores. > You can also do that in a rest way, like http://www.xyz.com/store/1. > > Cimballi > > > On Sat, Mar 6, 2010 at 11:18 PM, john lee wrote: >> >> my company is distributor, we plan to provide platform for our

struts 2 - framework question

2010-03-06 Thread john lee
my company is distributor, we plan to provide platform for our customer(different store) to sell their product to indivual customers.   http://www.xyz.om/store1 http://www.xyz.com/store2 http://www.xyz.com/store3 ... http://www.xyz.com/storeN   (store1...storeN) list our(distributor)'s product to

struts bug? session object bug? pls help

2009-12-12 Thread john lee
I have the same serious problem that is similar to an old thread http://marc.info/?l=struts-user&m=121234554714110&w=2   I use session object to manage user data for my company's e-commerce site, from time to time,specially when have high web access traffic, the session data could overlap, and fr

struts bug, session object bug? pls help

2009-12-12 Thread john lee
  I have the same serious problem that is similar to an old thread http://marc.info/?l=struts-user&m=121234554714110&w=2   I use session object to manage user data for my company's e-commerce site, from time to time,specially when have high web access traffic, the session data could overlap, and

Re: struts 1.x, how to create package ?

2009-07-27 Thread john lee
2009, 4:07 PM http://www.google.com/search?q=how+to+make+a+jar musachy On Mon, Jul 27, 2009 at 1:45 PM, john lee wrote: > > i build online store by struts 1.x, and working fine, and all the classes > file under > > /var/apache-tomcat-6.0.16/webapps/store/WEB-INF/clas

struts 1.x, how to create packge and jar file ...?

2009-07-27 Thread john lee
 I build online store by struts 1.x, and working fine, and all the classes file under   /var/apache-tomcat-6.0.16/webapps/storeX/WEB-INF/classes/packageX/cart/*.class /mail/*.class   

struts 1.x, how to create package ?

2009-07-27 Thread john lee
  i build online store by struts 1.x, and working fine, and all the classes file under   /var/apache-tomcat-6.0.16/webapps/store/WEB-INF/classes/packageX/cart/*.class /mail/*.class   

Re: reference variable in struts 1 and 2

2009-04-14 Thread john lee
Yes, i need to further do variable processing at scriptlet(jsp) page, the reason is to do different kind of summary etc...   but how? can i still use Context...same as i did in Struct 1.X's example?   tks   john   --- On Tue, 4/14/09, Dave Newton wrote: From: Dave Newton Subject: Re: referen

RE: reference variable in struts 1 and 2

2009-04-14 Thread john lee
2009, 4:02 PM http://struts.apache.org/2.1.6/docs/set.html -Original Message- From: john lee [mailto:sh_thorn_b...@yahoo.com] Sent: Tuesday, April 14, 2009 4:52 PM To: user@struts.apache.org Subject: reference variable in struts 1 and 2 in struts 1   if need to get variable from ac

reference variable in struts 1 and 2

2009-04-14 Thread john lee
in struts 1   if need to get variable from action, and do further processing, could do following    <%   qty_available=((CartForm)pageContext.findAttribute("plist")).getQty_available();   ...    %>   but in struts 2    public class Cart {     int qty_available;  

RE: struts 2

2009-04-12 Thread john lee
tks for your feedback,   as your suggest/my understanding, the default struts2 package does not have equivalent wrote: From: Martin Gainty Subject: RE: struts 2 Date: Sunday, April 12, 2009, 8:59 AM IOC Container manages the location,creation and instantiation of framework bean http://st

struts 2

2009-04-11 Thread john lee
  in strut 1.X,    .       search result  not exist      but, in struts 2,    how can i use the same method to check

struts 2,

2009-04-11 Thread john lee
  in struts 2, try to do following:     a.    use beds; private ArrayList bedanalysis;     private String bed_id;         public String execute() throws Exception {     /* db initial, get session etc */   beds=service.Beds();  /* service is call

struts 2, implements Action / extend ActionSupport

2009-04-11 Thread john lee
    i am aware that in struts 2, when define an action, it could be      public class XXX implement Action    or    public class XXX extends ActionSupport   what is the difference b/w above two? in other words, in what kind of scenario, pick which one?   tks in advance   john 

RE:

2009-04-11 Thread john lee
s something like struts extensions. > > You also need to include this.. compressed="false" /> > > > http://struts.apache.org/2.1.6/docs/datetimepicker.html > > Rgds, > > Satya > > On Sat, Apr 11, 2009 at 11:34 AM, john lee wrote: > > > &g

Re:

2009-04-11 Thread john lee
  --- On Sat, 4/11/09, Dave Newton wrote: From: Dave Newton Subject: Re: Date: Saturday, April 11, 2009, 1:50 PM john lee wrote: > is display? You're using < S2.1 I assume? Are you using the tag as mentioned in the docs [1]? Dave [1] http://struts.apache.org/2.0.11/docs/datetime

user@struts.apache.org

2009-04-11 Thread john lee
  is but just display "calendar" only, nothing display on the right side   i tried the complex way, define action class    public  class DateBean  extends ActionSupport {       public String execute() throws Exception {   setTodayDate(new Date());   return SUCCESS;   }     private Date t

Re:

2009-04-11 Thread john lee
because i defined ArrayList ? what is the correct way to fetch value out as did   tks in advance again       --- On Sat, 4/11/09, Wes Wannemacher wrote: From: Wes Wannemacher Subject: Re: Date: Saturday, April 11, 2009, 11:53 AM Try to use "id" attribute instead of "var&q

Re:

2009-04-11 Thread john lee
tks for both of u try to help me       the above works, and print the value of bed_id   but, the following still not works       and running result complain the "var" tag   please advise, tks in advance   john --- On Fri, 4/10/09, Dave Newton wrote: From: Dave Newton Subject: Re

Re:

2009-04-09 Thread john lee
ut receive the same error,   please advise.   tks again   john --- On Fri, 4/10/09, Wes Wannemacher wrote: From: Wes Wannemacher Subject: Re: Cc: "Struts Users Mailing List" Date: Friday, April 10, 2009, 1:26 AM On Friday 10 April 2009 02:14:22 john lee wrote: > tks for your qu

Re:

2009-04-09 Thread john lee
list there. Second, when you are using the iterator and creating single checkboxes, you need to make the names unique. You are simply creating a new checkbox with the name "beds" over and over again. -Wes On Friday 10 April 2009 01:59:42 john lee wrote: > I defined an entity

user@struts.apache.org

2009-04-09 Thread john lee
  I defined an entity java.   public class Bed {   private String bed_id;   public String getBed_id() {return bed_id;}   public void setBed_id(String bed_id) { this.bed_id=bed_id; } }   in action file, i did the following,     public class Analysis_input extends ActionSupport { private ArrayL

what is the equivalent of method in struts 2 for retrieve data?

2009-04-08 Thread john lee
in struts 1, i saved the data into session   session.setAttribute(BeanNames.PARTS_LIST,partsList);   then, in the jsp file, retrieve the data by     what is the equivalent method in struts 2?   tks in advance   john

  1   2   >