I have worked with the tree extensively but that was about two months
ago with 2.0.6. I faced a lot of problems when I first encountered this
and so I'll try and fix the showcase examples in the coming weekend and
submit a patch next week . I hope not much would have changed between
then and in
I met the same error, too.
I have just a simple jsp
start of simple.jsp
<%@ include file="/common/taglibs.jsp" %>
http://www.nabble.com/file/p12139503/struts_error.jpg
This is the right pane
end of
Prashant,
If you want to know how exactly Struts handles the request, you can
use MaintainJ Eclipse plugin to generate the runtime UML sequence
diagram. It clearly shows the object interaction at runtime, which
would give you a quick overview.
Check the http://maintainj.com/userGuide.jsp?param=ja
We do try to tag the examples that are broken, in the hope that
someone will someday fix them. I just didn't realize that this one
wasn't working the way it should. The Showcase could use a lot of
work, especially in terms of explaining exactly what the example
should do. If you can fix the example
I'm still wondering how to do a pure flag check alone using validators
- i.ei need to check a guard expression before firing actual
validations on the
field ; and if the guard expression fails - the validations must simply be
skipped (as if the field didn't exist) and move on to next page - without
Hi
I believe I'm using the redirect-action result type in the recommended
way, but I'm seeing warnings from OgnlUtil in my log4j logs. Is there a
way to avoid the warnings, short of adjusting log4j.xml? The stack
traces are very deep, so they spam the logs. But I don't really want to
exclude all w
Hi
Thanks for your mail.
Musachy Barroso schrieb:
> I logged this ticket:
>
> https://issues.apache.org/struts/browse/WW-2106
>
> so we could have a "parseContent" attribute to control this behavior.
>
This is a good idea in my opinion. Probably you could also
include 'extractContent'. :-)
>
I simply configured my default set of interceptors as follows:
execute
execute
This makes sure that the validation doesn't occur when the action is initially
fired. You can add more methods to the list if you'd like to.
Ses
I use to have a loadAction for each page and the real action to post to...
Maybe I didn't catch the problem, do you use that scheme?
On 8/13/07, Session A Mwamufiya <[EMAIL PROTECTED]> wrote:
>
> Hi, I have an action that is validateable and uses the validate method to
> ensure that an element is
Hi Prashant
I recomend you to read the starting guide, it comes with the struts bundle
and explains everything you've asked, you can read it online here:
http://struts.apache.org/1.3.9/userGuide/index.html
On 8/13/07, Prashant Baviskar <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I am new to struts.
>
Um? It's not obvious what the rationale is, I assure you. Of course the Spring
object factory is feature rich, but which particular features was it? Or perhaps
the lack of obviousness is just an artifact of the way I have learnt the ropes
of Struts2.
It seems like struts2 says:
1: here's stru
FF and IE. Doesn't make a difference using a jsp or a jspf as result.
I'm getting still a
[object HTMLDocument] in my div.
Jan
Musachy Barroso schrieb:
That's a little bit strange, does it happen on FF and IE? Does it
happen even if you return just an HTML fragment? (instead of the whole
page)
Hi,
Is there a way, with the current version of struts 2, to use a conditional
statement to color code elements that are displayed in a tag. By
this, I mean that if I have items in my list that are >4, then they're red, and
if they are <= 4, then they are blue. Obviously, this is not the con
That's a little bit strange, does it happen on FF and IE? Does it
happen even if you return just an HTML fragment? (instead of the whole
page)
musachy
On 8/13/07, Jan Steinke <[EMAIL PROTECTED]> wrote:
> Hi There,
> i've implemented an Ajax FileUpload using struts 2.0.9. Works fine and
> (since m
Um, to allow all the capabilities of Spring (dependency injection, AOP
or whatever) to be applied to action instances?
L.
Adam Hardy wrote:
Thanks for the explanation. What would you say the main rationale is
then for using Spring as a factory for the actions instead of the struts
objectfacto
The result is returned to another iframe. You need to do something like this
to get it working.
http://www.mail-archive.com/user@struts.apache.org/msg60245.html
Jan Steinke wrote:
>
> Hi There,
> i've implemented an Ajax FileUpload using struts 2.0.9. Works fine and
> (since my last mail to
fergunet wrote:
Hi all! I'm iterating over two list, and I need to shown if an element of the
second list belongs to the first.
Something like that:
iterator list1
print list1.actualElement.attributes...
iterator list2
if list2.element == list1.actualElement
print "yes"
Hi There,
i've implemented an Ajax FileUpload using struts 2.0.9. Works fine and
(since my last mail to this list) redirects to a result jsp.
But the Browser only shows [object HTMLDocument] inside the "targets"
div instead of the result page.
My Code.
enctype="multipart/fo
hi,
i can't believe that the problem is solved, i tried every thing as you all
know but my last hope was to install a fresh windows and believe what after
i had installed the application worked fine with the filter class i don't
know how.
but it is done thanks all of you for helping me that was re
Prashant Baviskar wrote:
Thanks Dave,
You are right,
However I asked it again to get right answer.
Anyways I tried with commons.apache.org
I want to use org.apache.struts.validator.
You stated previously that you want to implement validation in an
application that is not using Struts, so w
Laurie Harper wrote:
According to the documentation [1], the items in the list should get
selected automatically when the form is submitted -- i.e. the desired
behaviour / workaround is how the component is meant to work out of the
box. So, it sounds like a JIRA issue should be filed, but as a
According to the documentation [1], the items in the list should get
selected automatically when the form is submitted -- i.e. the desired
behaviour / workaround is how the component is meant to work out of the
box. So, it sounds like a JIRA issue should be filed, but as a bug
report rather tha
I'm having trouble overriding conversion errors for nested properties in
struts 2. I've read the webworks documentation about overriding conversion
errors for nested properties and it suggests to add the following to your
resource bundle:
invalid.fieldvalue.items[*].name=Some type conversion mes
Oleg Konovalov wrote:
make each button on the form a submit button
I can't do it, because button has to have image, so I use
Will that work ?
I believe so... best way to be sure would be to try it :) ... but I
don't see why it wouldn't.
Also, are you sure thisthis.form.rowId.value='${
Thanks for the explanation. What would you say the main rationale is then for
using Spring as a factory for the actions instead of the struts objectfactory?
Regards
Adam
[EMAIL PROTECTED] on 13/08/07 08:13, wrote:
Did you set this in your struts.xml ?
or
For Autowiring, it's enable by de
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Ahmed,
Ahmed Atif wrote:
> i'm using the post method but i will try to use GET if this will solve the
> problem
No, POST is much better, since the parameters will always be encoded
using the request body's encoding, which at least has an HTTP header
Oh; I misunderstood what you wanted--sorry.
OTOH this is probably an enhancement that people might
want (kind of makes sense you'd want to be able to
retrieve all the items from the right-hand list); if
you're feeling saucy maybe add a feature request JIRA.
--- Session A Mwamufiya <[EMAIL PROTECT
Actually, giving the lists a name and providing getters and setters just allows
us to get the selected element within the respective list. I was able to find
a suitable workaround by selecting all the elements in the list on an onclick
event, then I can get everything that I want.
Thanks,
Sess
I've done it in the past using a combination of SiteMesh and .
http://raibledesigns.com/rd/entry/dependency_injection_with_sitemesh
Matt
Joe Lam wrote:
>
> May I know what is your practice to do Sidebar thing? here the sidebar
> means a block lets say on the left side showing login form for g
What are the errors you're getting? "Not much luck" isn't very descriptive.
;-)
Matt
Ravi Vedala wrote:
>
> Has anyone tried integrating the woodstock JSF components in Struts 2 ? I
> tried but not much luck.
>
> Thanks,
> r-a-v-i
>
>
> -
> Pinpoint cu
I haven't tried working with Struts 2's annotations for validation yet, so
I'm unable to answer this question. In a week, things might be different.
;-)
Matt
strutstwouser wrote:
>
> Hi Matt,
>
> Can you please tell me what's needed to use this validator using
> annotations alone? . Also, i
Hi Matt,
Can you please tell me what's needed to use this validator using annotations
alone? . Also, i need a simple conditional validator - ie a field needs to
be validated only if a prerequisite condition is satisfied, else the
validations on it must be skipped and no error must be added (sinc
On the following page, it describes how you can create hierarchical i18n
files and Struts will scan the hierarchy for appropriate messages.
http://struts.apache.org/2.x/docs/internationalization.html
This works well for Actions, but since most of my messages are in JSPs, I'd
prefer to put the *.
Hello Paul,
but the bean is there - otherwise, the logic:iterate part wouldn't be
accessed at all after . I can't understand this.
Besides that, I now solved it this way:
I put the needed object to an already existing session object. Addressing
this way works fine.
BTW:
The jsp must be:
...
Give it an id (or name? I forget) and supply set/get
methods in the action?
Isn't it just two select boxes (for all intents and
purposes, at least regarding what you're doing)?
--- Session A Mwamufiya <[EMAIL PROTECTED]>
wrote:
> Expert struts programmers, please take a look at
> this thread. I
Struts isn't catching this exception because you're throwing it in a
JSP page which is being accessed outside the Struts servlet (directly
via a URL).
Try throwing the exception in a Struts action and see what happens.
But even if you do that you'll run into a problem with the current
setup. You'
Expert struts programmers, please take a look at this thread. I believe it
should be a straight forward answer, but I haven't received any replies since I
launched the thread. I don't mean to pester you, but I'm really trying to get
over this hurdle.
Thanks,
> Anyone familiar with the way th
Jan,
Add IFrameIO to your javascript since fileupload uses iframe io transport
instead of XHR.
dojo.require("dojo.io.IframeIO");
Refer to this article for details.
http://ajaxian.com/archives/dojo-uploading-files-and-contents-with-ajax
cheers,
Umesh
Jan Steinke wrote:
>
> Hi There,
> I would
http://struts.apache.org/1.2.9/userGuide/struts-logic.html#messagesPresent
--- [EMAIL PROTECTED] wrote:
> Hi,
>
> I have searched but found nothing about this. How
> can I fetch an specific error
> using without
> printing it to the page? Or
> somehow check if it exists?
>
> I want this becaus
Do you think leaving known broken code on the "Showcase" is a good idea
realizing developers are flocking to this resource to figure out how to do
things? If it is known not to work, maybe it should say this or be removed
from the Showcase!
On 8/10/07, Musachy Barroso <[EMAIL PROTECTED]> wrote:
>
Hi,
I have searched but found nothing about this. How can I fetch an specific error
using without printing it to the page? Or
somehow check if it exists?
I want this because I want to print the error with some styling in the html. But
I don't want that styling code to be in the html if the messa
Where are the "stock" validation messages located? Are we still required to
be copy them into our application message file?
--
Scott
[EMAIL PROTECTED]
Hi,
Has anyone tried integrating the woodstock JSF components (Sun's RI ) into
Struts 2 ?
r-a-v-i
-
Be a better Globetrotter. Get better travel answers from someone who knows.
Yahoo! Answers - Check it out.
Has anyone tried integrating the woodstock JSF components in Struts 2 ? I tried
but not much luck.
Thanks,
r-a-v-i
-
Pinpoint customers who are looking for what you sell.
>make each button on the form a submit button
I can't do it, because button has to have image, so I use
Will that work ?
Also, are you sure thisthis.form.rowId.value='${list.rowId}';
will work together with myform.action='action.do?command=notify'
I think, Javascript will get screwed up -
i need to configure struts to display user a errpage.jsp, when runtime
exception CustomException occur anywhere in the application. i've added to
struts-config:
and to web.xml:
500
/ErrorPage.jsp
when i browse page _spikeScriptletThrowingEx.jsp:
<%@ page language=
Make sure you're not redirecting. You will lose request attributes if you do
so.
On 8/13/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> Hello!
>
> I'm getting a currious errormessage, which I'm not understanding with the
> background written later on:
>
> javax.servlet.jsp.JspException: No g
Oleg Konovalov wrote:
No, I am not using any AJAX.
On Submit it supposed to process that row, go to DB and refresh the whole
page,
so to come back on the same page.
Also, my form is declared as , so onClick I use
"form.action='action.do?command=notify'", I can't get rid of it,
but it doesn't wa
Hello!
I'm getting a currious errormessage, which I'm not understanding with the
background written later on:
javax.servlet.jsp.JspException: No getter method for property: "errorm" of
bean: "camp"
Background:
The bean camp is set while validating, because an error happened. Therefore,
the o
No, I am not using any AJAX.
On Submit it supposed to process that row, go to DB and refresh the whole
page,
so to come back on the same page.
Also, my form is declared as , so onClick I use
"form.action='action.do?command=notify'", I can't get rid of it,
but it doesn't want to coexist with any J
We've had to override and customise customise the xhtml freemarker
templates. It's pretty easy and effective. All you do is explode the struts
core jar and copy the template files (.ftl extension) you want to change to
a template directory in the root of your app. Modify as you need.
I know there'
Anyone familiar with the way the tag works? I'm
looking to retrieve the content of the entire right-hand list (not just a
selected item in it). I would assume that there's a way to do that, but I'm
not sure how. Any ideas?
Thanks,
> Hi,
>
> I've been stuck trying to capture, in my action
Any solution has to be javascript based. The question is wether you want a
server side visit or not. And that is dependant on how much data variability
there is in your second select list.
In our case if there are only a limited number of variations we download
them all as part of the initial page
So far, i've been able to define the actual validation on the domain
attribute addressline1, by putting @VisitorFieldValidator on the setters of
all objects that contain it (ie application,primaryapp,address) . Now, i
need to restrict the validation depending on the method called within the
Action
I apologize profusely for what has got to be a FAQ, but I can't find
reference to this at all, either Googling or in my message archives.
I have the classic problem of 2 select boxes, and the values of the
second select will change based upon the choice in the first box. I am
using a simple t
Thanks Dave,
You are right,
However I asked it again to get right answer.
Anyways I tried with commons.apache.org
I want to use org.apache.struts.validator.
& want to know the class which explicitly calls other classes responsible
for validation after the form is submitted
-Original Mess
Has anyone been able to get the tree select "selection" to work?
http://www.planetstruts.org/struts2-showcase/tags/ui/showDynamicTreeAction.action
Selecting a tree node does not invoke the action class wired to the tree.
--
Scott
[EMAIL PROTECTED]
--- Session A Mwamufiya wrote:
> readonly="if(%{editingFlag==true}){return 'true'}"/>
>
> but the textfield is not readonly, and the page
> source reflects it. BTW, editingFlag is set in the
> prepare() method of my action.
>
> Any idea on how to write the evaluation?
Try something like:
%{ed
Look at Apache commons-validator... asking the
question in many different ways will not generate
significantly different answers.
http://commons.apache.org/validator/
d.
--- Prashant Baviskar <[EMAIL PROTECTED]>
wrote:
>
>
> Hi,
>
> I have a struts application.
>
> I am separating business
In your Action, add an String attribute named editingFlag with a getter
and a setter. Set the value ("true" or "false") of editingFlag in the
method forwarding to your JSP.
In the JSP :
"Session A Mwamufiya" <[EMAIL PROTECTED]>
13/08/2007 12:46
Veuillez répondre à
"Struts Users Mailing Lis
May I know what is your practice to do Sidebar thing? here the sidebar means
a block lets say on the left side showing login form for guest user and
showing user menu for logged in user.
?
?
or do it in decorator level (sitemesh) ?
thank you very much.
Joe
--
View this message in context:
h
Hi all! I'm iterating over two list, and I need to shown if an element of the
second list belongs to the first.
Something like that:
iterator list1
print list1.actualElement.attributes...
iterator list2
if list2.element == list1.actualElement
print "yes"
else
pri
Hi,
I have a struts application.
I am separating business logic from presentation logic & going to expose
this business logic as web-service.
I want to explicitly call validation framework of struts from web service.
Please Help
--Thanks & Regards
Prashant Baviskar
http://www.pa
Hi,
I would like to set a textbox to readonly when a flag is set in my action. I
have the following jsp call:
but the textfield is not readonly, and the page source reflects it. BTW,
editingFlag is set in the prepare() method of my action.
Any idea on how to write the evaluation?
Thanks,
S
Thanks all for replying.
Here is my actual problem statement:
I have one web project named eg. "Training"
and 2nd project named eg. "Test".
The login to application is through the "Test" Project. I want a link in the
Test project which points to the "Training" project and this 'Training"
project sh
Hi,
I've been stuck trying to capture, in my action, the set of elements placed in
one of the lists of an tag. I can refer to the
selected element in the list by using the name of the list, but how do I access
all of the elements in the list? (they were obtained by shifting items from
the o
Are you submitting any request params or simply redirecting it to the new
URL??
I hope simple re-directing should work. For that you can specify
redirect=true as an attribute in the forward tag.
-Original Message-
From: Pooja Kaur [mailto:[EMAIL PROTECTED]
Sent: Monday, August 13, 2007 2:
Please anyone reply
On 8/13/07, Pooja Kaur <[EMAIL PROTECTED]> wrote:
>
> Hi,
> I have 2 war files added to an EAR. Both of them have a different context
> root. Eg. Module A has test1 as the context root and Module B has test2
> I did the following in the struts-config of Module A which is
Hi,
I am new to struts.
Can any one explains when we submit the form,
How the struts-config.xml is read,
How form bean is populated,
>How validator plug-in is read from deployment descriptor.
>How validation is performed
& how execute method gets called.
Question indicated with
Hi,
I've followed the examples in the InfoQ-Book "Starting Struts2"
regarding CRUD.
But there is an issue with the following action:
/{1}/view.action
the request on this Action results in an exception:
Struts Problem Report
Struts has detected an unhandled exception:
# *Messages*: Ther
Thanks Paulus,
I have to populate an ActionForms object first which happens in struts after
submitting form. & then struts validation does it's work before calling the
execute method.
I want to do the same explicitely.
Can you tell me the class which reads struts-config.xml, in which we add
vali
The application.xml file of the EAR has two different wars with different
context roots specified for them? What else should I update to imply to the
server that the context root has changed?
I tried by adding a global forward:
and put the url as test2. But , when I run the appl, the complete ur
> On 8/13/07, Prashant Baviskar <[EMAIL PROTECTED]> wrote:
> >
> > struts application.
> >
> > I want to make use of above files (validation.xml, validator-rules.xml,
> > other validation files)
> >
> > for validating same fields using Struts Validation framework
> >
> > How can I use these files f
You will have to populate an ActionForm object, for the Validator requires
that.
On 8/13/07, Prashant Baviskar <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I have validation.xml & validator-rules.xml & many other validation rules
> files in my existing struts application.
>
> I have other desktop applic
Struts Version is : 1.1
One more strange thing that is happening is:
If i put the url as :
http://localhost:9080/spmod/toModule.do?prefix=&page=/forwardToTrainingDB.doand
debug, I reach the ActionClass having 'forwardToTrainingDB' as the
action mapping, and then I get 404 error.
It seems like it i
SwitchAction does not switch between applications. It switches between
Struts modules within one application. What you want to do is include the
context root in your paths. There's an attribute for that. I believe it's
contextRelative=true
Paul
On 8/13/07, ANIMESH SAXENA <[EMAIL PROTECTED]> wrote
Could you please mention which struts version??
On 8/13/07, Pooja Kaur <[EMAIL PROTECTED]> wrote:
>
> Hi,
> I have 2 war files added to an EAR. Both of them have a different context
> root. Eg. Module A has test1 as the context root and Module B has test2
> I did the following in the struts-config
Great, thanks! it worked.
Best,
Session
> Hi,
>
> I had the same problem, and added in my struts.xml :
>
> execute,
> input,back,cancel,browse, detail, delete, goAdd, goModif, view
>name="excludeMethods"> execute,input,back,cancel,browse, detail, delete,
> goAdd, goModif, view
>
> So
Hi,
I have validation.xml & validator-rules.xml & many other validation rules
files in my existing struts application.
I have other desktop application which has same fields like forms in the
struts application.
I want to make use of above files (validation.xml, validator-rules.xml,
other valida
Hi There,
I would like to upload some jpegs with struts 2.0.9 and redirect to
another site after the Action returns SUCCESS.
I tried is like this ( after reading the file upload example from the
struts 2 showcases):
uploadPictureForm.jsp:
enctype="multipart/form-data">
Did you set this in your struts.xml ?
or
For Autowiring, it's enable by default. But you can customise it :
http://struts.apache.org/2.0.9/docs/spring-plugin.html
The framework enables "autowiring" by default. (Autowiring means to look
for objects defined in Spring with the same name as yo
Hi,
I have 2 war files added to an EAR. Both of them have a different context
root. Eg. Module A has test1 as the context root and Module B has test2
I did the following in the struts-config of Module A which is the default
module:
1. Added an action
2. The link to switch the module has the URL
Hi,
Copy the struts.jar templates into your application (at the root,
WebContent/templates for exemple), and modify the
WebContent/template/simple/*.ftl files at your convenience.
"Session A Mwamufiya" <[EMAIL PROTECTED]>
13/08/2007 08:57
Veuillez répondre à
"Struts Users Mailing List"
Hi,
I had the same problem, and added in my struts.xml :
execute,
input,back,cancel,browse, detail, delete, goAdd, goModif, view
execute,input,back,cancel,browse, detail, delete, goAdd, goModif, view
So
84 matches
Mail list logo