--- tglenister wrote:
> When I call contact from either page, the validation
> fails (no matter what the input) and the fields are
> cleared out. Basically it likes the doregister
> action but doesn't like the contact action. Does
> anyone have a clue what's going on or where I should
> look?
I am using Struts 2.06 and am seeing a bizarre issue -
One of my Actions is validating fine - if the page is posted without
required data/formats the page is returned with error messages and all the
fields are still filled in. We'll refer to this as action 1.
Another action (action 2) throws va
Vinny-
with method=GET I hear IE has a limit of 2k
M--
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed. If you have received this email message in error, please notify
the sender imme
How do I specify a contentType of "application/xhtml+xml" when I'm using
freemarker templates?
With .jspx files, I can do:
With .jsp files, I can do:
<%@ page contentType="application/xhtml+xml;charset=ISO-8859-1" %>
Or better yet, is there any way to configure the Struts servlet with a
global
On 9/7/07, j alex <[EMAIL PROTECTED]> wrote:
> How is the ServletContextListener suited for my purpose ? . Can you please
> elaborate a little more? . What i'm looking for is access to the properties
> files' values and flags read from DB, not able to relate how this is related
> to the listener.
Hi Chris,
How is the ServletContextListener suited for my purpose ? . Can you please
elaborate a little more? . What i'm looking for is access to the properties
files' values and flags read from DB, not able to relate how this is related
to the listener.
Thanks,
Joseph
On 9/7/07, Chris Pratt <[
Hi,
I am attempting to configure a Result implementation using the @Result
class annotation. As part of this configuration I am sending in a
parameters list which contains a single property. Here is my annotation
and simple class file:
@Result(name = "success", value = "", type = JSONResult.clas
Mirbek Nosinov wrote:
>
> hi everybody
>
> I need you help
> so next is the problem
> i use struts 2.0.9 together with tiles 2.0.4
> everything is ok, but when i have next definition for tiles
>
>
>
>
>
>
>
>
>
>
>
> and then i try to use this list in my jsp page
--- Vinny <[EMAIL PROTECTED]> wrote:
> I do.
Not reddit; no upmods for short, content-free posts.
Oh, wait.
Curses.
d.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
I do.
On 9/7/07, Christopher Schultz <[EMAIL PROTECTED]> wrote:
>
> Who really cares whether the URL is long or not?
>
> - -chris
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.4.7 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iD8DBQFG4Zmw9CaO5/Lv0PARAr4EAKCFB
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Rod,
Rod Bollinger wrote:
> There is nothing wrong with Javascript in general - when used judiciously.
>
> The problem with Javascript (in this particular situation) is that if
> Javascript is disabled or unavailable for any reason, the user will no
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Chris,
Chris Pratt wrote:
> On 9/7/07, Dave Newton <[EMAIL PROTECTED]> wrote:
>> --- Christopher Schultz wrote:
>>> Who really cares whether the URL is long or not?
>>
>> People who have a URL longer than some browsers will
>> accept?
>
> Also, it is
On 9/7/07, j alex <[EMAIL PROTECTED]> wrote:
> In Struts 1, we were having an init servlet to load the application-wide
> properties like dropdown values (from property files) into application
> context and accessing these within JSP. Is there a better way of doing this
> in Struts 2, and do we req
Hi,
In Struts 1, we were having an init servlet to load the application-wide
properties like dropdown values (from property files) into application
context and accessing these within JSP. Is there a better way of doing this
in Struts 2, and do we require an initialization servlet at all ? .
Thank
Greetings to all,
i have signed in and tried to add a page under the faq. The system says
that i do not have the privileges... Where do i have to place my
suggestion ?
Generally the faq can solve a lot of problems that appear recursively to
all of us, so it is a good thing to support.
Rega
I have to use post for security reasons, and to be able to pass all of the
information in the hidden fields(too long, some fields are upto 500 char).
Thank you for your help.
On 9/7/07, Rod Bollinger <[EMAIL PROTECTED]> wrote:
>
> There is nothing wrong with Javascript in general - when used jud
On 9/7/07, Rod Bollinger <[EMAIL PROTECTED]> wrote:
> The problem with Javascript (in this particular situation) is that if
> Javascript is disabled or unavailable for any reason, the user will not be
> able to submit the request - this is a major accessibility no-no.
Rod: That is a valid point, s
There is nothing wrong with Javascript in general - when used judiciously.
The problem with Javascript (in this particular situation) is that if
Javascript is disabled or unavailable for any reason, the user will not be
able to submit the request - this is a major accessibility no-no.
IIRC the O
Sometimes the get method is necessary though. If you set your parameters
to hidden fields, then the url will be like myjob.action. If the visitor
would copy and paste this url and send it via skype to a friend, then
they will not get the same result
This might be bad i.e. when viewing a pr
https://www.arctechsoftware.com/tutorial/tutorial.do?subcatId=4
-Original Message-
From: Mirbek Nosinov [mailto:[EMAIL PROTECTED]
Sent: Friday, September 07, 2007 6:52 AM
To: user@struts.apache.org
Subject: Struts 2 ABC book
Can anybody recommend good Struts 2 ABC book?
Thanks in adva
On 9/7/07, Dave Newton <[EMAIL PROTECTED]> wrote:
> --- Christopher Schultz wrote:
> > Who really cares whether the URL is long or not?
>
> People who have a URL longer than some browsers will
> accept?
>
Also, it is sometimes considered a security risk to have certain
information displayed in the
> >
> > Submit the form
>
> Oh, the humanity!
>
> Seriously, I hate seeing this kind of code. First of all, it
> requires javascript.
What's wrong with javascript?
> Second, it merely converts a GET request into a POST request.
> Who really cares whether the URL is long or not?
OP did. That
--- Christopher Schultz wrote:
> Who really cares whether the URL is long or not?
People who have a URL longer than some browsers will
accept?
d.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMA
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Chris,
Chris Pratt wrote:
> Create a form with only hidden parameters (you could use the
> and tags instead):
>
>
>
>
>
> Then in your link use:
>
> Submit the form
Oh, the humanity!
Seriously, I hate seeing this kind of code. First of all
Hello
How to change locale in Struts 2?
i am just trying to make multilanguage struts2 + tiles2 application
and i have wasted a whole day in solving this problem.
Thanks in advanced.
On 9/7/07, Anna Simbirtsev <[EMAIL PROTECTED]> wrote:
> How do I do it?
>
Create a form with only hidden parameters (you could use the
and tags instead):
Then in your link use:
Submit the form
(*Chris*)
-
To unsubscri
Hi,
Looking at the example of making a form using an indexed list in the
following URL: http://struts.apache.org/2.0.9/docs/type-conversion.html
Take for example a form with the following fields:
How do I do it?
On 9/7/07, Rick Reumann <[EMAIL PROTECTED]> wrote:
>
> On 9/7/07, Anna Simbirtsev <[EMAIL PROTECTED]> wrote:
> >
> > Hello
> > I have a link > paramName="map">Name and when a user clicks on it, it calls
> > action myAction and passes parameters using HashMap. Those parameters
> a
I'm having a problem with database connections when I undeploy my Tomcat
application (see here:
http://www.nabble.com/forum/ViewPost.jtp?post=12560350&framed=y
http://www.nabble.com/forum/ViewPost.jtp?post=12560350&framed=y )
Because I implemented session management in an Interceptor, I thought
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Paul,
Paul Benedict wrote:
> Struts 1.4-SNAPSHOT has enhanced validwhen support for decimal point
> numbers. I haven't had anyone besides me test it, but you can be the first
> if you want to! I'd like to know if it works for you!
Hmm... maybe. I'm t
Struts 1.4-SNAPSHOT has enhanced validwhen support for decimal point
numbers. I haven't had anyone besides me test it, but you can be the first
if you want to! I'd like to know if it works for you!
On 9/7/07, Christopher Schultz <[EMAIL PROTECTED]> wrote:
>
> -BEGIN PGP SIGNED MESSAGE-
> H
This might work:
${newPage}
You might consider some sort of white list of internal resources that
can be accessed to prevent misuse.
Nils-H
On 9/7/07, Mirbek Nosinov <[EMAIL PROTECTED]> wrote:
> Is it possible to dynamicaly forward to any page from Action class execute()
> function. For example
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Dave,
Dave Newton wrote:
> Custom validator
:(
I'll just implement it in my action. This is too custom to actually be
re-usable.
> and smack whoever wanted decimal
> months on the back of the hand with a ruler.
Yeah, really. Unfortunately, we're d
> > Is it possible to dynamicaly forward to any page from Action class
> > execute()
Make your Action implement ServletResponseAware, then just use the
response.sendRedirect() method to redirect to where you want to go.
Then return null from your action to let Struts 2 know that you've
handled thi
On 9/7/07, Anna Simbirtsev <[EMAIL PROTECTED]> wrote:
>
> Hello
> I have a link paramName="map">Name and when a user clicks on it, it calls
> action myAction and passes parameters using HashMap. Those parameters are
> visible in the URL. Is there any way to pass parameters to the action
> other
>
If you are using Struts2, I believe you can take advantage of the
ParametersInterceptor for that. With that interceptor in place, you can
access your parameters in the action by simply implementing getters and
setters on the action.
Read about it here http://www.infoq.com/articles/migrating-stru
> I have a link paramName="map">Name and when a user clicks on
> it, it calls action myAction and passes parameters using
> HashMap. Those parameters are visible in the URL. Is there
> any way to pass parameters to the action other than through URL?
No, and it's not Strut's fault.
If you wan
Hello
I have a link Name and when a user clicks on it, it calls
action myAction and passes parameters using HashMap. Those parameters are
visible in the URL. Is there any way to pass parameters to the action other
than through URL?
Thank you
Custom validator, and smack whoever wanted decimal
months on the back of the hand with a ruler.
--- Christopher Schultz <[EMAIL PROTECTED]>
wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> All,
>
> This is probably a question for the
> commons-validator list, but, hey,
> I'm already
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
All,
This is probably a question for the commons-validator list, but, hey,
I'm already a member of this list and I'm sure someone knows the answer.
I have a form that contains 4 fields: year and month for both min and
max age. (So, I have min years,
2007/9/7, Rick Reumann <[EMAIL PROTECTED]>:
>
> On 9/7/07, Rick Reumann <[EMAIL PROTECTED]> wrote:
> >
> > On 9/7/07, Antonio Petrelli <[EMAIL PROTECTED]> wrote:
> > >
> > > 2007/9/7, Rick Reumann <[EMAIL PROTECTED]>:
> > > >
> > > > The issue is that SiteMesh, to act using the decorator pattern,
>
On 9/7/07, Rick Reumann <[EMAIL PROTECTED]> wrote:
>
> On 9/7/07, Antonio Petrelli <[EMAIL PROTECTED]> wrote:
> >
> > 2007/9/7, Rick Reumann <[EMAIL PROTECTED]>:
> > >
> > > The issue is that SiteMesh, to act using the decorator pattern,
> > decides to
> > > pull out the entire page contents and st
On 9/7/07, Antonio Petrelli <[EMAIL PROTECTED]> wrote:
>
> 2007/9/7, Rick Reumann <[EMAIL PROTECTED]>:
> >
> > The issue is that SiteMesh, to act using the decorator pattern, decides
> to
> > pull out the entire page contents and store it in a StringBuffer.
>
>
> Really? I am using Sitemesh (withou
I have an html:form in my jsp...it contains radio buttons for a property
on that form called settings.
I want to be able to set the settings property on my form in the jsp so
that the radio button will be checked...basically i want to pass in a
form value but I can't do it in my action. I have to
2007/9/7, Rick Reumann <[EMAIL PROTECTED]>:
>
> The issue is that SiteMesh, to act using the decorator pattern, decides to
> pull out the entire page contents and store it in a StringBuffer.
Really? I am using Sitemesh (without Struts 2), is there a JIRA issue about
it?
Antonio
Thanks Ted for this link. Just getting into Struts again after a long hiatus
so I'm sure your starting book will really help.
Quick sort of OT question for anyone. Reading the first chapter of Ted's
Starting Struts 2 book it mentions SiteMesh integration.. I'm curious if
people are still working w
thanks. it works
i tried just
struts.action.extension=
and it works
2007/9/7, Guillaume Carré <[EMAIL PROTECTED]>:
>
> 2007/9/7, Mirbek Nosinov <[EMAIL PROTECTED]>:
> > How to hide .action extension in url for my actions
> >
> > for example
> > if i have url for my action like
> > http://localho
If you compile the dojo plugin and drop it into the lib folder, it should work.
musachy
On 9/7/07, Genadii Ganebnyi <[EMAIL PROTECTED]> wrote:
> Is there any posibility to use struts-dojo-tags with Struts 2.0.9 or the
> only variant is to wait till 2.1 is released?
>
--
"Hey you! Would you hel
2007/9/7, Mirbek Nosinov <[EMAIL PROTECTED]>:
> How to hide .action extension in url for my actions
>
> for example
> if i have url for my action like
> http://localhost:8080/cms2/StartPage.action
>
> but i need like
> http://localhost:8080/cms2/StartPage
you can modify the extension in struts.pro
How to hide .action extension in url for my actions
for example
if i have url for my action like
http://localhost:8080/cms2/StartPage.action
but i need like
http://localhost:8080/cms2/StartPage
How can i do it?
Thanks in advanced
Yes it is correct for Struts 1, but i use Struts 2
2007/9/7, Gundersen, Richard <[EMAIL PROTECTED]>:
>
> I do it this way (create a new ActionForward with the url you want in
> the Action method you are executing, and just return that instead of
> doing mapping.findForward...
>
>
I do it this way (create a new ActionForward with the url you want in
the Action method you are executing, and just return that instead of
doing mapping.findForward...
ActionForward forward = new ActionForward(url);
return forward;
Richard Gundersen
Is it possible to dynamicaly forward to any page from Action class execute()
function. For example i get next request:
/MyAction.action?newPage=AnotherAction.action
or
/MyAction.action?newPage=/pages/myJsp.jsp
or
/MyAction.action?newPage=www.com
and this newPage parameter can be any url (suppose
Hi Richard,
Looking at http://struts.apache.org/2.x/docs/validation.html I don´t see
there was "validwhen" validator...
Besides that, the example you gave me is for Struts 1, isn´t it? I need
an Strut2 one.
Thanks.
Gundersen, Richard escribió:
Hi Pablo
Try using validwhen instead - I think
Hi Pablo
Try using validwhen instead - I think rewquiredif was deprecated. I changed all
mine and you can achive the same thing although your logic might have to be
turned around a bit.
Here's an example:
Hi all!
I´m trying to validate two fields that depends on another field.
What I was doing in S1 is (for field "in"):
key="ErrorMessages.applicationIdRepresent.sameReference"/>
field[0]
editParams
fieldTest[0]
NOTNULL
But now in S2, the
I don't understand the use case you are describing, but there has been
no development discussions or decisions regarding reducing support for
FreeMarker and Velocity. There are several FreeMarker and Velocity
examples in the ShowCase, and resources like the CodeBehind Plugin,
fully support FTL and
See
* http://struts.apache.org/index.html#Newbies
The first full-length S2 books are due out in October and November.
* http://www.jroller.com/TedHusted/entry/first_s2_books
-Ted.
On 9/7/07, Mirbek Nosinov <[EMAIL PROTECTED]> wrote:
> Can anybody recommend good Struts 2 ABC book?
>
> Thanks
Can anybody recommend good Struts 2 ABC book?
Thanks in advanced
You shouldn't need to do the request.getParameter bit anymore...the form
will be available in your jsp by just referencing the exact form name
(defined in your action mapping...the 'name' attribute).
Is this where you are getting a class cast exception?
(Vector) xParser.xmlLableGen (Comm_vect);
Hi to all.
I have a task to create several shared lists in app based on Struts2
as a reusing components. There are a lot of ways how to do this. But I
wondering anyone gives me advice.
Thanks in advance.
Andrei Sauchanka,
Software Engineer
EPAM Systems
Gomel office, Belarus (GMT+2)
Office fax: +
very much thankQ for reply,
i am able to get values to my ActionClass but while retreiving it is
showing "inconvertable types" error . Actually i have used type casting. But
it is showing the error. Is there some thing to change my approch in
converting Vector while getParameter();
thx
Je
The Struts 2 tags can only go on pages where the request has passed
through a Struts 2 filter. That error indicates the Dispatcher
instance isn't on the correct ThreadLocal variable, and it should have
been placed there by the Struts ServletFilter.
Don
On 9/7/07, Riccardo Mollame <[EMAIL PROTECT
Hi,
Since you've put it on your form you can pull it off your form. So in
your jsp you can do something like:
This will look through all your items in the vector...its like a for
loop (assuming you are using jstl tags)
Or in your case perhaps you just want to toString it in which case:
(wh
Is there any posibility to use struts-dojo-tags with Struts 2.0.9 or the
only variant is to wait till 2.1 is released?
Yes, struts taglibs are the problem.
But if I make the opposite, i.e. excluding the x:tags,
the code works as well, so I assume that Struts stuff
is properly configured...
I don't know what to think...
Ric
--- MK Tan <[EMAIL PROTECTED]> ha scritto:
> look like struts taglibs cause the NPE
look like struts taglibs cause the NPE. unknown property name?
On 9/7/07, Riccardo Mollame <[EMAIL PROTECTED]> wrote:
>
> Could any one explain why this piece of code works
> fine:
>
> <%@ taglib prefix="c"
> uri="http://java.sun.com/jsp/jstl/core"%>
> <%@ taglib prefix="x"
> uri="http://java.su
Could any one explain why this piece of code works
fine:
<%@ taglib prefix="c"
uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="x"
uri="http://java.sun.com/jsp/jstl/xml"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
while this one:
<%@ taglib prefix="c"
uri="
68 matches
Mail list logo