2007/5/16, David Miller [EMAIL PROTECTED]:
I'd like to be able to insert *portions* of another page using tiles.
I think that Sitemesh would be better for this task.
Antonio
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For
hi
im creating a application for online test so i have used a
link to submit using java script document.forms[0].submit();
but some time this is not getting submitted im last moment can u give me
idea for this . if i click again it gets submitted or if there is any time
difference
Ray Clough wrote:
I've got a large S1 app into which I'm putting S2 features - starting with a
How? Are you using S2 with the S1 plugin? Or just putting both versions
into one WAR and mix'n'matching?
LoginInterceptor, because the S1 security-implementation was NG. The S2
NG? No Good?
Hi,
If I use the datetimepicker and add the dateFormat=dd/MM/ attribute. When
the form is posted I get a convertor error. If I leave it as the default format
there is no problem.
Does anyone know why please.
Thanks
Dave.
I am trying to:
1. Instantiate jetty from code (easy)
2. pre-instantiate proper controller class (with mock data and without
spring) (easy)
3. Setup a minimal hard-coded struts action that will invoke the
controller instance and render the jsp. I am trying to do it inside
jetty but all I need is
Hi everyone !
I want to create a non-fixed size textarea. I want it to resize itself
depending on the amount of text received. For example if it receives 20
characters the size should be different to when it receives 200
characters without the need of scrolling. Is there functionality for it
Hi there !
No need to reply the Flexible textarea question. It was a matter of
counting the number of words and passing it as a string to the jsp value
for the cols bit. Like:
tr
tdbean:message key= /:/td
tdhtml:textarea rows=10 cols=%=count%
property=x
Hi all,
I try to separate the modules of my app in differents xml files, but the
extends seems to have problems.
Struts.xml :
struts
constant name=struts.enable.DynamicMethodInvocation value=false
/
constant name=struts.objectFactory value=spring /
constant name=struts.devMode
There's a known bug in the parsing of the struts.xml file, which I believe
has been fixed in the 2.0.2 version of the xwork library, that prevents it
from finding the packages that you define in struts.xml and later extend.
However, I was able to work around this problem by putting my own default
One more thing - once I upgraded to xwork 2.0.2, I was able to include my
default/base package include file first.
-- David
-Original Message-
From: David Chisholm [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 16, 2007 4:29 AM
To: 'Struts Users Mailing List'
Subject: RE: [s2] break
Hi,
Has anybody successfully used Velocity with Struts 2?
I understand that there is built in support for Velocity in Struts 2.
Can you point me to some online examples that I can use to see the use of
Velocity with Struts 2?
Thanks,
CS
hi
in a jsp file:
s:property value=index/
s:property value=#session.mydata.myarray[...?...].textfield/
how can i inject the
index' value to 'myarray' index
rgds
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
Hey all
I have the following lines in Struts.xml
global-results
result name=error/index/result
/global-results
global-exception-mappings
exception-mapping result=error exception=java.lang.Throwable/
/global-exception-mappings
But it won't catch exceptions where the user has
my question, my answer :)
made a mistake by trying to escape ...
s:property value=#session.mydata.myarray[index].textfield/
rgds
On 16.05.2007 12:52, Jaan Tark wrote:
hi
in a jsp file:
s:property value=index/
s:property value=#session.mydata.myarray[...?...].textfield/
how can i inject
Hi.
The code:
s:iterator value=collection of objects
tags:render-some-jsp-page /
/s:iterator
On this rendered page i had a tag which format and display properties of
this object.
I retrieve those fields,properties in this way:
stack.findValue(field) where stack is a ValueStack object.
So i
I need to use Interceptor to change a value of Action. For example, below is
my intercept method.
public String intercept(ActionInvocation invocation) throws Exception {
String result;
result = invocation.invoke();
MyAction action = (MyAction)invocation.getAction();
--- kong xx [EMAIL PROTECTED] wrote:
Why the interceptor cannot change the value after
invode invocation.invoke() method?
http://struts.apache.org/2.x/docs/writing-interceptors.html
Note in particular the big yellow box section about
when the invoke method returns!
d.
Hello,
I would like to allow my forms to load once before being validated.
That is the form should only be validated upon submission, not on load.
The way that I'm accomplishing this right now is by creating a separate
action to load the form, however this is starting to clutter up the
--- Daniel Henry [EMAIL PROTECTED] wrote:
I would like to allow my forms to load once before
being validated.
That is the form should only be validated upon
submission, not on load.
The way that I'm accomplishing this right now is by
creating a separate
action to load the form, however
If you are using IE make sure you set showLoadingText=false(nasty
difference with FF), and yes, it should work just assigning the form id to
the formId attribute, something like:
s:tabbedpanel ...
s:div theme=ajax id=parent
s:form id=myform ...
s:submit theme=ajax
The dateFormat should not be used and will be removed. Date will always be
submitted as RFC 3339.
musachy
On 5/16/07, David Harland [EMAIL PROTECTED] wrote:
Hi,
If I use the datetimepicker and add the dateFormat=dd/MM/ attribute.
When the form is posted I get a convertor error. If I
How can I format the displayed date?
-Original Message-
From: Musachy Barroso [mailto:[EMAIL PROTECTED]
Sent: 16 May 2007 14:10
To: Struts Users Mailing List
Subject: Re: datetimepicker dateformat problem
The dateFormat should not be used and will be removed. Date will always
be
use displayFormat
musachy
On 5/16/07, David Harland [EMAIL PROTECTED] wrote:
How can I format the displayed date?
-Original Message-
From: Musachy Barroso [mailto:[EMAIL PROTECTED]
Sent: 16 May 2007 14:10
To: Struts Users Mailing List
Subject: Re: datetimepicker dateformat problem
This is a Struts 2 question.
I'm looking for a common solution to the problem stated in the subject.
The easiest way to explain what exactly I want is with an example.
I have two actions:
1) ListAction, that displays a list of database entries.
2) CreateAction, that receives input from a form,
I have a code in JSP file
span id=oamHeaderDateTimeInfo%= userDate() %/span
and I'm updating it using AJAX . but surprisingly, the control doesnt go
to this userDate() function again ..due to which my date time is not
gettingupdated .
Pls help.
Thanks
Kavita
Sorry Musachy that was a typo I mean't displayFormat. If I use
displayFormat=dd/MM/ I get a convertor error when I post the form.
-Original Message-
From: Musachy Barroso [mailto:[EMAIL PROTECTED]
Sent: 16 May 2007 14:19
To: Struts Users Mailing List
Subject: Re: datetimepicker
When you say your updating it using AJAX, do you mean you are making
an AJAX request and putting the results into oamHeaderDateTimeInfo? Or
do you mean you are making an AJAX request who's response is generated
by this JSP? If the former, then it makes perfect sense: userData() is
a
Is there any particular reason your doing the submit via Javascript? If
not, I'd suggest using a plain old submit button and see if you still
have the problem. If you do have a reason for doing it this way, try
giving the form an id and submit it via
document.getElementById(xxx).submit() ...
Dave Newton wrote:
--- Daniel Henry [EMAIL PROTECTED] wrote:
I would like to allow my forms to load once before
being validated.
That is the form should only be validated upon
submission, not on load.
The way that I'm accomplishing this right now is by
creating a separate
action to load
Then you are probably another victim of:
https://issues.apache.org/struts/browse/WW-1917
only work around is to have a String property for the date, or define your
own type converter.
regards
musachy
On 5/16/07, David Harland [EMAIL PROTECTED] wrote:
Sorry Musachy that was a typo I mean't
I am trying to accomplish the following:
1. I am on a page and would like the user to click on a link which would
invoke my popup window picker.
2. The popup window is an Action that allows the user to make a multi
selection.
3. After the user selects his values and clicks ok, I would like the
Can someone identify the attributes of this example code, preferably
in the documentation itself?
http://struts.apache.org/2.x/docs/select.html
s:select label=Pets
name=petIds
list=petDao.pets
listKey=id
listValue=name
multiple=true
size=3
1. I am on a page and would like the user to click on a link which would
invoke my popup window picker.
Sorry, but what is a popup window picker? I've a need to display popup
windows in my application I've tried googling and can't find
anything.
Incidentally, has anyone tried overriding the
On 16/05/07, Mansour [EMAIL PROTECTED] wrote:
Mansour wrote:
I found it. I'll post it just in case someone needs it. I used %{id}
instead of ${id} and EL expression is evaluated immediately on the
first load. I don't know why. I 'd love to hear explanation form
someone. But it's working after
Dear Struts users,
I've recently downloaded displaytag-1.1 and followed all the instructions on
how to install it.
It would have been too nice if it had worked immediately, but I get this
annoying error message all the time.
I ask you guys how to solve this, because I found no posts on this
Thanks for your help, I got it.
Dave Newton-4 wrote:
--- kong xx [EMAIL PROTECTED] wrote:
Why the interceptor cannot change the value after
invode invocation.invoke() method?
http://struts.apache.org/2.x/docs/writing-interceptors.html
Note in particular the big yellow box section
I'm having a similar issue with S2 as well. When using the validation xml it
will work but when using annotations it does not. Any clues to this would be
help full.
Thanks
Richard Jackson
On 5/16/07, Daniel Henry [EMAIL PROTECTED] wrote:
Dave Newton wrote:
--- Daniel Henry [EMAIL PROTECTED]
2007/5/16, Balazs Michnay [EMAIL PROTECTED]:
Any ideas what to do now?
Asking the displaytag mailing list would be nice! :-P
Antonio
Hi,
With this declaration, your server has to have acces to the Internet, to
download the tld and so one. If you don't have this acces, try to download
the tld file, add it in your WEB-INF/tld folder, and add the mapping in
your web.xml.
Regards,
Michaël
Balazs Michnay [EMAIL PROTECTED]
--- Gena Batsyan [EMAIL PROTECTED] wrote:
This is a simple requirement, that is needed in
almost any webapp I can imagine, and I absolutely
believe something like this must be a core
feature.
I'm not entirely sure I complete understand what
you're asking for.
The *most* common solution for
2007/5/16, [EMAIL PROTECTED] [EMAIL PROTECTED]:
Hi,
With this declaration, your server has to have acces to the Internet
Wrong, as long as the TLD file is in the META-INF folder of DisplayTag
package, the URI will point to the local TLD file.
Hello,
there is a way to have menu
using tags in Struts2
or we must use external tags libraries?
Thanks
Stefano
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--- [EMAIL PROTECTED] wrote:
Can someone identify the attributes of this example
code, preferably in the documentation itself?
http://struts.apache.org/2.x/docs/select.html
s:select label=Pets
The label.
name=petIds
The action property.
list=petDao.pets
Where the
Thank you for your help.
It works fine for me!
Thomas Ramapuram escribió:
We do this quite often. We have a method which goes through the array
and inserts the elements as new dom input objects of type hidden and
name the name of the element in the form bean with an array index. eg.
input
--- Roger Varley [EMAIL PROTECTED] wrote:
Is there any clear documentation that will explain
when you need to use '%', '$' or '#' in Struts2
.jsp
pages as I'm finding it all very confusing.
I thought there was, but I can't access it at the
moment.
In a nutshell, if you use ${} you're using
Dave Newton wrote:
--- Gena Batsyan [EMAIL PROTECTED] wrote:
This is a simple requirement, that is needed in
almost any webapp I can imagine, and I absolutely
believe something like this must be a core
feature.
I'm not entirely sure I complete understand what
you're asking for.
The
Dave you are a funny guy! Let's try this again.
On 5/16/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
Can someone identify the attributes of this example code, preferably in the
documentation itself?
http://struts.apache.org/2.x/docs/select.html
s:select
name=petIds
I'm interested in some of the bug fixes going into 2.1.x (particularly around
conversion errors w/ the datetimepicker tag).
http://struts.apache.org/dev/builds.html says there's a nightly build of the
development tree, but when I looked on
http://people.apache.org/builds/struts/nightlies/ all
--- [EMAIL PROTECTED] wrote:
1. Where is the getPetDao() method expected to be
coded? I'd like to set this data from my Tiles
Controller.
It can be coded anywhere, but like most of the other
tags, is expected to be accessible via the OGNL stack.
2. Where do the properties listKey/listValue
Any takers?, even saying Nope, not possible in a nice way would be useful.
---BeginMessage---
I've got an application which has a dynamic number of customisable fields
attached to each record. The customisable fields have a display name, an
internal name, and a value. Some records have no fields
--- Gena Batsyan [EMAIL PROTECTED] wrote:
Dave Newton wrote:
--- Gena Batsyan [EMAIL PROTECTED] wrote:
Messages for that are generally stored in a
flash-like context (session but with automagic
removal after the next request completes).
that' Interesting. Where can I read about
S2? Build an array or map of the form fields and
provide an appropriate setter in the action.
Probably easiest to build the form tags by hand (i.e.,
non s:xxx.../ tags). So you'd iterate over the
dynamic fields, create the tags. On submit you'd end
up with a list (or map, or whatever) of the
I'm trying to split my Struts 2 app up a bit using namespaces, but have run
into a bit of trouble
I have an action mapping that works fine without a namespace, but when I
move that same action to another package with a namespace, the action
returns a blank page. I'm not seeing any errors in the
Displaytag works fine for me in struts1.3 just doing the things below.
Perhaps you need to re-deploy your webapp or re-start tomcat.
mas
Balazs Michnay wrote:
Dear Struts users,
I've recently downloaded displaytag-1.1 and followed all the instructions on
how to install it.
It would have been
Hello,
I use struts 2.0.6.
Below is a record from the log file when I call a page with parameter ac=XXX
[#|2007-05-15
16:10:30,860|ERROR|com.opensymphony.xwork2.interceptor.ParametersInterceptor|setParameters:198|ParametersInterceptor
- [setParameters]: Unexpected Exception catched: Error
I use a name space as well and it works just fine.
Here is the snippet:
struts
package name=default namespace = /mynamespace
extends=struts-default
action name=myIndex class=myAction method=myIndex
result name=success/index.jsp/result
etc.
When I call the action:
I'm just mix-and-matching - not using S1 plugin. But the S2 Filter, mapped
to /* ought to catch all requests, because filters execute before
servlets. Therefore I wonder why the LoginInterceptor doesn't get executed
on S1-generated requests (ie. those with a *.do url, or even with a *.jsp
url).
Which Ajax Framework is in use ?
If it´s an JSON-Respone-Object:
see RFC 4627 for details.
http://www.ietf.org/rfc/rfc4627.txt?number=4627
regards,
toepper
-
Jetzt Mails schnell in einem Vorschaufenster überfliegen. Dies
That's just what I was looking for, thanks Dave. I was looking for a way to
do it with s:xxx/ tags, so I'm now more confident it's best done without
them as opposed to thinking I might have missed something.
Thanks again,
Al.
-Original Message-
From: Dave Newton [mailto:[EMAIL
Reported with Key WW-1928 and assigned to you.
-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Laurie Harper
Sent: 15 May 2007 22:02
To: user@struts.apache.org
Subject: Re: [s2] Can someone with permissions update the wiki
Hmm, the struts.apache.org/2.x/docs site is
Gena Batsyan wrote:
As I said, if using chain, the whole load of parameters is applied to
the second action, which I want to avoid, I want it to get nothing
except of what I'm explicitly define.
It sounds like you're trying to use the wrong tools. You're looking for
a way to trigger the
Looks like what I've got. My thought is that this is related to other parts
of the application, like Sitemesh or Acegi (security). I'll try eliminating
those as variables and post my findings.
Thanks for the info.
Matt
sr wrote:
I use a name space as well and it works just fine.
Here is
The main part I'm having trouble with is keeping the association between the
editable field name and the editable value, so if we start with
Phone1 : 555-12345
And the user changes the field name and value to be
Fax : 555-12346
Getting the action to recognise that it should update the both
Just off of the top of my head I would probably use a
collection or map of name/values... so the tag might
look something like:
s:textfield name=pairs[fieldId].fieldName/
s:textfield name=pairs[fieldId].fieldValue/
etc. (with minor syntax changes depending on how
things are shuffled to the JSP).
A... (lightbulb moment). I thought you could only use array indexes
in the value attribute of s: tags.
So if I have a composite object which had fieldName and fieldValue I could
put;
CompositeObject[] getPairs()
in the action which uses the JSP to display the data and
Ah, yes. Looks like another case of user error.
My pages are located underneath the WEB-INF folder of the web app, which I
mapped like so:
result name=inputWEB-INF/pages/clientSearch.jsp/result
This worked fine, until I added the namespace to the package, which resulted
in URLs like this:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Dave,
Dave Newton wrote:
Someone else may have a better idea, but I think this is just the
nature of the way HTTP works: you can forward or redirect; forward
means you get the same request, redirect means you get a new one.
I'm not entirely sure
Thanks d! It appears that if neither you nor I can easily drop a s:select
/ on a page and wire it up without fuss-n-muss, perhaps it is causing
others grief too. I just think something this typical should be simple to
code.
Scott
On 5/16/07, Dave Newton [EMAIL PROTECTED] wrote:
--- [EMAIL
Daniel Henry wrote:
Dave Newton wrote:
--- Daniel Henry [EMAIL PROTECTED] wrote:
I would like to allow my forms to load once before
being validated. That is the form should only be validated upon
submission, not on load. The way that I'm accomplishing this right
now is by
creating a
--- Christopher Schultz wrote:
Dave Newton wrote:
Someone else may have a better idea, but I think
this is just the nature of the way HTTP works: you
can forward or redirect; forward means you get the
same request, redirect means you get a new one.
I'm not entirely sure this is true, at
Sounds like an unrelated issue to me. There's not enough information
here to tell what the problem is. For example, what annotations did you
configure? How did it not work? What did you do that did work? What does
your configuration and action code look like?
Start a new thread with a
But it is simple :-) The note in the docs about 'If the list is a
Map...' is just telling you that the tag will automatically use the map
key/value pairs to fill the option tags -- i.e. that these are (roughly)
equivalent:
s:select list=someMap.entrySet()
listKey=key
Hi ,
i wish to implement datagrid in struts ...query's, validations, type of
boxes and other things will be in XML file ...I have to parse it and know
the query and depending on the query i have to get the fields. I have to
give an edit option for the fields.
At present what I am doing is I am
Just as a little added pointer, instead of CompositeObject[] getPairs()
you could make that MapString,CompositeObject getPairs(), where the
map key would be the field ID. That would handle non-zero-based,
non-sequential field IDs cleanly. There are some caveats if you would
need the map key to
--- Laurie Harper [EMAIL PROTECTED] wrote:
Just as a little added pointer, instead of
CompositeObject[] getPairs() you could make that
MapString,CompositeObject getPairs(), where the
map key would be the field ID. That would handle
non-zero-based, non-sequential field IDs cleanly.
Sorry,
Jason,
Using the includeParams=all attribute of the s:url tag will probably give
you what you need.
s:url id=refreshURL includeParams=all action=/RefreshAction /
Marco
On 5/15/07, Jason Wyatt [EMAIL PROTECTED] wrote:
Hi Marco,
I tried using the code template you gave, but couldn't get it
OK, now I'm going to show my lack of knowlege, whats the best way to
access the map?
I was going to do the following in an iterator over an array of
composite objects constructed in the display action;
s:hidden name=composites[count].id /
s:textfield name=composites[count].fieldname /
first of all , i know it's not all or nothing, i know that struts2 has a
plug-in for jsf, my question ism why? what does JSF connection to struts2
gives me? i know that struts2 tags give me automatic validation messages
atttached to each control, automatic layout (too restrictive) ajax
There's a FAQ and a Cookbook area
* http://struts.apache.org/2.0.6/docs/faqs.html
* http://struts.apache.org/2.0.6/docs/cookbook.html
As to best practices, I started a list of Struts 2 Tips, but I had
to set it aside to meet some other deadlines.
* http://husted.com/struts/tips/index.html
Awesome! It looked like using the Map saved time and I was looking for a
second opinion. I have it working the way you have identified it here, but
just wanted to make sure it was not some twisted end-around solution that
people would laugh at later!
Say, if I want to display an item's value
--- [EMAIL PROTECTED] wrote:
Say, if I want to display an item's value from the
map, what is the syntax?
I tried this, but obviously this was too intuitive.
s:property value=someMap[someKey] /
That's what I do. With names changed to protect the
innocent, here's one of my textfields:
Dave:
For a moment I thought I am the only one struggling with this. Thank you
for the clarification. Do you know any tutorial with examples ?
Dave Newton wrote:
--- Roger Varley [EMAIL PROTECTED] wrote:
Is there any clear documentation that will explain
when you need to use '%', '$' or
I'm getting the following stacktrace using 2.0.7 while trying to pass action
values during an action redirect result (action config below) and I'm wondering
if this is a bug with the test build I'm using or if this is user error
(probably the later). I followed the
Does it not work or are you just getting the WARN?
With devmode turned on I'm pretty sure I've seen the
same logs for previous versions as well.
d.
--- Jon Wilmoth [EMAIL PROTECTED] wrote:
I'm getting the following stacktrace using 2.0.7
while trying to pass action values during an action
is there any way to make checkboxes created from a checkboxlist
formatted vertically by adding a br/ after each checkbox or some other
means. right now it just dumps them all out in a row.
same thing for the radio button options.
-- Allen
--- Mansour [EMAIL PROTECTED] wrote:
For a moment I thought I am the only one struggling
with this.
I'm pretty sure you're not! It gave me nothing but
grief for a few weeks, and I still get a little
confused sometimes.
One of the issues is that the tag library docs don't
specify which tag
We use displaytag with S2 with no issues. When deployed on Tomcat 6 we did
have to use this tag declaration
%@ taglib uri=/WEB-INF/displaytag-el-12.tld prefix=display %
And place a copy of the tld file in the WEB-INF directory.
Z.
Dear Struts users,
I've recently downloaded displaytag-1.1
It appears to work. I'm just leary of having stacktraces in my log file ;) If
turning devmode off will eliminate it I'll try that.
- Original Message
From: Dave Newton [EMAIL PROTECTED]
To: Struts Users Mailing List user@struts.apache.org; Jon Wilmoth [EMAIL
PROTECTED]
Sent:
--- Jon Wilmoth [EMAIL PROTECTED] wrote:
It appears to work. I'm just leary of having
stacktraces in my log file ;)
They're good for you; exercises disk failure modes.
Definitely see if turning devmode off fixes it;
there are a fair number of messages that are useful
in... um... dev mode
Hi,
We have the following in the struts 1.x
html:text property=studentId size=7
maxlength=7/
when I try to convert this to S2 I can't see the size
and the maxlength properties
for e.g.
s:text name= id=/s:text
What I can see is only name and id attributes only.
I thought S2 tag library got
Where does one download the struts-bean.tld file and the others??
Thanks,
Vikas.
On 5/16/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
Hi,
With this declaration, your server has to have acces to the Internet, to
download the tld and so one. If you don't have this acces, try to download
the
Hi,
I am working on a bug in my application, the problem is, the session expires
every 2 minutes or so and I have to log back in to continue, this is very
frustrating. How do I go about debugging this? Which areas of the code do
you guys think would be best to check for errors?
Any inputs would
Hi,
look at you web.xml, you may have specified session time out time as 2 mins.
session-config
session-timeout30/session-timeout
/session-config
if you set this as 30, the session will time out after 30 min of idle time,
Thanks
Nuwan
- Original Message -
From: vikas rao
I did check the session time out tag, it is:
session-config
session-timeout3600/session-timeout
/session-config
But inspite of this, error comes from my logout.java:
if ((request.getSession() == null) ||
(request.getSession().getAttribute(userType) == null))
This is not a struts related issue, check your logic in the code, the
attribute userType may be not in the session.
Thanks,
Nuwan
- Original Message -
From: vikas rao [EMAIL PROTECTED]
To: Struts Users Mailing List user@struts.apache.org
Sent: Thursday, May 17, 2007 5:32 AM
95 matches
Mail list logo