Hi all,
I got it working!
I had to add a validate="true" attribute on the . With that added,
the form was trying to make an AJAX request onblur. But I got a JS error in
FB:
element.form.attributes['name'] is undefined.
Debugging a bit, I figured that the JS figures out the validation action
There is no technical difference between a user request and a redirect,
because the redirect causes a second user request.
If you're interested in knowing whether the action is being called as a
forward, there are standard request attributes which the Container sets.
For a forward it is "javax
2007/3/13, Tamas Szabo <[EMAIL PROTECTED]>:
Have a look at the documentation of the "dispatcherType" at
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd.
Thank you, I'll take a look.
I pressume that by "internal redirects" in your initial mail you mean
forwards. Is this true?
Sometimes f
Have a look at the documentation of the "dispatcherType" at
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd.
Then you can use dispatcher elements in your filter mappings
("filter-mappingType" in the same xsd) to fire your filter just for
requests but not for forwards.
I pressume that by "interna
Hi All,
I managed to achieve what I wanted by using Struts 2 interceptor without
having Spring aoping the action class through dynamic proxy. Here is the
updated example.xml:
http://struts.apache.org/dtds/struts-2.0.dtd";>
Yes, I believe it is 2.4.
Also:
Struts 1.3.5
Tomcat 6.0.9
2007/3/12, Tamas Szabo <[EMAIL PROTECTED]>:
Hi,
What servlet api are you using?
Is it at least 2.4?
Tamas
On 3/13/07, Pierre Thibaudeau <[EMAIL PROTECTED]> wrote:
> I am trying to implement a flood control mechanism to prevent robot
Hi,
What servlet api are you using?
Is it at least 2.4?
Tamas
On 3/13/07, Pierre Thibaudeau <[EMAIL PROTECTED]> wrote:
I am trying to implement a flood control mechanism to prevent robots
requesting pages after pages at an "inhuman" rate.
My basic idea is this:
* A FirstInFirstOut List store
I am trying to implement a flood control mechanism to prevent robots
requesting pages after pages at an "inhuman" rate.
My basic idea is this:
* A FirstInFirstOut List stored in the HttpSession, that records the time of
the user's last 10 requests.
* On each new request, a filter compares the cur
Strachan, Paul wrote:
> I resolved this myself by simply overriding the set(String, Object)
> method in my form, to ignore certain request parameter names that are
> not of type String in my LazyValidatorForm.
>
If you feel strongly about this, please create a JIRA issue for possible
enhancement
Daniel,
> Or we will be querying backend only for the desired 50 records?
> And if so how we take care for sorting, page number etc. ?
Query only what you need. You need to pass information to your data
layer of what is the starting record plus the number of records you
want so perhaps you
--- [EMAIL PROTECTED] wrote:
> As you can see, this DIV is not well-formed, and
> naturally does not rended correctly. Any help would
> be appreciated.
What version of S2 are you using? I cut-and-pasted
your supplied JSP, created a dummy action and user
object, and get radically different result
2007/3/12, [EMAIL PROTECTED] <[EMAIL PROTECTED]>:
Hey all --
Here is my page source and the corresponding generated generated HTML. As
you can see, this DIV is not well-formed, and naturally does not rended
correctly. Any help would be appreciated.
try this:
...
--
Guillaume Carré
Ah joy! More XML files :) I'll take a look at it. The more I learn about
the S2 UI, the more concerned I become.
Scott
On 3/12/07, Bob Buffone <[EMAIL PROTECTED]> wrote:
Hello,
I have been reading this posted and thought I would respond with
information about the Apache XAP project,
http:/
Hello,
I have been reading this posted and thought I would respond with
information about the Apache XAP project,
http://incubator.apache.org/xap (This could be taken as a solicitation,
if so, it probably is).
One of the unique attributes about the XAP project is that is uses a XML
Markup langu
--- Dilip Ladhani <[EMAIL PROTECTED]> wrote:
> Index Page
> Home Page
>
> header,jsp
> Schedule
> Page
>
> Is the context root (present in header, missing in
> index) making a difference??
Do both ways of making links work?! If you're creating
absolute URLs then aren't the above two links pointi
On 3/12/07, Mark Menard <[EMAIL PROTECTED]> wrote:
On 3/12/07 1:53 PM, "Paul Saumets" <[EMAIL PROTECTED]> wrote:
> In your struts.properties file declare the following line:
>
> struts.ui.theme=simple
Or, in struts.xml,
The struts.xml setting being the preferred approach.
- HTH, Ted
I've tracked my issues down to broken jsp code that was allowed by the jsp
compiler in 4.1.18. I've had to play and fix a bit of jsp, but the transition
overall was smooth...
-Original Message-
From: Ray Clough [mailto:[EMAIL PROTECTED]
Sent: Monday, March 12, 2007 1:28 PM
To: Struts U
:) That's what I figured out and implemented. Thanks for the quick
help.
-Original Message-
From: Mark Menard [mailto:[EMAIL PROTECTED]
Sent: Monday, March 12, 2007 5:22 PM
To: Struts Users Mailing List
Subject: Re: Struts 2 newbie question
On 3/12/07 1:53 PM, "Paul Saumets" <[EMAIL
On 3/12/07 1:53 PM, "Paul Saumets" <[EMAIL PROTECTED]> wrote:
> In your struts.properties file declare the following line:
>
> struts.ui.theme=simple
>
> then just wrap whatever you'd like around your input tags.
That to me is a hammer-like solution. This will change all of his forms to
use the
I've been using Tiles with all Struts versions since 1.1 and all the
latest Tomcat versions. I have not been able to use it with Struts 2.0,
but others have reported that it works fine there, too, so it must be
something I've done wrong.
- Ray Clough
Frank Russo wrote:
Has anyone had luck t
How do you include this template with your project? I've modified the
'submit.ftl' file and placed it in the '/WEB-INF/classes' dir of my web
application. Its not being picked up..
Thanks,
Leon
-Original Message-
From: Pascal Lalonde [mailto:[EMAIL PROTECTED]
Sent: Monday, March 12,
Does this disallow Ajax support?
On 3/12/07, Paul Saumets <[EMAIL PROTECTED]> wrote:
In your struts.properties file declare the following line:
struts.ui.theme=simple
then just wrap whatever you'd like around your input tags.
Regards,
Paul
_
From: King, Leon C [mailto:[EMAIL PROTECTED]
Hey all --
Here is my page source and the corresponding generated generated HTML. As
you can see, this DIV is not well-formed, and naturally does not rended
correctly. Any help would be appreciated.
Thanks,
Scott
==
==
User N
In your struts.properties file declare the following line:
struts.ui.theme=simple
then just wrap whatever you'd like around your input tags.
Regards,
Paul
_
From: King, Leon C [mailto:[EMAIL PROTECTED]
To: user@struts.apache.org
Sent: Mon, 12 Mar 2007 14:23:14 -0400
Subject: Struts 2 ne
You'll have to modify the associated template within your project.
The actual form template (from the default xhtml) is wrapping inputs
into a table, each input is appended has a row into it.
- Pascal
King, Leon C wrote:
How do you modify the alignment of a button? Currently I'm using the
Sure. Actually, the code to access the session is in the action
classes and not the jsps. It's the same code in both actions (for jsp1
and jsp2)
String cdsID =
((UserTO)request.getSession().getAttribute("userInfo")).getCdsID();
I tried another thing, instead of going to jsp1 from index page (wh
How do you modify the alignment of a button? Currently I'm using the
following in my jsp:
which produces a button on one line. I'd like to combine several
buttons on the same line.
Thanks,
Leon
After doing some further testing, I found that
works, but
Does not. selectedCourses is a String array on my action object, and before
this issue popped up, I was using OGNL to autopopulate the array with the
selected ids from courseList.
Now, every variation on "selectedCourses" rais
Hello list,
The trivial examples on the wiki work fine, but my attempt at using
fails when I try to use listKey and listValue:
works, and it shows the results of my toString methods on the objects in
courseList.
Since I want data from specific fields in my objects, I added:
and instead of
Hi Musachy,
Thanks for replying!
On FB I see HTTP 404s on:
1) http://localhost:8080/validations/stuts/dojo/src/widget/html/Tooltip.js
2) http://localhost:8080/validations/stuts/dojo/src/widget/html.js
3) http://localhost:8080/validations/stuts/dojo/src/widget.js
4) http://localhost:8080/validati
I can't see how that can solve my problem?
The ArrayList is actually gone. When I want to display the arraylist with
${formField.key}: ${formField.value}
Everything is gone.
The problem is, that list contains a few values, which need to be maintained
after submitting.
This is the
Hello, I', using struts framework and displaytag 1.0, all works great.
Now, I want to implement pagination using the the partial list (External
Paging and Sorting) for displaying records (display tag 1.1 facility).
I have this doubt:
- For pagination we will be providing display tag only the re
Hi all,
I'm just getting started with Struts 1.3.x and I've run into a problem I
just can't seem to find a way to tackle. I am simply trying to load data
from a database and populate it in a form-bean.
The flow is like this:
1. user logs in
2. authenticate user
Enable dojo debugging by setting debug="true" on the head tag, and see if
there are any errors. Can you post the errors that you are seeing in FB?
regards
musachy
On 3/12/07, Binil Thomas <[EMAIL PROTECTED]> wrote:
Hi all,
I am trying out the Ajax Form validations in S2. I see the validation
On 3/12/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
Where do I register such a convertor? Simply add this code to my Action or do
I have to add this somewhere else?
I've figured out what my problem was, but now sth else pops up. I have a field
with type java.util.ArrayList. When I ente
Hi all,
I am trying out the Ajax Form validations in S2. I see the validations
example working perfectly fine in Showcase demo, but I can't get it to work
on my machine.
Here is what I did:
1) Created a maven project using the provided archetype.
2) Edited the struts.xml file to add my action:
Should be a bomb on Spring forum .
readed the wiki etc , it reminded me the Gwt vs dojo .
2007/3/12, Ron Chan <[EMAIL PROTECTED]>:
Guice is used as the internal IOC within struts2 but that is recommended
for
use in applications
But there is now a plugin which will use an external version of
Where do I register such a convertor? Simply add this code to my Action or do
I have to add this somewhere else?
I've figured out what my problem was, but now sth else pops up. I have a field
with type java.util.ArrayList. When I enter the form, the precedent Action
fills the form. On scree
Hello. I've been working on my first Struts2 application over the
last couple of weeks and have been quite happy with it. I do have a
question about the httpheader result that I hope somebody can help me
out with.
The documentation for the httpheader result mentions the param named
head
Has anyone had luck taking a Struts 1.1 app with Tiles, and dropping it into
Tomcat 5.5 app? I saw a couple of old posts, but there weren't much in the way
of responses.
I'm trying this now, and I'm having some issues with jsp's. The app was working
fine on Tomcat 4.18 prior. Obviously the js
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Laurie,
Laurie Harper wrote:
> Without thinking about it very much, I would expect that one or other of
> these would work:
>
>
>
Regardless of the method of output, your code needs to both read and
write the date in the same format.
If the d
I am trying to build an application which some pages use tiles that have a
header, body and footer. I've managed to get the pages with those three tiles
working but now whenever I want to forward to a page that doesn't have any
tiles that page always appears in the body. Could someone explain to
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Dilip,
Dilip Ladhani wrote:
> I have this wierd problem, I have spent a few hours debugging.
[index.jsp:]
> session.invalidate();
> session = request.getSession(true);
>session.setAttribute("userInfo", user);
>
> Now I go to
On 3/12/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
Why does sql.Date work?
Because BeanUtils (at the moment) comes with a registered converter
for jav.sql.Date - but not for java.util.Date. If you want it to
handle String-->java.util.Date you need to register a Converter for
it:
Convert
Why does sql.Date work? And the apache-site states that it's actually possible
to use for instance java.util.ArrayList. How do you do that?
http://struts.apache.org/1.3.5/userGuide/building_controller.html, see section
4.3.1.
-Original Message-
From: Hubert Rabago [mailto:[EMAIL PROTE
The fields of action forms, including DynaValidatorForms are populated
from request parameters, and these values are all in String variables.
I suggest using a String variable for the dyna validator form field
as well, and just parsing it to get the java.util.Date equivalent when
you use it in you
Following on from this, could anyone point me towards a
tutorial/example code on how to deal with an indexed edit technique
when I also need to use paging. For example, I have to do a similair
thing to the OP however I am restricted to editing 10 lines per page.
This would be easy if I could pass
Guice is used as the internal IOC within struts2 but that is recommended for
use in applications
But there is now a plugin which will use an external version of guice to do
your depency injection
http://docs.google.com/Doc?id=dd2fhx4z_5df5hw8
I just converted a mini app over the weekend from usi
And the 3rd mail. Is it possible to use an object that's different from
java.lang.* as type for the dynavalidatorform? I think that's what causing the
issue here. If it's not possible, then I'm in deep :)
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent:
How about Struts nested tag library? If you want to use struts taglibs
only ...
Regards
Guru
---
Gurumoorthy Raghupathy
Email : [EMAIL PROTECTED]
Internal Extn : 2337
External Phone : 01483712337
Nielsen Book
3
David Alves wrote:
Hi all,
I have a User object which has a Country object attached to it,
representing the country that the user is from. If I do
then I get the output of Country.toString(). However, say I want to call
one of the other methods in country, like population. Is there an
ele
Ok, I did some tests and debugging and this is the result:
The errormsg is "Cannot assign value of type 'java.lang.String' to property
'txtFieldName' of type 'java.util.Date'".
I fill that field with following code: modifyForm.set("txtFieldName",new
Date());
So the object I'm assigning to that
don't know if it might help ...
attachment is used to open the pdf in the viewer, not in the browser window
inline is used to see it in the browser window. But I noticed it doesn't
work on all plateforms.
for attachment, I use the folowing code :
// To enable IE Cache
response.setHeader("Pra
Hi
I have a form in which a Date is displayed, using fmt. It's static text, so no
user input is required. The problem is the following. When the validation of
that form fails, you return to that form. Actually, it should return to that
form, but you're redirected to the error page.
This i
Hi,
I try do suggest a filename to the generated pdf´s. However the PDF should be
display automaticly this meand without some further action of the user.
This HTTP Header Information works
response.setHeader("Content-Disposition", "attachment; filename=" + fileName);
and this does not works
55 matches
Mail list logo