Hi,
I usually access my cached droplist data directly from the jsp - eg have placed
a bean called "ReferenceDataCache" on application scope with getter methods. In
jsp I can simply call:
I also try to keep my struts forms only containing properties for the http
posted data.
The co
Dear All:
I'm using Struts 1.3.5 in my content management web application. I have
a form with a dynamic
list. To validate it, I used the following in my validator.xml to loop
over all elements of the
list "childrenForm" of my main form:
key="error.ca
Definitely (1) if you are strictly following MVC.
Is there any specific scenario wherein (2) seems good to you? If there is
then explore ways to force it thro' controller
On 2/2/07, Zhang, Larry (L.) <[EMAIL PROTECTED]> wrote:
Think about a typical struts app, and on the jsp there are text f
Think about a typical struts app, and on the jsp there are text field
and drop downs. There are two approaches:
(1) the action populates all the text fields and drop downs from the
Database, and then set the value into the actionform, then the JSP will
get the values from the actionform
(2) the
--- Don Brown <[EMAIL PROTECTED]> wrote:
> This doesn't seem right... see if you can't write a
> unit test that replicates this problem and open up a
> ticket on jira.
It wasn't immediately clear to me how to deal with all
the namespace stuff in the test (I don't know if the
namespace is in the p
Wesley - yes, that's it. Thanks for both clarifying my question and
answering it. :)
Now, this really solves the problem when the property is on value stack. Is
there a way to access other (non-root) objects using this notation? E.g. I
have attribute "title" defined in Tiles, also with a key rathe
My mistake, you're right. I also thought you were looking for a
specific answer :)
I believe the text tag only looks up keys from property files, to obtain
a value that is on the stack you want to use the property tag.
/Ian
Wesley Wannemacher wrote:
I could be wrong, but you may be misun
I could be wrong, but you may be misunderstanding the poster's intent. He
has a variable on the value stack that indicates which property key he wants
to retrieve. If my understanding is correct, then I would not really be any
help, but has the OP tried:
?
P.S. I have a post from last week or
I think you may be confused, you say
The value of myKey is "some.resource.key", and in the
property file I have:
some.resource.key = Some text
In fact, "some.resource.key" is the key and "some text" is the value.
Try -
/Ian
--
From Down & Around, Inc.
Innovative IT Solutions
Software
Hi,
Using Struts2 (2.0.5 snapshot) in a project, I hit the following problem: I
have a resource bundle key that I need to use with tag to retrieve
a text from my resource bundle. The name of the key is in a property myKey
in the value stack. The value of myKey is "some.resource.key", and in th
--- shahab <[EMAIL PROTECTED]> wrote:
> I dont have struts2-Spring-plugin.jar.
That will be a problem.
Like I said before, I'm using the one from the sample
apps (I'm using the one from showcase).
> but I couldnt find it anywhere.
Search is your friend, either the broken Windows
version, or cy
Hi:
I dont have struts2-Spring-plugin.jar. This was specified in the list of
jars at the wiki, but I couldnt find it anywhere.
thanx
Dave Newton-4 wrote:
>
> Do you have the spring plugin jar? I think you
> answered this already but I can't find it.
>
> --- shahab <[EMAIL PROTECTED]> wrote:
Hi all,
is it possible to pass parameters on s:commandLink?
If so, how can I send and get this parameter?
Thanks,
Rodrigo Pereira
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Sorry but I think I could not explain what I want
I want to create a using a key and a value List which will be get
from struts.properties file.
If you can give me a sample of struts.properties file (how to write the
values and keys on this file) and example, I would appreciate.
Thanks for you
On 2/2/07, Givler, Eric <[EMAIL PROTECTED]> wrote:
MJ>If you don't use Javascript, how do you supply id of an item to edit?
Right now, it's a hyperlink.
The previous Model 1 based version of the application used a button, and then it cycled through all
the rows (it had a rowcount as a hidden v
Oh, try this:
The problem is your empty list attribute. Just give it the map and it
should know what to do.
Don
On 2/2/07, Struts2 Fan <[EMAIL PROTECTED]> wrote:
ERROR [jsp]: Servlet.service() for servlet jsp threw exception
tag 'select', field 'list': The requested list key '' could not be
On 2/2/07, Dave Newton <[EMAIL PROTECTED]> wrote:
One thing that just popped up is:
- I use tiles.
- I *had* a navigation link
- I *now* have a navigation link
- Link renders as "/foo/foo/bar.action" if I'm on
"/foo/bar.action" page, which I thought was weird,
since if I'm in the namespace alr
--- Caroline Jen <[EMAIL PROTECTED]> wrote:
> Does the Struts2 integrate with other open source
> products; such as DWR, JMOCK/Junit testing?
DWR ships w/ Struts2.
JUnit works with anything Java-esque; what do you mean
by "integrate with S2"?
d.
_
Do you have the spring plugin jar? I think you
answered this already but I can't find it.
--- shahab <[EMAIL PROTECTED]> wrote:
>
> Hi:
>
> I am getting the following error when I try to bring
> up my app -
>
> SEVERE: Exception starting filter struts2
> Cannot locate the chosen ObjectFacto
--- Don Brown <[EMAIL PROTECTED]> wrote:
> Hmm..they very well could be exclusive. I put the
> slashes in name thing in there to support folks that
> used XML configuration, but wanted to do more
> wildcard-type things with it.
...I also plan on using the new REST-ful mapper, so I
think I migh
ERROR [jsp]: Servlet.service() for servlet jsp threw exception
tag 'select', field 'list': The requested list key '' could not be resolved
as a collection/array/map/enumeration/iterator type. Example: people or
people.{name} - [unknown location]
at org.apache.struts2.components.Component.fieldE
Does the Struts2 integrate with other open source
products; such as DWR, JMOCK/Junit testing?
Expecting? Get great news right away with email Auto-Check.
Try the Yahoo! Mail Beta.
http://advision.webevents.yah
Hi:
I am getting the following error when I try to bring up my app -
SEVERE: Exception starting filter struts2
Cannot locate the chosen ObjectFactory implementation: spring - [unknown
location]
at
org.apache.struts2.config.BeanSelectionProvider.alias(BeanSelectionProvider.java:198)
I
The select tag works with a map as well, which the Properties class
implements. What error are you seeing?
Don
On 2/2/07, Struts2 Fan <[EMAIL PROTECTED]> wrote:
Hi I want to use the using the struts.properties file
struts.properties file
country.values = Italy,Holland
country.keys = 1,2
---
Hmm..they very well could be exclusive. I put the slashes in name
thing in there to support folks that used XML configuration, but
wanted to do more wildcard-type things with it. Codebehind is
generally meant for the more convention-based style.
Say more about what you don't like about how name
MJ>If you don't use Javascript, how do you supply id of an item to edit?
Right now, it's a hyperlink.
The previous Model 1 based version of the application used a button, and then
it cycled through all the rows (it had a rowcount as a hidden var). So, if the
request.getParameter("event_edit#
On 2/2/07, Givler, Eric <[EMAIL PROTECTED]> wrote:
I have a multi-record display grid and I want the user to be able to click a
button to Edit a record. Since the page also handles Loading the records, and
navigation to two other places, I was using the EventDispatchAction.
I tried mapping: e
--- Don Brown <[EMAIL PROTECTED]> wrote:
> Open up JIRA tickets for both. If possible, write a
> unit test for the action name slash issue that
> replicates your situation.
It's a conflict between the codebehind plugin and the
slashes stuff... when I remove the codebehind plugin
everything works
Hi I want to use the using the struts.properties file
struts.properties file
country.values = Italy,Holland
country.keys = 1,2
---
but requires list attribute. How can I solve this problem?
Thanks...
Open up JIRA tickets for both. If possible, write a unit test for the
action name slash issue that replicates your situation.
Don
On 2/2/07, Dave Newton <[EMAIL PROTECTED]> wrote:
My 2.0.4 config is identical(ish) to my 2.0.3 configs,
I have struts.enable.SlashesInActionNames in both
struts.pr
I have a multi-record display grid and I want the user to be able to click a
button to Edit a record. Since the page also handles Loading the records, and
navigation to two other places, I was using the EventDispatchAction.
I tried mapping: event_edit{?}=Edit, but the Edit method is never invok
I guess I figure out what is happening if I use s:form it does not
go to the action specified on the ajax4jsf tag, but if I change it to
h:form it works. :-(
On 2/2/07, PETER BLIZNAK <[EMAIL PROTECTED]> wrote:
myfaces tags gives you extermely simple way of creating your ui ...that,s al
Can anyone share me, how to build struts application with apache maven 1.1?
Hi
Can anyone share me, how to build struts applications with apache Maven?
Sounds like you have a problem interpreting the index within your nested
c:forEach. Share your jsp iteration code.
-Original Message-
From: Himstedt, Maik [mailto:[EMAIL PROTECTED]
Sent: Friday, February 02, 2007 9:24 AM
To: 'user@struts.apache.org'
Subject: Need help debugging Struts ap
Hello,
I'm experiencing something wierd with the Struts application I'm tasked to
take care off. The Struts version in use is 1.2.4, I use Eclipse 3.2.1 with
a few plugins (StrutsIDE might be iof interest here) for developing. The
application is hosted by Tomcat 5.0.29 locally during development a
Hello,
I'm wondering if one can include some html in a where passwordConfirmation is
such as passwordConfirmation = Password (confirmation).
In struts 1 there was an attribute (can't recall the exact name but
was something like filter="false" or such) that allowed html to be
interpreted.
Is th
My 2.0.4 config is identical(ish) to my 2.0.3 configs,
I have struts.enable.SlashesInActionNames in both
struts.properties and struts.xml (and in a re-jarred
core, just in case) and I still get the 'no action in
namespace' msg for my actions... um... with slashes.
Non-slashed action names work as
I am getting the following when I try to use the
taglib:
Servlet failed with Exception
java.lang.NullPointerException
at
org.apache.struts2.views.jsp.TagUtils.getStack(TagUtils.java:56)
at
org.apache.struts2.views.jsp.StrutsBodyTagSupport.getStack(StrutsBodyTagSupport.java:51)
He
Ron Chan i-tao.com> writes:
>
>
> i've put together a simple app to test the combination of codebehind/zero
> configuration and it seems to work quite well
>
> is there a way to use the redirect result without having to revert to
> putting in something in struts.xml?
>
> thanks
> Ron
>
Try
--- Struts2 Fan <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
One posible solution:
[...]
d.
It's here! Your new message!
Get new email alerts with the free Yahoo! Toolbar.
http://tools.search.yahoo.com
--- Struts2 Fan <[EMAIL PROTECTED]> wrote:
> I wonder if we can put the validation message
> whereever we want for each input field?
http://cwiki.apache.org/WW/form-tags.html
Search for "labelPosition".
If you need more control
http://cwiki.apache.org/WW/themes-and-templates.html.
d.
_
This example in http://struts.apache.org/2.x/docs/combobox.html is not
running properly in struts2.0.1
---
nextProblem is the url below is like that --->
myAction.action?myId=10&myName=name&mySurname=surname
Hi all,
I wonder if we can put the validation message whereever we want for each
input field?
For Example --> I want to put a validation message including an image on
the right side of the input tag.
Thanks for attention,
i've put together a simple app to test the combination of codebehind/zero
configuration and it seems to work quite well
is there a way to use the redirect result without having to revert to
putting in something in struts.xml?
thanks
Ron
--
View this message in context:
http://www.nabble.com/-
45 matches
Mail list logo