hi,
can you give some exampels for which u had to put hacks? We will test those
parts explicitly.
--
ravi
--
View this message in context:
http://www.nabble.com/how-to-configure-struts2-for--*.action--tp24481000p24510603.html
Sent from the Struts - User mailing list archive at Nabble.com.
hi,
Thanks for the response.
We are not serving static content.
We have a JSP which is used to upload images/ files etc.(submits the form to
/upload.jsp)
When we give the struts mapping, this Jsp doesnt work.
As said in:
hi,
We have an application in jsps. Now we added new functionality using Struts
2.
The jsps (not struts2 jsps) have a file upload utility ( where the multi
part form posts request to /upload.jsp). Now, this upload doesnt work if we
have the struts2 filter mapping in web.xml. If we remove teh
i didnt get u,
did u mean that we cant map only *.action to struts filter? Or u were
telling of some workaround? Why does struts put this restriction that all
urls should pass through him? And Why does he put restrictions at container
level.
see web.xml is the container level and i have my own
hi,
http://struts.apache.org/2.x/docs/writing-interceptors.html says that
interceptors are not thread safe, i wanted a deeper understanding on this.
Case:
1. Suppose i have 2 action tags each having an interceptor (I) referenced in
it
2. 2 action tags with interceptors referenced *twice in
i remember some one having the similar issue... and the fix was to use
scriplets
%= request.getParameter(abc) %
or %= request.getAttribute(abc) %
should work
--
ravi
--
View this message in context:
the issue is solved.
The corresponding signature for getSubCategories(#catId) is absent. Its
fixed now.. THnaks for ur time.
Ravi
--
View this message in context:
http://www.nabble.com/help-required-in-using-%3C-S%3Aset-tp19121396p19137857.html
Sent from the Struts - User mailing list archive
hi,
The below i need the getSubCategories(xxx) method of action class to be
called. ANy idea where i am doing wrong below here. The method is not
getting called here.
(2) i nee the inner loop also to get executed. Any ideas how this can
happen.
(1) s:iterator status=catStat id=catId
I would like to either make each launch of the jsp create a new exclusive
running instance of the action
: if i got u right but this is already happening. Each url call makes a
new actionclass instance.
--
View this message in context:
variable names shouldnt conflict with
constants names. We got this idea a few days back. Though we didnt validate
it i see this as a potential soln.
Any how thanks once again for your help. I shall try to use it.
regards,
ravi
ravi_eze wrote:
hi,
we want to access the constants in our jsp page
we fixed the issue by writing a trainInterceptor whcih always takes a backup
of the params passed through request and if the action doesnt return errors
deletes them else stores them in session.
The next pages to which user jumps we are first checking if there are nay
backup objects in
hi,
The issue:
1. We have implemented a wizard application (with 4 Steps) with action
variables maintained in session.
2. The pages also have train in the top, i.e. from any step he can jump to
any of the other steps.
3. The Step1, 2,3,4 (mentioned above ) are interdependent i.e. based on
S2 is awesome by the way it modularises the things.
But to me writing a valid ognl in jsp,validation layer, using value stack
and debugging it is extremely difficult. The only way i do it is re-jaring,
redeploying and restarting the tomcat. Moreover most of the times i do'nt
understand why
hi,
i didnt get you. I have a page for which i need to do some preprocessing to
display it. After the page is done by user it has to be processed. Can you
please elaborate on the soln given?
ravi
Gabriel Belingueres-2 wrote:
Sorry it seems I entered the conversation later and didn't saw
yes it doesnt. Atleast in version 2.0.9. i heard its fixed in 2.1 version.
you can write a reset interceptor also for this. i.e. always (before param
interceptor) reset the checkbox field. If there is some checkbox getting
submitted then you will get them, else the field would be reset by the
hi,
I see that the previous valid int value is being populated when i enter null
in an integer text field. I want to show error in such a case. Any ideas how
to get this done.
The scenario is as follows:
1. When i enter no value in F1: i get validation error asking me to fill the
field
2. now
hi,
i often get into funny problems and am not sure how to fix them for example:
%@ import=com.constants ...
%=constants.static1 % !-- gives output as value1 --
s:property value=%=constants.static1% !-- gives output as value1 --
but when i use :
s:textfield
hi,
i am not sure how to fix ur problem.. but i use the following steps in
remote debugging.. may b it helps u.
1. in catalina.sh :JAVA_OPTS=$JAVA_OPTS -Xmx512m -Xdebug
-Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n
2. in eclipse under windows preferences in dialogue box on left
hi,
i solved this problem the following way:
1. created a custom reset interceptor to set the action class field of
checkbox.
2. placed the interceptor just after the scope interceptor (in ur
struts.xml)
when u deselect all the checkboxes then the HTML doesnt submit any values to
the action
hi,
is there some standalone application/ some way by which i can validate the
ognl i write? instead of writing them in validation file, compiling
deploying and then discovering there some problem (we only see some non
descriptive error)
cheers,
ravi
--
View this message in context:
quite possible.
for this u need to define the object fruit in session scope. and in 1st page
say: vitamins, color can be filled. In 2nd page say: weight, age can be
filled and all the time the same object fruit in the session would be
filled.
hi,
we have multiple classes (C1,C2,C3) each as java beans. now i have a form
as:
s:form...
s:textfield name=a.field1 ../
s:textfield name=b.field1 ../
s:textfield name=c.field1 ../
is it possible for me to populate the individual classes? The problem is
that we need to build a framework in
Team,
any help??? now i configured the validation, workflow interceptors in my xml
file. I see an error for this field variable.
I tried configuring the converter... but as always its also failing...
actionclass-conversion.properties:
mapOfList=com.company.CustomMapConverter
hi,
Thanks for he help. i am using as follows:
s:checkboxlist name=mapOfList['key'] /
I see that this is not working and the mapOfList is not getting populated at
all. I tried out StrutsTypeConverter... then only convertToString() method
is being called. Any ideas as how to go with this
in OGNL.
Another choice might be to use regular ol' EL expressions.
-Wes
On Tue, 2008-04-29 at 21:45 -0700, ravi_eze wrote:
hi,
Does the following work -
s:set name=C value=@[EMAIL PROTECTED] /
s:property value=#C /
Yes it does. But my requirement is more like i would import
hi,
Does the following work -
s:set name=C value=@[EMAIL PROTECTED] /
s:property value=#C /
Yes it does. But my requirement is more like i would import the class into
some bean/ variable (C) so that i can say C.staticconstant1 etc... but by
the approach mentioned above, i should repeat the
hi,
When we had the data structure as: HashMapString,String the following jsp
fragment was able to populate it:
s:textfield name=map['key'] /
but the same thing is not working with HashMapString, ArrayListStirng
when we tried:
s:textfield name=mapOfList['key'].
We also tried instantiating the
hi,
we want to access the constants in our jsp page. So we are proceeding as
follows:
s:text field name=[EMAIL PROTECTED]@STATIC_CONSTANTS1] /
the problem with this is that we need to repeat the @com.company.Constants
always. So is there a simple way to get this working? I wanted to try out
, 2008-04-28 at 08:17 -0700, ravi_eze wrote:
hi,
we want to access the constants in our jsp page. So we are proceeding as
follows:
s:text field name=[EMAIL PROTECTED]@STATIC_CONSTANTS1] /
the problem with this is that we need to repeat the
@com.company.Constants
always. So
hey!
you can use theme=simple. This would generate the tags as a simple text
box etc with out any trs and tds around.
positioning the errors:
s:fielderror
s:paramfieldname/s:param
/s:fielderror
would display the erriors related to fieldname only. I think u can do the
similar way with
hi,
We have a form in c.jsp which by some event makes an ajax call fetching
b.jsp, a.jsp and rendering it. Now the requirement is that
(1) i want to get this b.jsp by calling some other action class.
(2) Once its rendered and i submit the page c.jsp the consecutive action
class should be able
akash agrawal-2 wrote:
Hi,
Is this possible to do selective validation using validation.xml? What I
meant by this is that calling a different set of validation on
each(different) invocation of same action and same method.
Quite possible: in that case u would write valildation as:
hi,
We have two pages a.jsp and b.jsp developed with the action class mehods
Ac.a() Ac.b() that render these pages. Now we need to develop a new page
c.jsp which is combination of both a b.jsps.
i can include the jsps into the c.jsp. But what abt the action class behind?
can they not get
hi,
I need to display the date as 21-jan-08 20:20:20 and when user changes it,
the corresponding value should get populated in the Action class. I see that
the date object is being displayed in the format specified but when getting
converted back into the action class its throwing error. The
hi,
When i submit the form i see the field errors coming twice beside the text
box. The code is as follows:
in JSP:
tds:textfield
name=currentEvent.criterion.name
theme=simple
can u post the code?
cple of qns before that. Is the variable that holds the search list in
session scope? try .. it could help.
ravi
Venkat Guru wrote:
Hi,
This is Venkat. Iam new to struts2 framework. Iam struck up with a
small problem using s:select tag.
I have a page which
hi,
I am trying to populate a LinkedHashMap located in a DTO from a
s:textfield.. / When i turn on the debug mode i seed the following error
on the console:
ERROR (com.opensymphony.xwork2.interceptor.ParametersInterceptor:199) -
Developer Notification (set struts.devMode to false to disable
http://www.nabble.com/Struts2%3A-Ajax-call-throws-an-exception---%3E-catch--td15613070.htmlcheck
this:
Srinivas Surapaneni wrote:
I want to define a global exception handler where if this exception
happens,
it goes to the current page
Is there any way to get the current page and specify
The following captures the stack trace that the server throws:
package name=... namespace=/... extends=struts-default
global-results
result name=Throwable/path/error.jsp/result
/global-results
hi,
if dojo is not defined: then probably the following should help:
1. define a folder struts in ur project (under webinf)
2. copy ajax, dojo, nifty corners, simple, xhtml, CommonFunctions.js,
inputtransferselect.js, optiontransferselect.js, tabs.css, tree.css,
validationClient.js. Search for
yes! its possible... but of very very less use.. 'cos u cannot see the
context variables and the varibles in the expressions... the control just
stops there at the break point.. the best way is to download the eclipse
Europa version: this has all web, javascript etc... componetns already
/same as
s:property value=value /
/s:iterator
is not a direct answer to your question, but I think your problem is
around that.
//you can always do %{superMap[top.key]} to access the value, it is
just harder to read
regards
musachy
On Feb 18, 2008 11:21 AM, ravi_eze [EMAIL PROTECTED
hi,
i have 4 hashmaps as follows:
(1). HashMapString, HashSetString treesFruitsMap = new HashMap();
(2). HashMapString, HashSetString fruitsColourMap = new HashMap();
(3). HashMapString, String colourVitaminMap = new HashMap();
i.e.
(1) has the mapping btw tree names and the fruits it bears
be
rendered. This page contains:
head
s:head theme=ajax /
/head
body
s:datetimepicker name=... /
/body
any ideas?
ravi
ravi_eze wrote:
hi,
i am using YUI tabs to display the form which contains a datetimepicker.
But the component is not being rendered. I amusing tiles to hold the tabs
hi,
i am using YUI tabs to display the form which contains a datetimepicker. But
the component is not being rendered. I amusing tiles to hold the tabs
component and doing tiles insert the URL which makes a new call to the servr
and get the page to be displayed under it. When i display the page
hi,
i have a form which holds a textfield (name:username). I need to wrap this
username into an object user and insert it into a map as the value object
for the key 'field0'.
Action class:
User user; //with setters and getters.
MapString, User map = new LinkedHashMap .., .. ();//with setters
yaa,
in struts shwocase check the web.xml and dwr.xml.
wou would require dwrxxx.jar for this in web-inf/lib and struts theme=ajax
in the jsps.
hope this helps.
Filipe David Manana-2 wrote:
Hi,
Has anyone been able to put dwr 2.0 working with struts 2.0.11 ajax
validation?
--
hi,
if i am uderstanding u right then this should solve ur problem.
action class:
Date inpDate = new Date();
jsp page:
s:datetimepicker name=inpDate ... /
so for the fist time when the page is being displayed the inpDate is set ot
the current date which will solve ur problem
hope this helps.
,
ravi
ravi_eze wrote:
hi,
The code is as follows. Do not get terrified by the length of the post. I
tried formatting the post for better readability. Hope this helps you...
to help me ;)
@new.xml, this is included in struts.xml
struts
package name=newsCreation namespace=/new
this feature (as
mentioned by Don Brown in the referenced bug report).
ravi_eze wrote:
hi,
We have Action class with Employee Object with setters and getters. The
Typeconverter was configured to be called when EmployeeObject.empId is
called by the jsp page. We found that convertFromString
one more thing, then when would this method be called?? sounds like
redundant.
ravi_eze wrote:
hi,
thanks for the reply. If the design had this behavior intended then
probably we cannot do any thing but in that case i would not agree
with the design. I read the post linked below
this feature (as
mentioned by Don Brown in the referenced bug report).
ravi_eze wrote:
hi,
We have Action class with Employee Object with setters and getters. The
Typeconverter was configured to be called when EmployeeObject.empId is
called by the jsp page. We found that convertFromString
hi,
probably u can go this way:
s:if test={members[#status.index][1] eq null}
s:property value=%{distinctIssuePartyId[#status.index][0]}/
/ s:if
or
s:if test={''.equals(members[#status.index][1])}
...
/ s:if
this is ognl and
team any help???
:(
ravi_eze wrote:
hi,
The code is as follows. Do not get terrified by the length of the post. I
tried formatting the post for better readability. Hope this helps you...
to help me ;)
@new.xml, this is included in struts.xml
struts
package name=newsCreation
which version are u using??
i think u are getting error like dojo not defined. If yes then read the
following
u need to make dojo available do the following steps:
1. explode struts core.jar
2. create a folder in the war : struts
3. search for ajax,dojo,niftycorners,simple,xhtml in the
-
- Original Message -
From: ravi_eze [EMAIL PROTECTED]
To: user@struts.apache.org
Sent: Friday, January 25, 2008 12:58 AM
Subject: RE: Type converters: please help!!! :(
Thank you Jeff for the reply.
did u mean the *converter* attribute of the action tag that we give in
struts.xml? I
hi,
i think whats not possible is
...
param name=...${actionclass'sVariable} /..
...
i.e. getting the variable form action calss and accessing it or evaluating
an expression as the param value.
any ideas how this is possible
cheers,
ravi
nuwan chandrasoma-2 wrote:
Hi,
yes it is
hi,
i badly need the solution to this problem. i had posted this issue on xwork
forums, struts fourms previously also, but hardluck: no reply :(
i am reposting the same again... atleast let me know if this idea itself is
wrong!!! or any better approach/ is there?
ravi_eze wrote:
hi
the model object's descriptor is the correct approach,
and you indicate that it's working. So why the long face? ;-)
-Original Message-
From: ravi_eze [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 24, 2008 11:45 PM
To: user@struts.apache.org
Subject: Type converters: please help
creates html nodes to display
error message dynamically. If I changed the layout then it does not work
well.
For example, if I have 4 columns in the table to display two fields.
Do you or anyone have any experience about this?
Thanks,
Mei
-Original Message-
From: ravi_eze
did u try struts showcase?? its part of downloads available at the site. also
is a good start for struts.
Antonio Petrelli-3 wrote:
2008/1/23, mohammed hussain [EMAIL PROTECTED]:
hi
iam muzaffar,struts learner, Any body is having any struts application
means pls send to me with source
download, explode, and search for war files. then deploy them onto tomcat.
http://mirror.x10.com/mirror/apache/struts/binaries/struts-2.0.11-all.zip
mohammed hussain wrote:
hi
iam muzaffar,struts learner, Any body is having any struts application
means pls send to me with source
can we use dojo 1 in struts 2.0.9?
newton.dave wrote:
--- Mark Levitsky [EMAIL PROTECTED] wrote:
Can I work some how with struts 2 and with dojo 1.0 together (instead
the 0.4 version)
You can use Dojo raw (i.e., not using the S2 tags), or you could get the
2.1 source and replace the
one approach:
you need to achieve appearing and dissappearing of the filelds based on some
event (say radio button) using client side javascript. how ever in either
case according to the html the fields are all present (i.e. x,y,z) now in
action calss you can write validate method in which you
hi,
We have Action class with Employee Object with setters and getters. The
Typeconverter was configured to be called when EmployeeObject.empId is
called by the jsp page. We found that convertFromString of type converter is
being called but convertToString is never called. Any idea why this is
hi,
i solved the same problem this
way:http://java-x.blogspot.com/2006/11/struts-2-validation.html Its ajax
based validation.
hope it helps.
cheers,
ravi
Mei Wei wrote:
Thanks, I looked at this document. I think it is more referring to 2.1
which does not have a stable release yet.
We
-and-yui
Regards,
Jayson
On Jan 20, 2008 4:26 PM, ravi_eze [EMAIL PROTECTED] wrote:
hi Jeromy Evans,
Thanks for the quick reply. The YUI is working with the html tags also. I
dont know if this is documented anywhere; any how thanks for the help
:-)
Jeromy Evans - Blue Sky Minds wrote
code. Writing custom tags
for the DataTable, TreeView, Charts etc are definitely not worth the
effort because the tags can't replicate the functionality of the API.
What exactly were you hoping for?
regards,
Jeromy Evans
ravi_eze wrote:
hi,
i want to use YUI library (http
hi,
i want to use YUI library (http://developer.yahoo.com/yui/) with struts2.
The problem is that YUI requires YUI specific tags while struts generates
html tags. so, can we write themes(ftls etc similar to xhtml etc) which
would generate YUI tags instead of HTML? would this bring in new
hey! one thing btw: when u say something[0] how can it be represented in set/
map as the order is not maintained?
and one more thing: *-conversion.prop does it work for a custom object in
the action class (struts2) (i.e. i had seen fromString being called but not
toString method ) any help
: wrong request
parameters sent hi any help?ravi_eze wrote:hi,
i have 3 checkboxes(c1,c2,c3) enclosed in a form (theme: ajax;
validate=true). I am trying to get the validation done by ajax and when i
un-check all boxes or check some of the boxes i see that always c3 is
being set
hi,
the workaround works, but causes problems if the checkbox should be
validated. More over the soln is based on assumptions that need not hold
always. There are 2 possible soln for this in my view:
1. use checkbox interceptor
(http://struts.apache.org/2.x/docs/checkbox-interceptor.html). But
hi,
seems like ur missing validation and workflow interceptors. Try out this
entry in ur xml file:
...
action name=bla blaclass=bla bla Action method=bla bla
interceptor-ref name=scope
bla bla
ravi_eze wrote:
hi,
when i replace the provided code with:
for (var i = 0; i form.elements.length; i++) {
var e = form.elements[i];
if (e.name != null e.name != '') {
if(e.type =='checkbox'){
if(e.checked==true
i think u can ty this way:
create a new mapping where there are no validations for action 1. Now on
validation errors of action 2 it would redirect to this action 1; thus
skipping validations of action 1.
if u want the function call only and no validations... may b u can call the
method action1
hi,
I need the field errors to be displayed at a custom location instead of to
the right (as we see in default case). any ideas/ links as how to get this
done?
regards,
--
View this message in context:
http://www.nabble.com/viewing-field-errors-at-custom-location-tp14557126p14557126.html
= 0; i errors.fieldErrors[fieldName].length; i++) {
13 addError(form.elements[fieldName], errors.fieldErrors[fieldName][i]);
14 }
15 }) of validations.js failing for multiple checkboxes which is causing the
problem.
i believe that there is some mistake with configuration. any help?
ravi_eze
i somehow feel checkboxes are not properly handled in struts 2.x any
controversies???
ravi_eze wrote:
hi,
i have 3 checkboxes(c1,c2,c3) enclosed in a form (theme: ajax;
validate=true). I am trying to get the validation done by ajax and when i
un-check all boxes or check some
hi any help?
ravi_eze wrote:
hi,
i have 3 checkboxes(c1,c2,c3) enclosed in a form (theme: ajax;
validate=true). I am trying to get the validation done by ajax and when i
un-check all boxes or check some of the boxes i see that always c3 is
being set in request parameter.
when i
hi,
i have 3 checkboxes(c1,c2,c3) enclosed in a form (theme: ajax;
validate=true). I am trying to get the validation done by ajax and when i
un-check all boxes or check some of the boxes i see that always c3 is being
set in request parameter.
when i tried to debug i found the following
if you are using struts 2.0.x then you have to use tiles-*. 2.0.x jar files.
Greg Reddin-4 wrote:
On Dec 26, 2007 4:45 PM, Mohamed Mohideen [EMAIL PROTECTED] wrote:
Hello there,
I am trying the basic template example from Struts Tiles(1.3.8) website.
I started with
???
cheers,
ravi
ravi_eze wrote:
hi,
i have a form which has multiple checkbox lists in it. by default in each
of the checkboxes few of them are selected. The problem is: when user
unchecks all the boxes and submits the form is getting submitted with the
default values.
When i am using
???
cheers,
ravi
ravi_eze wrote:
hi,
i have a form which has multiple checkbox lists in it. by default in each
of the checkboxes few of them are selected. The problem is: when user
unchecks all the boxes and submits the form is getting submitted with the
default values.
When i am using
hi,
i have a form which has multiple checkbox lists in it. by default in each of
the checkboxes few of them are selected. The problem is: when user unchecks
all the boxes and submits the form is getting submitted with the default
values.
When i am using checkbox interceptor, and view source of
check if u had s:head theme=ajax / defined in ur jsp head tag.
one more thing: explode strruts-core.jar and copy the folder struts in it.
it would contain dojo.. etc files. on including the head tag as said above,
and view source u will find stru
ts is trying to call some .js files. make sure
hi,
issue: An action class has a dto(say EmployeeDto) in it. In a particular
scenario (when object to string is happening) we are finding that
dto-conversion.porperties (EmployeeDto-conversion.properties) is being
called instead of actionClass-conversion.properties. This shouldn't happen
hi,
i had the same problem
(http://forums.opensymphony.com/thread.jspa?threadID=184150tstart=0) try
creating a file: Calender-conversion.properties at location: /java/util/
(i.e. assuming location of calendar @: java.util.calender and assuming
calendar is the object type of the field variable in
87 matches
Mail list logo