Yes. a simple TagSupport extended JSP-Tag
==
Dominik FISCHER
Fachinformatiker für Anwendungsentwicklung (IHK)
Straubinger Tagblatt
IDOWA FON: +49 9421 940 6842
Ludwigsplatz 30
Adam Hardy wrote:
What are the additional testing requirements? The returned result is a
string, the parameters used in the result config are strings--what's
left?
The unit test must additionally set up struts to be aware of the config.
Not if you're testing the action itself: check to see i
Dave Newton on 05/02/09 16:47, wrote:
Adam Hardy wrote:
Tell you the truth, I don't really dig the idea of having to specify
parameter in config file like that - I think it adds another thing
that can go wrong when you're refactoring. And it also needs special
testing requirements.
What are
Hi
I also need my Converter to be handled by Spring however I could not get it
to work as well.
>From my observation is that the Converter is set to X-Work but not to
Struts, there for the Spring plugin may not work there.
Please correct me if I am wrong.
Or is there a correct way to set it up?
Th
David C. Hicks wrote:
ChadDavis wrote:
"Harvey" is nice though. Great movie. There's a scene with this
slightly chubby lady singing that cracks me up completely.
Amazing, but you're the first person I've encountered who got the
reference to the movie. I had to explain it to everyone else
Most excellent! I just served that up to the team on our chat channel.
They're lovin' it.
ChadDavis wrote:
You want this one:
http://www.imdb.com/title/tt0042546/
On Thu, Feb 5, 2009 at 3:14 PM, Musachy Barroso wrote:
Ah, now you made curious...
musachy
On Thu, Feb 5, 2009 at 5:13 PM
Hello Everyone,
I am having a problem using struts2 version 2.0.11.2 along with tiles
version 2.0.6 and trying to run on OC4J, yet everything works fine on
Tomcat.
The error is that the resource is not found when including an action using
tiles insert attribute
The ex
You want this one:
http://www.imdb.com/title/tt0042546/
On Thu, Feb 5, 2009 at 3:14 PM, Musachy Barroso wrote:
> Ah, now you made curious...
>
> musachy
>
> On Thu, Feb 5, 2009 at 5:13 PM, David C. Hicks wrote:
>>
>> ChadDavis wrote:
>>>
>>> "Harvey" is nice though. Great movie. There's a sce
Ah, now you made curious...
musachy
On Thu, Feb 5, 2009 at 5:13 PM, David C. Hicks wrote:
>
> ChadDavis wrote:
>>
>> "Harvey" is nice though. Great movie. There's a scene with this
>> slightly chubby lady singing that cracks me up completely.
>>
>
> Amazing, but you're the first person I've en
ChadDavis wrote:
"Harvey" is nice though. Great movie. There's a scene with this
slightly chubby lady singing that cracks me up completely.
Amazing, but you're the first person I've encountered who got the
reference to the movie. I had to explain it to everyone else - the
magical, invisi
"Harvey" is nice though. Great movie. There's a scene with this
slightly chubby lady singing that cracks me up completely.
On Thu, Feb 5, 2009 at 3:00 PM, David C. Hicks wrote:
> I think we've got the problem solved now. One of the developers found that
> in one case the path was actually hard
Didn't my previous email answer your questions?
"Ok, let me try to clarify this, if the result of some action, lets
call it "firstAction" contains:
while the result of "secondAction" is executed, "secondAction" will be
on top of the stack, and it is not available by name in the stack.
Insid
I think we've got the problem solved now. One of the developers found
that in one case the path was actually hard-coded in a JSP. Ugh! We
also had not provided a namespace for our struts package, and so
apparently it was defaulting to the package name. Just little details
that get left unti
Hmmm, no reply. So I will bounce this issue one last time...
Up to now, nobody could tell me why an action called by "" is
not placed on the value stack the same way as an action called by URL.
Wolfgang
Wolfgang Knauf wrote:
Musachy Barroso wrote:
what does prints in the action result?
> 2) Is it possible to not have to have the base path defined in Struts at
> all? It seems to me that this would be the ideal solution.
If you deploy the app as the root app in the servlet container, then
your struts namespaces are essentially doing this. I think the net
effect is what you are
Hello everyone,
I have a type converter that needs to get access to my Spring managed
service so it can do a DB lookup. I was under the impression that the
struts-spring plug-in handled DI for the converter. However, when the
convertFromString method tries to access the service called
statusServi
Finally, in JSP(not through action) success by doing the following:
(1) Create "struts.properties" under WEB-INF/classes/
struts.custom.i18n.resources=globalMessages
(2) Create globalMessages_en_US.properties
label.test= test label value
(3) in JSP,
--
Lu Ying
Emi Lu wrote:
htt
Emi Lu wrote:
http://t.wits.sg/2008/06/23/howto-struts-2-i18n/
Did not success.
(1) in package.properties
label.code=example value
(2) Put package.properties under /WEB-INF/classes/
(3) in jsp
Still cannot see the result?
Again: are you accessing the JSP through an action?
Dave
Great! Thanks a lot for this, it was needed.
Musachy Barroso wrote:
>
> Ok, here is the Jira ticket:
>
> https://issues.apache.org/struts/browse/WW-2984
>
> I committed the changes to the iterator tag, here is how it works: New
> attributes "begin", "end" and "step" were added. They can be us
> 1) How would I go about changing that base context path "/harvey" into
> "/somethingelse"?
It depends on the container that you are using
> 2) Is it possible to not have to have the base path defined in Struts at
> all? It seems to me that this would be the ideal solution.
Nope
musachy
--
I have a project that originally started out being called "harvey"
because we didn't have a name for it. The URL's for our pages all end
up looking like:
http:///harvey/...
Now that we have a real name, that doesn't fly very well. I have two
questions with regard to this.
1) How would I
http://t.wits.sg/2008/06/23/howto-struts-2-i18n/
Did not success.
(1) in package.properties
label.code=example value
(2) Put package.properties under /WEB-INF/classes/
(3) in jsp
Still cannot see the result?
--
Lu Ying
---
Pretty straight forward tutorial:
http://t.wits.sg/2008/06/23/howto-struts-2-i18n/
Best regards,
Felipe Fraga
On Thu, Feb 5, 2009 at 5:29 PM, Emi Lu wrote:
> Hi Dave,
>
>>> (3) but I do not know how jsp can recognize "package.properties"?
>>
>> You're mis-understanding how the text is retrieve
> Musachy Barroso wrote:
> > at all. Can you check the file permissions on the libs, and
> make sure
Against better judgement, changed permissions to 777 on everything in
the app. User that owns the files is the same as the user that tomcat
runs as...so should be set there.
> > they are readab
Hi Dave,
(3) but I do not know how jsp can recognize "package.properties"?
You're mis-understanding how the text is retrieved from the JSP: the JSP
is calling the action's getText(...) method.
Are you accessing the JSP directly, or through an action?
I am new to struts2. I tried to use ge
Musachy Barroso wrote:
Changing the log levels won't probably help much, as the container is
failing to load the Struts2 filter, so no code from Struts is running
at all. Can you check the file permissions on the libs, and make sure
they are readable by the user that the tomcat is running under?
this comes straight from the doc (Doc)
http://struts.apache.org/2.1.2/struts2-core/apidocs/org/apache/struts2/components/Bean.html
<-- in jsp form -->
<-- jsp form -->
The value of foo is : , when inside the bean tag
HTH/
Martin
__
Correction: 2.4 container is needed for el scripting.
>> BTW, Dave Newton's suggestion of using ${ propertyname } is the way
to
>> go, assuming you're on a 2.3 servlet container. I completely
overlooked
>> the simple approach.
Notice: This e-mail message, together with any attachments, conta
Changing the log levels won't probably help much, as the container is
failing to load the Struts2 filter, so no code from Struts is running
at all. Can you check the file permissions on the libs, and make sure
they are readable by the user that the tomcat is running under? Also
check the tomcat log
> > Is there a way to make the framework itself log more?
>
> Set the log levels on S2, XW, and OGNL to DEBUG.
Where do I set the log levels? Sorry, this is my first strut2 app..so
am a noob 2 it!
> >> Can you reproduce the problem with a minimal WAR you can host
> >> somewhere?
Well, I know
Custom tag? Is this a custom JSP tag?
On Thu, Feb 5, 2009 at 2:21 AM, Dominik Fischer wrote:
> Hello folks,
>
> how can i access a property (i.e. data) of a class like
>
> public class BabyAction extends ActionSupport implements RequestAware {
>private List data;
>
>public Li
I'm not doing to well with remembering the simple stuff, am I?
:)
Thanks!
-Original Message-
From: Dave Newton [mailto:newton.d...@yahoo.com]
Sent: Thursday, February 05, 2009 11:58 AM
To: Struts Users Mailing List
Subject: Re: [S2] Dynamic form variable names
Kawczynski, David wrote:
>
Ok, here is the Jira ticket:
https://issues.apache.org/struts/browse/WW-2984
I committed the changes to the iterator tag, here is how it works: New
attributes "begin", "end" and "step" were added. They can be used by
themselves, or with List and Arrays, like:
...
...
...
Things to consider
Wick, Dan wrote:
Is there a way to make the framework itself log more?
Set the log levels on S2, XW, and OGNL to DEBUG.
(Well, probably don't need OGNL in this case.)
Can you reproduce the problem with a minimal WAR you can host
somewhere?
Tried pushing the war to an urelated server with no
>From the looks of it, your tag class is trying to call the getRequest()
method of the action class. That's completely unnecessary. It could
access the "data" property as it would for any pojo variable. No need
to deal with the request, much less the action class or any of its
methods.
BTW, Dav
Kawczynski, David wrote:
I don't have something that will receive that request and pass the
URL data to along. I was hoping to use struts2 for that. AFAIK, the
ActionSupport subclass would have to have to encapsulate properties
whose name is not known at compile-time.
So is there a way to h
(anyone got an explanation why there's not target attribute for the
s:a tag? fine, maybe call it "htmlTarget", so there's less confusion
between it and the "targets" attribute, for the ajax s:a tag. still,
i'm really surprised to discover that it's missing...)
Probably because the tag is,
> Do you have devMode turned on? Is logging turned all the way up?
Dev mode is on. Logging for the context (server.xml) is set to 10.
Is there a way to make the framework itself log more?
>
> What version of Tomcat are you *actually* using--5.0.15?
Tomcat is specifically 5.0.15 on HP-UX (UNI
Sorry -- I wasn't clear.
When I said "all the non-struts code already exists", I meant that the
code to look up a transaction based on encrypted names and values
exists.
I don't have something that will receive that request and pass the
URL data to along. I was hoping to use struts2 for tha
Adam Hardy wrote:
Tell you the truth, I don't really dig the idea of having to specify
parameter in config file like that - I think it adds another thing that
can go wrong when you're refactoring. And it also needs special testing
requirements.
What are the additional testing requirements? Th
Wick, Dan wrote:
Are you actually using Pell? I didn't see the library there,
and it could cause a startup issue (can't check at the moment).
I tried removing it, just to see what happens. Still get the stack
below. Note that it is in my classpath locally & runs fine there.
Do you have devM
Emi Lu wrote:
I got why: I have to name the same property file name as the action
class. Rename "package.properties" to ProcessInfo.properties, I got
correct result.
I just wonder isn't "package.properties" is recognized automatically?
May I know how to use "package.properties" to display g
Martin Gainty wrote:
Where is the upside down question-mark key???
˙ɔɐɯ ǝɥʇ uo ¿-ʇɟıɥs-ʇdo ǝɥʇ s,ʇı
Dave
-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.o
Kawczynski, David wrote:
I have a shoppingcart-esque form that submits to an payment vendor (EG
paypal) so the user can pay for something I'm offering.
This form needs to contain a hidden element that specifies a URL that
the payment vendor will access after the user pays for it; hitting the
URL
Dominik Fischer wrote:
how can i access a property (i.e. data) of a class like
public class BabyAction extends ActionSupport implements RequestAware {
private List data;
public List getData() {
return this.data;
}
public void setSearch(List data) {
t
Ok. Your idea worked allready. But know i have more properties to
transport. What do you say about following construction:
/Example Action/
public class EAction extends ActionSupport implements RequestAware {
private List data;
private Map request;
public void se
Hello folks,
how can i access a property (i.e. data) of a class like
public class BabyAction extends ActionSupport implements RequestAware {
private List data;
public List getData() {
return this.data;
}
public void setSearch(List data) {
I just noticed your action class already implements the RequestAware
interface. It should have something similar to the following:
private Map requestMap;
public void setRequest(Map request) {
...
this.requestMap = request;
...
}
Which means you can do this somewhere rele
You can have your actionsupport subclass implement the
org.apache.struts2.interceptor.RequestAware interface
This means your class will automatically get a Map which
is bound to the request attributes. You can add things
to that map and they will be set as request attributes.
And the good ne
Thank you,
that is a first help. But is there a possibility without using tags from
Struts? I don't know, i'm dreaming of things like
strutsActionSession.getAttribute("data"). Do you know something like this?
Kawczynski, David schrieb:
http://struts.apache.org/2.0.14/docs/set.html
-Or
I got why: I have to name the same property file name as the action
class. Rename "package.properties" to ProcessInfo.properties, I got
correct result.
I just wonder isn't "package.properties" is recognized automatically?
May I know how to use "package.properties" to display getText() in jsp
http://struts.apache.org/2.0.14/docs/set.html
-Original Message-
From: Dominik Fischer [mailto:fische...@idowa.de]
Sent: Thursday, February 05, 2009 8:59 AM
To: user@struts.apache.org
Subject: Access Struts2 Action Properties - Noob
Hello folks,
how can i access a property (i.e. data)
Good morning,
I got why: I have to name the same property file name as the action
class. Rename "package.properties" to ProcessInfo.properties, I got
correct result.
I just wonder isn't "package.properties" is recognized automatically?
May I know how to use "package.properties" to display ge
I have a shoppingcart-esque form that submits to an payment vendor (EG
paypal) so the user can pay for something I'm offering.
This form needs to contain a hidden element that specifies a URL that
the payment vendor will access after the user pays for it; hitting the
URL is supposed to let me know
wow... having a real issue this morning with sending replies before
i'm actually ready... guess the coffee hasn't made it down to the
fingers, yet...
sd9 wrote:
> Is this possible?
>
perhaps it is (i have no idea if there's javascript to explicitly
open a tab), but that's certainly goin
Hi Martin,
Take a look at this example
what is displayed when property is displayed in jsp?
I got the same value displayed "edit.action" :( Do you know where I did
wrong please?
Thanks a lot!
--
Lu Ying
Date: Wed, 4 Feb 2009 16:50:43 -0500
From: em...@encs.concordia.ca
To:
Tell you the truth, I don't really dig the idea of having to specify parameter
in config file like that - I think it adds another thing that can go wrong when
you're refactoring. And it also needs special testing requirements.
In fact OGNL is pretty much persona non grata around here.
I can't
> Are you actually using Pell? I didn't see the library there,
> and it could cause a startup issue (can't check at the moment).
I tried removing it, just to see what happens. Still get the stack
below. Note that it is in my classpath locally & runs fine there.
--Dan
SEVERE: Exception startin
I agree with you, I don't use JSTL at all except forEach because of
the few limitations of the iterator tag. I will take a look at it.
regards
musachy
On Wed, Feb 4, 2009 at 9:45 PM, Ignacio de Córdoba wrote:
>
> Hi,
> thanks for your reply.
> Well... I have to iterate through a collection acces
If all you want to do is pass a parameter, then why don't you make it
available in your action and then juts pass it to the result using
OGNL? See this:
http://struts.apache.org/2.x/docs/parameters-in-configuration-results.html
Overall it is not a good idea to use internal Struts classes, as they
sd9 wrote:
> Is this possible?
> I tried this:
> ">
>
>
> But it doesn't work!
>
-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.o
Hello folks,
how can i access a property (i.e. data) of a class like
public class BabyAction extends ActionSupport implements RequestAware {
private List data;
public List getData() {
return this.data;
}
public void setSearch(List data) {
juni stephen wrote:
> Hi all,
>
> i am new to struts2.. am struggling to get the result for populating items
> from DB.
>
> my requirement is to populate country, which is stored in DB, using struts2
> and when u choose a particular country, another select box populate its
> cities, which also stor
juni stephen wrote:
> Hi all,
>
> i am new to struts2.. am struggling to get the result for populating items
> from DB.
>
> my requirement is to populate country, which is stored in DB, using struts2
> and when u choose a particular country, another select box populate its
> cities, which also stor
Well, I got the collection populated using this syntax (I am using a List, and
the docs say you should not use square brackets unless it's a map, but it seems
to require square brackets (also needs the value attribute as below)
I also removed the properties file since it seems to work without
Hi
Could anyone point out what I'm doing wrong here please? My model (FileType)
has a collection of Field objects and a getter called getFileFields().
I want to automatically display and set these when my form is rendered/posted.
Rendering is easy using an iterator, but to allow the collectio
We have it standard in spanish keyboards close to the downside up one :-)
Wes Wannemacher wrote:
>
> On Wednesday 04 February 2009 23:05:06 Martin Gainty wrote:
>> Dave and Crew
>>
>> Where is the upside down question-mark key???
>>
>
> It's ALT-F4
>
> :)
>
> -Wes
>
> --
>
> Wes Wannemach
Hi Musachy,
I'm adding it in my action.
That's why it gets overwritten - because when Action's method returns, struts
calls for the Result, presumably re-creating it even though it's there.
I don't understand why because there appears to be the code to provide an
existing Result rather than
68 matches
Mail list logo