Hi,
in my web application I want to call one single action class from different
JSPs. After that the class should return to the JSP from that it was called. In
my struts action tags I have to define an input JSP for every action:
action
path=/secure/dataChecks
name=emptyForm
Hi,
I just noticed that we have a problem with our resource files for our site. The
problem is that I don't know how to handle more then one resource file.
We have two different parts of the site that both use resource properties. One
of them (a forum) is build by other persons in our projekt.
hmm, I assume the input fields have the same name as the relevant form
properties. Case is important. Perhaps you need an input parameter in
your action definition. input=inputform.jsp or something along those
lines.
-
To
On 8/15/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
Hi,
action
path=/secure/dataChecks
name=emptyForm
type=org.springframework.web.struts.DelegatingActionProxy
input=/secure/dataChecks.jsp /
So here it is only possible to return to the given input JSP
It worked when I change the extention to action. I am using Appfuse and it
comes with html extention default. So I wonder if there is a way to make
it work with html extention or I will post a message to Appfuse if it is
possible to change the default extention to something else than html.
I am using Struts 2.0.6 and the jar contains struts struts-default.xml which
contains the following property
bean type=org.apache.struts2.dispatcher.mapper.ActionMapper name=struts
class=org.apache.struts2.dispatcher.mapper.DefaultActionMapper /
bean
Hi,
Is there a way we can override the implementation of certain
interceptors from the default stack, without copying over all the
definitions to struts.xml ?
ex : i want to change the behavior of workflow interceptor in the way
it handles errors and routes to input page. I defined :
Unfortunately, you have to re-define the stack.
Nils-H
On 8/15/07, j alex [EMAIL PROTECTED] wrote:
Hi,
Is there a way we can override the implementation of certain
interceptors from the default stack, without copying over all the
definitions to struts.xml ?
ex : i want to change the
I am pretty sure this is a configuration issue, probably in struts.xml.
I am trying to create a JSR168 compliant portlet. I have been working
with the portletunit code to get it to execute in a unit test, as well
as running it with JBossPortal. The behavior is the same, so I am
hoping it is
Thanks -I figured it out.
In my web.xml I had only mapped the struts FilterDispatcher to
*.action, I had to change it to map it to /*.
My old web.xml:
filter
filter-namestruts2/filter-name
filter-
classorg.apache.struts2.dispatcher.FilterDispatcher/filter-class
Are you creating the urls correctly using the s:url tag? Do you have
an example JSP? How do you invoke your portlet application? Remember
that you can't access the portlet using regular urls, they all have to
go through the portlet container.
Nils-H
On 8/15/07, Frederick N. Brier [EMAIL
What I would really like to do is create a model Petshop application
for Struts 2. I've setup a Google Code site for this purpose, but I
haven't had a chance to seriously pursue it yet.
* http://code.google.com/p/sq1-petstore/
My dream would be to have a full set of use cases, a
I think there was a discussion from Matt about this (appfuse using html
extensions) a while back, you might want to check the archives. On the
s2 side, there are options, but I'm not sure there is an easy solution
for using .html as an extension.
/Ian
Struts2 Fan wrote:
Opps How can I
I'm getting an UnknownClassVersion error during struts2.0.9 deployment
to tomcat with java 1.5.0.0.3
Is struts 2.0.9 entirely compiled in java 6?
James Hartrich
I know that discussion but it html extention locks some of the
functionality of struts2, it would be better to change it from html to
something else. If you say *it is not easy*, at least I will post a message
on the appfuse forum.
Ian Roughley wrote:
I think there was a discussion from
In my portletunit test, I am using a url of
view/viewMyPortlet.action. In JBossPortal, I create a Portlet
Instance from the Portlet Definition and then under the Portlet Objects
tab assign it to a region in the page layout. Is there somewhere I
would specify a URL? And what would it be?
Hi,
I am using struts 1.3.8 for my application. For validation I am using
validator framework. In one of my pages my form is submitted either by
submit button or changing the dropdown list value. action is the name of
the property in the corresponding actionform which stores the submit
button's
As it seems like you want to find a solution the option is to write
an ActionMapper that reverses the order the URLs are currently
determined. Instead of looking for an action first, you would need to
look for a static resource first, and then if not found check for an action.
/Ian
So it doesn't work in neither JBoss nor your tests? Or is it just your
test that is not working?
Since executeRegularServletResult is executed, the only two reasons are:
- The portletrequest and portletresponse objects are not available,
which means you're running outside the container.
- The
I'm a Struts newb and am trying to get up to speed on Struts 2.
The scant documentation is throwing me a bit; I'm trying to do
everything annotation-based, and for Validation, it seems to be simply
not working at all.
Per the docs, I have tagged my action class with @Validator and tagged
my
Hi
Ah, thanks very much. Thats exactly what i need. :-)
--
Sebastian
Jeromy Evans schrieb:
In response to your second question:
Sebastian Kolbe wrote:
Another question:
Is there an easy way to catch the event (something like 'onclick') when
a different tab is selected?
Yes :
a. at
Hi,
I have a bean in request scope which has a List property. I cannot
iterate over it or read it at all. Among the lines below only the first
works. Could somebody please explain why?
${req.css[0]}
s:property value=req.css[0]/
s:property value=#req.css[0]/
s:property value=%{req.css[0]}/
try :
s:property value=%{#request.css[0]}/
musachy
On 8/15/07, Twins fan [EMAIL PROTECTED] wrote:
Hi,
I have a bean in request scope which has a List property. I cannot
iterate over it or read it at all. Among the lines below only the first
works. Could somebody please explain why?
Thanks for both of you.
s:property value=#request.req.css[0]/
Only this one works for struts tags, but I still don't fully understand
the notion of the value stack. It is supposed to give access to
properties of all scopes, isn't it? Standard EL is not so complicated.
kuvera
Musachy Barroso
Jasper Floor wrote:
On 8/15/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
Hi,
action
path=/secure/dataChecks
name=emptyForm
type=org.springframework.web.struts.DelegatingActionProxy
input=/secure/dataChecks.jsp /
So here it is only possible to return to the given
David Copeland wrote:
I'm a Struts newb and am trying to get up to speed on Struts 2.
The scant documentation is throwing me a bit; I'm trying to do
everything annotation-based, and for Validation, it seems to be simply
not working at all.
Per the docs, I have tagged my action class with
Viplav Kallepu wrote:
Hi,
I am using struts 1.3.8 for my application. For validation I am using
validator framework. In one of my pages my form is submitted either by
submit button or changing the dropdown list value. action is the name of
the property in the corresponding actionform which
I'm trying to change from using the old-style URLs to Restful2ActionMapper.
Here's what I've added to struts.xml:
bean name=struts2
type=org.apache.struts2.dispatcher.mapper.ActionMapper
class=org.apache.struts2.dispatcher.mapper.CompositeActionMapper/
constant
I think annotations give you more flexibility than XML .
ex : if an Action has multiple methods and only certain fields are
tied to each method, we can bunch together validations for each method
using annotations, but this is not possible using XML
On 8/15/07, Laurie Harper [EMAIL PROTECTED]
--- j alex [EMAIL PROTECTED] wrote:
ex : if an Action has multiple methods and only
certain fields are tied to each method, we can
bunch together validations for each method
using annotations, but this is not possible using
XML
You can create validation XML files on an action-alias
basis.
For general Java class,we can make construction function,like this:
public class test{
String a;
public test(String a){
this.a=a;
}
}
I don't know if I can do it like above code under struts2 action,for some
reason,I want to initialize some variable and assign some value to it,like
Does anybody know how to configure struts on eclipse and build anew project
by struts in eclipse ?
On 8/16/07, red phoenix [EMAIL PROTECTED] wrote:
For general Java class,we can make construction function,like this:
public class test{
String a;
public test(String a){
this.a=a;
}
If your code is going otu to the Internet to find the DTD, that means
the DTD cannot be found locally. Depending on the type of Servlet API
(= 2.2), you would have to put the DTD directly in the WEB-INF directly
and reference a URI to that location. Otherwise, API = 2.3 will be able
to find it
You can refer to the Struts doc.
The easiest way is to use the struts2-blank-2.0.9.war as a start.
you can find it from the http://struts.apache.org
You'd better download a struts-2.x.all.zip from the download pages.
Hope that helps,good luck.
2007/8/16, meisam sarabadani [EMAIL PROTECTED]:
hey
thanks for your help but the thing is that it does not work like that in
eclipse, yeah I have downloaded the full pack of struts and the all
exampels, and also i have deployed it manually by putting it into my
container (tomcat), but when im going to use the eclipse as IDE to develop
and
I have downloaded the full pack of struts and the all exampels, and also i
have deployed it manually by putting it into my container (tomcat), but when
im going to use the eclipse as IDE to develop and start a struts everything
messes and I can`t continue, actually it is not working, I have seen
Hey,red.In my opinion, to use struts, you have to supply a no-argument
constructor.That is the point.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
The post at:
http://article.gmane.org/gmane.comp.jakarta.struts.user/78202/
seems to go into a bit more detail about this issue.
Is it possible that the version of Struts that I am using doesn't have
the correct location(s) set up for pointing at the internal resources
referred to in that
If I use no-argument constructor,how can i do to initialize some
information?
Thanks
On 8/16/07, Rec Floyd [EMAIL PROTECTED] wrote:
Hey,red.In my opinion, to use struts, you have to supply a no-argument
constructor.That is the point.
When there is an integer type and the user writes non string value, an error
message is displayed automaticly. Invalid field value for field xxx.yyy
I want to make this message localized. I posted a message before. But I
don't want to write bundles for all the integer, double and date fields in
40 matches
Mail list logo