Hi all
iam using struts2 iam getting a validation Problem
All the fields get Validated while using the get method for a particular
action while using the post method only two fields get validated
Ginu
-
To unsubscribe, e-mail:
I've been able to track this down a little more, and the issue is pretty
different from what I expected.
The ActionContext is being changed from between the point my action is
invoked, to the point the resulting JSP is serviced/rendered.
My action is defined this way:
/views/
Hopefully this won't sound too confusing. I'm leaving out a few details to
try to get right to the heart of the issue...(Struts 1.3)
I have an ActionForm that has a DynaBean that holds "answers." Imagine a
case where you have various surveys (templates) at different points in time
thus the questio
Jeromy Evans wrote:
Wouldn't it be the case for most people that specify params in the
action definition that they wouldn't want those overridden by
request params?
I don't know the history but I think you make a good point.
It a couple more people agree I'll create a JIRA issue and post a pa
Hi Martin,
Thanks for the reply. The form I am using is very simple.
<%@ taglib prefix="s" uri="/struts-tags" %>
Dale Newfield wrote:
Using the staticParams interceptor that should be straightforward.
Except that in the default stacks, an instance of "params" follows
"staticParams", which would allow these action definitions to be
overridden (which I don't want). I will change the order in my own
stack
Johnson nickel wrote:
Hi Evans,
I digged in google examples in StreamResult. But, i can't
understand.
I want to display the images in browser Using StremResult.
Instead of ServletOutputStream out=
response.getOutputStream();
How can i use StreamResult.
Can u gi
Hi there,
I'm in the process of attempting an upgrade from a working 2.0.9 application
to 2.1.
For some reason, what I thought would be a very simple upgrade has gotten
very messy... none of my jsp files are rendering correctly, because it seems
like the valueStack is not being inserted into the
I'm about to change the order of these two interceptors in my
application, and I thought I'd ask about this use case, and find out why
the order is as it is right now in struts-default.xml.
I've got a fairly generic "get a piece of a list of " action, and I
think I've settled on creating a
romanws wrote:
I have the following code for validation:
@Validations(
expressions = {
@ExpressionValidator (
key = "error.general",
Thanks it is working now! I also needed commons-collection. Why does
not Struts come with those jars? :)
Thanks,
Rodrigo Pereira
On Dec 7, 2007 6:20 PM, Mike Jennings <[EMAIL PROTECTED]> wrote:
> Looks like you don't have apache commons-digester in your classpath
>
>
> Rodrigo Pereira wrote:
> >
did you check to see commons-digester.jar is on /WEB-INF/lib ?
and which version ?
M-
- Original Message -
From: "Rodrigo Pereira" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List"
Sent: Friday, December 07, 2007 3:17 PM
Subject: Re: Struts 2.0.11 + Tiles
> I got more information.
>
>
Looks like you don't have apache commons-digester in your classpath
Rodrigo Pereira wrote:
I got more information.
07/12/2007 18:15:55 org.apache.catalina.core.StandardContext listenerStart
SEVERE: Exception sending context initialized event to listener
instance of class org.apache.struts2.tile
I got more information.
07/12/2007 18:15:55 org.apache.catalina.core.StandardContext listenerStart
SEVERE: Exception sending context initialized event to listener
instance of class org.apache.struts2.tiles.StrutsTilesListener
java.lang.NoClassDefFoundError: org/apache/commons/digester/Rule
Have the "Add Address" button submit to a different method - say,
addAddress() on personSave action itself.
ie
For suppressing validation for this method alone, but allowing for other
methods on the action, use the wildcard action mappings -- see earlier posts
for the same.
Thanks,
Joseph
On
That's all it is printed...
Thanks,
Rodrigo Pereira
On Dec 7, 2007 5:38 PM, Antonio Petrelli <[EMAIL PROTECTED]> wrote:
> 2007/12/7, Rodrigo Pereira <[EMAIL PROTECTED]>:
> > Hi,
> > after I updated to 2.0.5 I got errors during startup
> >
> > org.apache.tiles.impl.BasiTilesContainer init
> > INFO
2007/12/7, Rodrigo Pereira <[EMAIL PROTECTED]>:
> Hi,
> after I updated to 2.0.5 I got errors during startup
>
> org.apache.tiles.impl.BasiTilesContainer init
> INFO: Initializing Tiles2 container
> org.apache.catalina.core.StandardContext start
> SEVERE:startup failed due to previous errors
> org.
The "symptom" of the problem is that "required" validator does not work at
all.
What a "required" validator should do?
If I don't put any value in the text box, it should throw an error message.
The "required" validator doesn't work
for any type of value. Can anybody use this validator successfully
On 12/7/07, Nils-Helge Garli Hegvik <[EMAIL PROTECTED]> wrote:
> Hi!
>
> The struts2-portlet is a sample portlet application. You should not
> need to have any dependency on it, as it is just for demonstration
> purposes. If you're using Struts 2.0.x, all portlet classes are
> included in the core.
Hi,
after I updated to 2.0.5 I got errors during startup
org.apache.tiles.impl.BasiTilesContainer init
INFO: Initializing Tiles2 container
org.apache.catalina.core.StandardContext start
SEVERE:startup failed due to previous errors
org.apache.tiles.access.TilesAccess setContainer
INFO: Removing Til
Thanks for the code. Still nothing obvious (at least to me).
What exactly is the *symptom* of the problem? What behavior are you
seeing but not expecting?
- Gary
xniit2003 wrote:
Here's my code :-
in struts.xml file :-
name="input">/channels/channel_gro
2007/12/7, Rodrigo Pereira <[EMAIL PROTECTED]>:
>
> No, only a message from tomcat saying the resource is not available.
> Well, my index.html page automatically redirects to an action.
Mmm... at this point I suggest to update to Tiles 2.0.5.
http://tiles.apache.org/download.html
Probably you wi
No, only a message from tomcat saying the resource is not available.
Well, my index.html page automatically redirects to an action.
Thanks,
Rodrigo Pereira
On Dec 7, 2007 1:40 PM, LEONARD Julien (Consulting for ACCOR Hotels)
<[EMAIL PROTECTED]> wrote:
> And if you put the strutslistener you haven
And if you put the strutslistener you haven't any exception in you server log?
No exception on startup ?
No exception when you try to access to your application?
-Message d'origine-
De : Rodrigo Pereira [mailto:[EMAIL PROTECTED]
Envoyé : vendredi 7 décembre 2007 16:27
À : Struts Users Ma
Yes, I only get the exception if I remove it, if not I get "The
requested resource (/myApp/) is not available." and it seems like all
my actions stop working.
Thanks,
Rodrigo Pereira
On Dec 7, 2007 1:10 PM, Antonio Petrelli <[EMAIL PROTECTED]> wrote:
> 2007/12/7, Rodrigo Pereira <[EMAIL PROTECTED
2007/12/7, Rodrigo Pereira <[EMAIL PROTECTED]>:
>
> Hi,
> no exception during startup.
> Btw, is it correct of not having StrutsTilesListener in web.xml?
Yes, it *is* correct. Why are you asking, did you remove it?
That listener is necessary for Tiles (inside Struts) to work.
Antonio
Hi,
no exception during startup.
Btw, is it correct of not having StrutsTilesListener in web.xml?
Thanks,
Rodrigo Pereira
On Dec 7, 2007 12:46 PM, Antonio Petrelli <[EMAIL PROTECTED]> wrote:
> 2007/12/7, Rodrigo Pereira <[EMAIL PROTECTED]>:
> >
> > java.lang.NullPointerException
> > org.a
Have you try replacing this:
tilesDefinitions
/WEB-INF/tiles.xml
with this
org.apache.tiles.impl.BasicTilesContainer.DEFINITIONS_CONFIG
/WEB-INF/tiles.xml
Antonio Petrelli wrote:
2007/12/7, Rodrigo Pereira <[EMAIL PROTECTED]>:
java.lang.NullPointerException
org.apache.
On 12/7/07, Gary Affonso <[EMAIL PROTECTED]> wrote:
> Wes Wannemacher wrote:
> > In the past, the solution was to do the "work" using the prepareable
> > interface then just returning the reference to your model. I could be
> > remembering incorrectly, but I would avoid doing any work in a getter.
Our tooling/app server vender along with our company has identified
1.2.9 as needed for the security fixes. I suppose if we went further
they wouldn't support it or on the App Server or in our IDE (GUI drag
and drop, fancy struts config GUI view) which are tightly coupled.
So I'm restricted to th
By the way, have you considered using Struts 1.3.8? I have code
(currently) that works just fine and that does what you need (forward to
a *.do on cancel).
Clearly, you don't need to upgrade right now (you can handle your use
case in your method controller), however it's worth considering sinc
2007/12/7, Rodrigo Pereira <[EMAIL PROTECTED]>:
>
> java.lang.NullPointerException
> org.apache.struts2.views.tiles.TilesResult.doExecute(
> TilesResult.java:104)
Ok this is symptom that the Tiles container has not been loaded (there is an
issue that addresses the problem of the NPE, jus
I noticed before I sent the note that I only get this exception if I
took off StrutsTilesListener from web.xml, not sure if this is
correct.
java.lang.NullPointerException
org.apache.struts2.views.tiles.TilesResult.doExecute(TilesResult.java:104)
org.apache.struts2.dispatcher.Str
Ok I give up :-(
Seriously Rodrigo, we need the stack trace of the exception that you told
that you have found.
Otherwise, you are really too vague.
Antonio
2007/12/7, Rodrigo Pereira <[EMAIL PROTECTED]>:
>
> I got that error: "The requested resource (/myApp/) is not available."
>
> web.xml:
>
>
a static inner class example is located at
org.apache.struts2.util.StrutsUtil
called static class ResponseWrapper notice the
sout = new ServletOutputStreamWrapper(strout);
assignment
Difficult to determine what your needs are without more information
M--
- Original Message -
From: "Johnson
Here's my code :-
in struts.xml file :-
/channels/channel_group_profile.jsp
/channels/channel_group_profile.jsp
in jsp :-
in validation xml :-
app id should not be null
Here "channelGroupTO" is a tr
I got that error: "The requested resource (/myApp/) is not available."
web.xml:
tilesDefinitions
/WEB-INF/tiles.xml
struts
org.apache.struts2.dispatcher.FilterDispatcher
struts
/*
Hi Evans,
I digged in google examples in StreamResult. But, i can't
understand.
I want to display the images in browser Using StremResult.
Instead of ServletOutputStream out=
response.getOutputStream();
How can i use StreamResult.
Can u give some examples pgm??
Rodrigo
Please post the exception stack trace here, otherwise we cannot help you!
Antonio
2007/12/7, Rodrigo Pereira <[EMAIL PROTECTED]>:
>
> Struts actions stop working and it is not recognize by tomcat.
>
> I have the following jars:
>
> struts2-tiles-plugin-2.0.11.jar
> tiles-api-2.0.4.jar
> t
Hello,
I'm new on struts 2, and I'm using just struts 2 right now (no ajax), and
the system I'm developing have a client and address, and I want to do
something like the folowing:
What I want to do is something like a partial form submission: above is the
first v
Don't use ServletOutputStream within Struts2. Use a StreamResult instead:
http://struts.apache.org/2.0.11/docs/stream-result.html
In the example provided in the above link, inputName references a
property in your action that's an InputStream you need to create from
your data.
InputStream ge
Hi Evans,
I want to display the images in browser from the database.
I have added my code.It throws null pointer Exception.
In my action, i have implements
ServletRequestAware,ServletResponseAware interface. I want to
know if ServletOutputStream
Struts actions stop working and it is not recognize by tomcat.
I have the following jars:
struts2-tiles-plugin-2.0.11.jar
tiles-api-2.0.4.jar
tiles-core-2.0.4.jar
tiles-jsp-2.0.4.jar
Thanks,
Rodrigo Pereira
On 12/6/07, Dave Newton <[EMAIL PROTECTED]> wrote:
> --- Rodrigo Pereira <[EMAIL PROTE
Yeah, we have preprocessing to do.
I've hardly ever went right to a JSP page and this seems to be pretty common
from the Struts Apps I've seen.
I'd say after the action has been processed it would be a good idea to clear it
from the request like you said.
Shawn
-Original Message-
From: [
First, it's important to note that regardless of how many frameworks,
servlets, filters, or anything else we use, if it's under the same
application-root, and shares the same web.xml, then it's all one web
app. If we like, we can run Tapestry, Wicket, and Struts all in the
same web application. All
Hi all,
I'm facing a problem, surely due to an error in my configuration, but
can't find out a solution for it...
I would like two webapps, both built upon Struts 2 (2.0.11), to have
different action extensions:
- webapp-A will have *.do
- webapp-B will have *.action
Both webapps have the same w
There doesn't appear to be anything wrong with the script. You might
try it from another workstation.
As to the underlying use case, it appears that we would like to open a
PHP page form a Struts Action. Another way to do that in Struts 2
would be to redirect with parameters. Something like this
Hi,
I'm facing the same problem as Odelya did, but:
I can delete the .java AND the .class from the work directory but they get
generated as they have been before. I can even delete the corresponding .jsp
file, but ... they get generated!
I'm using tomcat 5.0.30
unfortunatly this only happens on
Hi!
The struts2-portlet is a sample portlet application. You should not
need to have any dependency on it, as it is just for demonstration
purposes. If you're using Struts 2.0.x, all portlet classes are
included in the core.
Nils-H
On Dec 7, 2007 12:33 AM, Aleksander Adamowski
<[EMAIL PROTECTED]
49 matches
Mail list logo