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
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
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
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.
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
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
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
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
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
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
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
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,
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
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
*
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
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 *
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
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
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);
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
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
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
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
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,
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
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
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
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
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
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
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
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:
>
in my application, the following newline charactor never happen.
how to let above take effect?
thanks
john
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
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:
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 */
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 */
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
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
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
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
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
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.
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
<%@ 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
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
In an cutomized Struts2 Intercepter class,
public class SecurityVerifySessionIntercepter extends AbstractInterceptor
ActionContext actionContext = invocation.getInvocationContext();
HttpServletRequest request= (HttpServletRequest)
actionContext.get(StrutsStatics.HTTP_RE
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
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
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
, 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
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:
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
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
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
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
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
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
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
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
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
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
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
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
?
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/
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]
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
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
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
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
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
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
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
***
try
/success.jsp
try 2
the above code triggers interceptor before class try's execute(), and the
purpose of intercep
; 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
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
: 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
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
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
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
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
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
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
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
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
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
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;
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
in strut 1.X,
.
search result not exist
but, in struts 2,
how can i use the same method to check
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
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
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
--- 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
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
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
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
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
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
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
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 - 100 of 158 matches
Mail list logo