It's more likely that you are using the wrong public identifier in your
document type declaration. With the wrong public identifier, the
resource (DTD file) won't be resolved locally and the parser will try to
use the system identifier to locate the resource, as a fall back.
Check that the doc
static
{
//doSomeInit,this only run once
}
above code can't run in struct2 action,it will say "can't use in non-static
class"
I use Struts2+spring2.1+hibernate3.2,I am puzzled with it for many many
days! I am looking for an example,but I don't find it,would you give me an
example project which c
So you're using Spring? In that case, maybe parts of this tutorial can
help: http://struts.apache.org/2.x/docs/struts-2-spring-2-jpa-ajax.html
And here's the documentation for the Spring-plugin:
http://struts.apache.org/2.x/docs/spring-plugin.html
Nils-H
On 8/16/07, red phoenix <[EMAIL PROTECTED
dude,
Let me try then I let you know quickly. :), but before that would you answer
my questions :
>That needs some plug-ins to support,you can try "Lomboz"
how to install Lomboz ? should i only get it and put it in a eclipse plugins
dir ?
>thirdly,configure the web.xml , below is a sample confi
You may try the static block, a no-arg constructor is needed to initialize a
Action object by struts
static
{
//doSomeInit,this only run once
}
2007/8/16, red phoenix <[EMAIL PROTECTED]>:
>
> I know your meaning,but the question I want to Initialize in struts
> action,not in common class,becaus
I know your meaning,but the question I want to Initialize in struts
action,not in common class,because I want to get WebApplicationContext in
struts action,and then I will transfer WebApplicationContext into dao to get
data. I don't know if there is a init method in struts2 action?
Any idea will be
Firstly,create a empty dynamic web project. That needs some plug-ins to
support,you can try "Lomboz"
sencondly,copy/import the following 5 essential jars to the /WEB-INF/lib
folder
struts2-core.jar
xwork.jar
ognl.jar
freemarker.jar
commons-logging.jar
you can find these jars in the strtus pack you
I think you can use the setters after you initialize your class
i.e.instead of
MyType mt = new MyType(...parameters...);
to do :
MyType mt = new MyType();
mt.setParam1()
e.t.c. I am not exactly sure if this is what you are after though
Why do you want to do this ?
Leon
red phoenix
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
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.
>
> ---
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 pos
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]
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 so
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 start
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]>:
>
>
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 i
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=
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
foll
--- 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
bas
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]> wr
I'm trying to change from using the old-style URLs to Restful2ActionMapper.
Here's what I've added to struts.xml:
I have a UserAction that does CRUD (below).
And the following action definitions:
userList.jsp
userList.jsp
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 @Valid
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 st
Hartrich, James CTR USTRANSCOM J6 wrote:
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?
Struts 2.0.9 targets the JDK 1.5 runtime. It shouldn't matter which JDK
was used to compile, unless ther
Jasper Floor wrote:
On 8/15/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
Hi,
So here it is only possible to return to the given input JSP "dataChecks.jsp".
How can I return to the calling JSP without defining one action tag for every single JSP?
If you don't close your actionmappin
Thanks for both of you.
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 írta:
> try :
>
>
>
> musachy
try :
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?
>
> ${req.css[0]}
>
>
>
>
>
> Tha
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]}
Thanks,
kuvera
-
To uns
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?
>>
>>
>
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 setXX
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 url
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
Strut
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
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? W
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 fro
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 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 m
>
> 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 re
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 PROTECTE
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:
struts2
class>org.apache.struts2.dispatcher.FilterDispatcher
struts2
*.action
New, cor
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
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 t
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 :
I am using Struts 2.0.6 and the jar contains struts struts-default.xml which
contains the following property
We have a struts.xml in WEB-INF/classes folder and I was trying to override
the default actionmapper by having the following lines in my struts.xml (
just for testing
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".
On 8/15/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Hi,
>
>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
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 unsubsc
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. Th
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:
So here it is only possible to return to the given input
49 matches
Mail list logo