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   

Re: struts2 +rest service problem

2017-07-19 Thread john lee
I did add conventions plug-in,  From: Ken McWilliams <ken.mcwilli...@gmail.com> To: Struts Users Mailing List <user@struts.apache.org>; john lee <sh_thorn_b...@yahoo.com> Sent: Wednesday, July 19, 2017 4:52 PM Subject: Re: struts2 +rest service problem As ment

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 <ken.mcwilli...@gmail.com> To: Struts Users Mailing List <user@struts.apache.org>; john lee <sh_thorn_b...@ya

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 -

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

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: struts2 json return null if involve hibernate or spring

2014-10-27 Thread john lee
:00 john lee sh_thorn_b...@yahoo.com.invalid:   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

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

2014-10-27 Thread john lee
...@pdinc.us To: 'Struts Users Mailing List' user@struts.apache.org Sent: Monday, October 27, 2014 8:20 AM Subject: 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

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.

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');  

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 thechrispr...@gmail.com 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

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 

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 davelnew...@gmail.com wrote: Do you have dynamic method invocation turned on? On Fri, Jun 27, 2014 at 4:34 PM, john lee sh_thorn_b...@yahoo.com.invalid wrote: I try to use s:url

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

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

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 */

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       script language=javascript   function setpartmoreinfo(id) {     $(#Cross).tabs( option,

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 thechrispr...@gmail.com To: Struts Users Mailing List user@struts.apache.org; john lee

Re: sj:tabbedpanel javascript

2013-08-09 Thread john lee
Reference here /div   /sj:tabbedpanel   Please advise   thanks again   john      From: Chris Pratt thechrispr...@gmail.com To: john lee sh_thorn_b...@yahoo.com Cc: Struts Users Mailing List user@struts.apache.org Sent: Friday, August 9, 2013 1:27 PM Subject

sj:a json return result question

2013-08-06 Thread john lee
  Question for Sjquery's   sj:a  tag as the following   s:url id=ajax value=ReportAction/     sj:a id=ajaxlink     href=%{ajax}     targets=result     TOTAL # PARTS      /sj:a div id=result s:property value=sum//div   public class ReportkeyAction

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 davelnew...@gmail.com To: Struts Users Mailing List user@struts.apache.org; john lee sh_thorn_b...@yahoo.com Sent: Tuesday, August 6

sj:select default value not load

2013-08-02 Thread john lee
  For struts2 sj:select tag from google   s:url id=remoteurl action=KeywordcategoryAction/     sj:select     href=%{remoteurl}     id=language    

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   s:url id=remoteurl action=KeywordcategoryAction/     sj:select   

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 */   s:property value=detailpart.pid/    /* this is no problem */   how about qty?   I tried the following, but show null

Re: s:property display INTERGER

2013-07-29 Thread john lee
; john lee sh_thorn_b...@yahoo.com Sent: Monday, July 29, 2013 9:59 PM Subject: Re: s:property display INTERGER If it's null, it's null. If there's a value, it will display. On Mon, Jul 29, 2013 at 10:46 PM, john lee sh_thorn_b...@yahoo.com wrote:   I have class Part     class Part

Re: s:property display INTERGER

2013-07-29 Thread john lee
SSCCE ? what u refer to? From: Dave Newton davelnew...@gmail.com To: john lee sh_thorn_b...@yahoo.com Cc: Struts Users Mailing List user@struts.apache.org Sent: Monday, July 29, 2013 10:04 PM Subject: Re: s:property display INTERGER Please put an SSCCE

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

2013-07-27 Thread john lee
  I have an jsp, called Part.jsp     s:property value=qty/ s:form action=testAction   ..    s:submit   /sform   in the testAction    . have setter/geter method for qty      ...    qty=99 /* before return force qty=99 */    ...    return input   in struts.xml

s:interator s:div not working

2013-07-21 Thread john lee
   s:iterator id=part value=parts status=st    s:property value=pid/br    s:property value=detail/br /s:iterator   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  

s:url pass arraylist object possible?

2013-07-19 Thread john lee
I have no problem to iterator the arrarylist s:iterator id=part value=parts status=st  s:property value=pid/br /s:iterator but if i want to pass arraylist parts back to action, can i do following? s:url action=KeywordprocessAction.action var=keywordTag                                 

Re: s:url pass arraylist object possible?

2013-07-19 Thread john lee
convert it yourself, sure. Otherwise you'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 sh_thorn_b...@yahoo.com wrote: I have no problem to iterator the arrarylist s:iterator id=part value=parts status=st

struts2 jquery plugin

2013-07-12 Thread john lee
the following sample is from Struts2/Jquery plugin sample, and works perfect in JSP,  sj:accordion id=accordionlist list=accordion/ in Action private MapString, String accordion; public String execute() throws Exception { accordion = new HashMapString, String(); accordion.put(Section 1,

struts s:property br

2013-07-10 Thread john lee
in my application, the following br newline charactor never happen. s:property value=Out of Stock BRAvg:2-5 days/   how to let above BR take effect? thanks john

Re: struts s:property br

2013-07-10 Thread john lee
br Escape it. Check out the tag Docs. On Jul 10, 2013 11:16 PM, john lee sh_thorn_b...@yahoo.com wrote: in my application, the following br newline charactor never happen. s:property value=Out of Stock BRAvg:2-5 days/ how to let above BR 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. s:url var=ajax

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

2013-07-02 Thread john lee
From: john lee sh_thorn_b...@yahoo.com To: struts support user@struts.apache.org Sent: Friday, June 28, 2013 11:15 PM Subject: class has set member, how s:iterator to access it? i have an the following 2 class Part is just parts itself Partxref is the accesary(component) of part

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 SetPartxref partxrefs=new HashSetPartxref();                     /* set,

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 SetPartxref partxrefs=new HashSetPartxref();                     /* set,

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

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 chester.two...@gmail.com To: Struts Users Mailing List user@struts.apache.org; john lee sh_thorn_b...@yahoo.com Sent: Wednesday, June 19, 2013 9

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

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

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,        s:fielderror/  

multiple s:form cause validation not working, pls help

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

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

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 thechrispr...@gmail.com To: Struts Users Mailing List user@struts.apache.org; john lee sh_thorn_b...@yahoo.com Sent: Sunday, June 9, 2013 9:55 PM Subject: Re: how interceptor knowing invoke's class name

struts2 s:button

2013-05-28 Thread john lee
%@ taglib prefix=s uri=/struts-tags% table trtd colspan=2   s:if test='%{#session.PERSON != null}'      s:button value=LogOff action=LogoffAction      /s:button   /s:if   s:else if test='%{#session.PERSON ==null}'      s:button value=Login action=LoginAction      /s:button   /s:else if /td/tr

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)

Re: struts2 Intercepter Actioncontext

2013-05-24 Thread john lee
on some Java and framework basics before 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 sh_thorn_b...@yahoo.com wrote: In an cutomized Struts2 Intercepter class,     public class

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

Re: struts 2 Intercepter ServletRequestAware

2013-05-23 Thread john lee
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 sh_thorn_b...@yahoo.com wrote: Please advise the following for struts2, for an login action, an predefined interceptor is triggered for checking

Re: struts 2 Intercepter ServletRequestAware

2013-05-23 Thread john lee
said. those interfaces are for actions, not interceptors. On May 23, 2013 5:51 PM, john lee sh_thorn_b...@yahoo.com wrote: it is interceptor, the following is struts.xml, (i just not include last time) struts   package name=default extends=struts-default         interceptors

Re: struts 2 Intercepter ServletRequestAware

2013-05-23 Thread john lee
List user@struts.apache.org; john lee sh_thorn_b...@yahoo.com Sent: Thursday, May 23, 2013 5:02 PM Subject: Re: struts 2 Intercepter ServletRequestAware You cannot use ServletRequestAware or ServletResponseAware in an Interceptor.   (*Chris*) On Thu, May 23, 2013 at 2:58 PM, john lee

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 jlm...@gmail.com To: Struts Users Mailing List user@struts.apache.org; john lee sh_thorn_b...@yahoo.com Sent: Thursday

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=

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

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 thechrispr...@gmail.com To: Struts Users Mailing List user@struts.apache.org Cc: john lee sh_thorn_b...@yahoo.com Sent: Wednesday, May 15, 2013 4:54 PM Subject: Re: Cookie

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

Re: struts 2 ajax choice

2013-05-13 Thread john lee
So, JSON is the only choice ? thanks john From: Paul Benedict pbened...@apache.org To: Struts Users Mailing List user@struts.apache.org; john lee sh_thorn_b...@yahoo.com Sent: Monday, May 13, 2013 4:43 PM Subject: Re: struts 2 ajax choice Please note

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 davelnew...@gmail.com To: Struts Users Mailing List user@struts.apache.org Cc: john lee sh_thorn_b...@yahoo.com Sent: Monday, May 13

struts 2 / sitemesh/ s: problem

2013-05-09 Thread john lee
  alpha:/var/apache-tomcat-7.0.34/webapps/ecommerce # cat partsearchinput.jsp %@ taglib prefix=s uri=/struts-tags% s:actionerror/ s:form action=partsearchinput s:textfield name=partid label=partid/ s:submit value=search/ /s:form the above code works, and verified by

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(PERSON,

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 mgai...@hotmail.com To: Struts Users Mailing List user@struts.apache.org Sent: Monday, March

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

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

Re: struts 2 validation if use with spring

2013-03-08 Thread john lee
: struts 2 validation if use with spring 2013/3/8 john lee sh_thorn_b...@yahoo.com:                   action name=signin class=loginAction As specified in the docs [1][2], validation file name must match schema: class-name-validation.xml - LoginAction-signin-validation.xml [1] http

Re: struts 2 validation if use with spring

2013-03-08 Thread john lee
Mailing List user@struts.apache.org; john lee sh_thorn_b...@yahoo.com Sent: Friday, March 8, 2013 7:27 AM Subject: Re: struts 2 validation if use with spring 2013/3/8 john lee sh_thorn_b...@yahoo.com: Lukasz, thanks for your help, i just tried, but still not works any other suggestion? I

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

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

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:

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

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          

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 jeffrey.bl...@yahoo.com To: Struts Users Mailing List user@struts.apache.org; john lee sh_thorn_b

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
  *** package name=me extends=struts-default   interceptors    interceptor name=mysimple class=mysimple   param name=name try /param /interceptor  /interceptors    action name=try class=try result

Re: struts 2 - framework question

2010-03-08 Thread john lee
...@cimballi.net Subject: Re: struts 2 - framework question To: john lee sh_thorn_b...@yahoo.com Cc: Struts Users Mailing List user@struts.apache.org 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

Re: struts 2 - framework question

2010-03-08 Thread john lee
List user@struts.apache.org Date: Monday, March 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 sh_thorn_b...@yahoo.com wrote: my company is distributor, we plan to provide platform for our customer(different

Re: struts 2 - framework question

2010-03-08 Thread john lee
possible for you to show me the psudo code for how to do it?   tks in advance   john --- On Mon, 3/8/10, emil thushanga thusha...@gmail.com wrote: From: emil thushanga thusha...@gmail.com Subject: Re: struts 2 - framework question To: Struts Users Mailing List user@struts.apache.org Date:

Re: struts 2 - framework question

2010-03-07 Thread john lee
. 2010/3/7 Cimballi cimballi.cimba...@gmail.com: John, you can use 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 sh_thorn_b...@yahoo.com wrote: my company

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

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-userm=121234554714110w=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

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-userm=121234554714110w=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

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   

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   

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

2009-07-27 Thread john lee
tks for reply, but should put it in which folder/directory ? then tomcat/struts can serve to online user?     --- On Mon, 7/27/09, Musachy Barroso musa...@gmail.com wrote: From: Musachy Barroso musa...@gmail.com Subject: Re: struts 1.x, how to create package ? To: Struts Users Mailing List

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 logic:iterate id=plist name=partlist scope=session type=neuco.CartItemsForm    %   qty_available=((CartForm)pageContext.findAttribute(plist)).getQty_available();   ...    % /logic:iterate  

RE: reference variable in struts 1 and 2

2009-04-14 Thread john lee
...@secmgmt.com Subject: RE: reference variable in struts 1 and 2 To: 'Struts Users Mailing List' user@struts.apache.org Date: Tuesday, April 14, 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

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 newton.d...@yahoo.com wrote: From: Dave Newton

RE: struts 2 s:iterator

2009-04-12 Thread john lee
tks for your feedback,   as your suggest/my understanding, the default struts2 package does not have equivalent logic:present to check  the object inside logic:iterator exists or not, but need to configure spring to accomplish it.   jiong     --- On Sun, 4/12/09, Martin Gainty

Re: s:checkboxlist or s:checkbox

2009-04-11 Thread john lee
tks for both of u try to help me   s:iterator value=beds status=st   s:property value=bed_id/ /s:iterator   the above works, and print the value of bed_id   but, the following still not works   s:iterator value=beds status=st var=curBed   s:checkbox name=%{'bed[' + (st.count-1) + ']'} 

Re: s:checkboxlist or s:checkbox

2009-04-11 Thread john lee
      --- On Sat, 4/11/09, Wes Wannemacher w...@wantii.com wrote: From: Wes Wannemacher w...@wantii.com Subject: Re: s:checkboxlist or s:checkbox To: john lee sh_thorn_b...@yahoo.com Date: Saturday, April 11, 2009, 11:53 AM Try to use id attribute instead of var -W On 4/11/09, john lee sh_thorn_b

s:datetimepicker

2009-04-11 Thread john lee
  is s:datetimepicker struts default tag?  if so, why it can not render the display?   does it need to load additional .jar to support it?   i tried the simple way    s:datetimepicker lable=calendar value=2009-01-01 but just display calendar only, nothing display on the right side   i tried the

Re: s:datetimepicker / display date content customrize

2009-04-11 Thread john lee
  --- On Sat, 4/11/09, Dave Newton newton.d...@yahoo.com wrote: From: Dave Newton newton.d...@yahoo.com Subject: Re: s:datetimepicker To: Struts Users Mailing List user@struts.apache.org Date: Saturday, April 11, 2009, 1:50 PM john lee wrote: is s:datetimepicker struts default tag?  if so, why

RE: s:datetimepicker

2009-04-11 Thread john lee
, Apr 11, 2009 at 11:34 AM, john lee sh_thorn_b...@yahoo.com wrote: is s:datetimepicker struts default tag? if so, why it can not render the display? does it need to load additional .jar to support it? i tried the simple way s:datetimepicker lable=calendar value=2009-01-01

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 

struts 2, s:select postback problem

2009-04-11 Thread john lee
  in struts 2, try to do following:     a.    use s:select to display the selectable list (get value from db)   b.    pickup the selection,    c.query the db   d.    use s:select to display the selectable list still, and display the query result   2 Bean file   public class Bed {   private

struts 2 s:iterator

2009-04-11 Thread john lee
  in strut 1.X,    logic:present name= logic:iterator name=.    /logic:present    logic:notPresent name= search result  not exist    /logic:present   but, in struts 2,    how can i use the same method to check s:iterator is not empty? in other

s:checkboxlist or s:checkbox

2009-04-10 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

Re: s:checkboxlist or s:checkbox

2009-04-10 Thread john lee
10 April 2009 01:59:42 john lee wrote: 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

Re: s:checkboxlist or s:checkbox

2009-04-10 Thread john lee
or s:checkbox To: john lee sh_thorn_b...@yahoo.com Cc: Struts Users Mailing List user@struts.apache.org Date: Friday, April 10, 2009, 1:26 AM On Friday 10 April 2009 02:14:22 john lee wrote: tks for your quick response.   the reason i initialize there is because try to get fresh list from database

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   logic:iterate id=plist name=partslist scope=session type=neuco.PartForm   what is the equivalent method in struts 2?   tks in advance   john

my first struts 2 HelloWord.action still not working

2009-04-07 Thread john lee
please help me.   after i did all the necessary configuration, i did the following   http://localhost:8080/jiong2/HelloWorld.action   but, receive the following: HTTP Status 404 - /jiong2/HelloWorld.action type Status report message /jiong2/HelloWorld.action description The requested resource

  1   2   >