Hi, I have an action that is validateable and uses the validate method to
ensure that an element isn't added to the database if it already exists in
there. Unfortunately, the validation occurs as soon as my form is launched. I
tried to follow the approach from the helloworld example to not hav
Hi,
Struts displays the jsp objects the way it likes, for example, aligning buttons
on the right even if I put them inside a tag. Is
there a way to take control of how the layout is displayed without using the
simple theme (that doesn't have a nice UI by the way)?
Thanks,
Session
-
You seem to be trying all the right things, my advice is to try to
isolate where things are going wrong.. for example
1) Check what encoding your browser thinks the page is in ( usually
somewhere under the view menu )
2) Check whether you are managing to read the request parameter in the
corre
Hi,
But I don't get any null pointer exceptions (or are they hidden somewhere
inside the framework?).
Regards,
Joakim
> Joakkim take a look at this-
>
> Hi,
> There seems to be a bug in the struts 2 taglib, in the last release
> (Struts
> 2.0.6).
> If the jsp don't come from a struts 2 intercep
Hi
I am likely to reuse a component in struts tiles which has a different
property name in different pages.
For example: The component which I am planning to reuse is Address filelds.
Although the view of address fields is same in all pages, like
state:-
city: -, et
Oleg Konovalov wrote:
I have a bunch of rows [ArrayList of ValueObject Classes], and a button
corresponding to each row.
I populate the data from each row in forEach loop.
User is supposed to click on one of these buttons [selecting one row to
process],
and onClick event I need to pass the rowId
--- Oleg Konovalov <[EMAIL PROTECTED]> wrote:
> As I mentioned in the original e-mail:
>
> Have hidden field:
>
Yeah, but... that's a form value, not a JavaScript
variable. The "onclick" attribute expects valid
JavaScript.
> I have a bunch of rows and a button corresponding to
> each row.
If
As I mentioned in the original e-mail:
Have hidden field:
I have a bunch of rows [ArrayList of ValueObject Classes], and a button
corresponding to each row.
I populate the data from each row in forEach loop.
User is supposed to click on one of these buttons [selecting one row to
process],
and on
no, no, it was just a silly trial to test from a hopless programmer :-(
currently i'm still searching and i think i need to install a new windows it
may fix the prob. who knows.
thanks
stoupa91devel wrote:
>
> Just a question. I saw your filter again and there is this
> request.getAttribute("c
Just a question. I saw your filter again and there is this
request.getAttribute("cate");
This gets for you only an attribut which is stored in the request scope (it
doesnt have anything to do
with the html forms).
If you want get the your form text field you should use
request.getParameter("c
hi,
i'm using the post method but i will try to use GET if this will solve the
problem
and also i have tried to the
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="windows-UTF-8"%>
but nothing changed
i tried to set the HTML:FORM attributes like :
but as usual
On 8/10/07, Dave Newton <[EMAIL PROTECTED]> wrote:
> --- yitzle <[EMAIL PROTECTED]> wrote:
> > On 8/9/07, Dave Newton <[EMAIL PROTECTED]>
> > wrote:
> > > --- yitzle <[EMAIL PROTECTED]> wrote:
> > > > I had
> > > > > > > enctype="multipart/form-data" >
> > > > and tried with
> > > > > > > method=
Eugen Stoianovici wrote:
i'm trying to use a custom filter to implement authorization and i can't
get the damned thing to work (i'm an absolute beginner, be warned).
i'm using struts2.0.8 with tomcat 5.5
my doFilter method looks like this
public class AuthorizationFilter implements Filter {
pub
[EMAIL PROTECTED] wrote:
Hi all,
This question might be a faq, but I haven't seen any answer when searching on
google or in the mailing list archive.
I'm working with a website that uses a java-based CMS (Content Management
System) that has some struts-based functionality. One of the functions
That suggests that the versions of the TLD files you have under WEB-INF
are from a more recent version of Struts than you have deployed. In
general, there is no need to place TLD files under WEB-INF, though;
they'll be found within the JAR files automatically.
So, just delete the files from WE
Toni Lyytikäinen wrote:
Hello,
Is it possible to localize the options in the list attribute of the
-tag? I've tried several approaches but none of them seem to work.
What I'm aiming at is something like the following:
For some reason it seems to be impossible to use double quotes (") for the
Hi,
have you tryed this too at the start of jsp?? It should set the content
type in the header of the response (not only in element of the
html page).
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="windows-UTF-8"%>
Martin
Christopher Schultz wrote:
-
Jan Steinke wrote:
Hi There,
I would like to upload some jpegs with struts 2.0.9 and redirect to
another site after the Action returns SUCCESS.
I tried is like this ( after reading the file upload example from the
struts 2 showcases):
uploadPictureForm.jsp:
enctype="multipart/f
WiltOnTilt wrote:
Hi, I've searched around here and googling to try to find a good answer but I
haven't found one.
I'm using the basic struts2 validation with the validate="true" on my
so the validation is done client side.
I'd like to change the error messages so they do not show up ABOVE my
I think you are still confused at what is being proposed. No one is
advocating the inclusion of any "libs" anywhere or adding a bunch of
includes in a JSP.
The proposal is to create a JSP that contains a set of <%@ taglib ... %>
directives. This, in itself, does not do anything but define a set of
'vew learned and (used to it) that we must not use the include directive
because it's a dirt practice, it's like separating c or cpp code in function
files and compose them with #include precompiler directive.
Also if you put all your inludes in one jsp you'll be adding unused libs to
your final p
Perhaps you are referring to the use of scriptlets being discouraged (with
which I agree). However, <%@ include ... %> is a JSP "directive", not
scriptlet code and is in no way deprecated or discouraged.
The following excerpt is from the JSP 2.1 specification (the latest version
of JSP):
JSP.1.
ld use the word "discouraged" ^g^
On 8/12/07, Yayo <[EMAIL PROTECTED]> wrote:
>
> yeah, I know, but we can use cobol to program cgi instead of java too
>
> On 8/12/07, Dave Newton <[EMAIL PROTECTED] > wrote:
> >
> > Then how do you figure it's been deprecated? It's the
> > only thing that will all
yeah, I know, but we can use cobol to program cgi instead of java too
On 8/12/07, Dave Newton <[EMAIL PROTECTED]> wrote:
>
> Then how do you figure it's been deprecated? It's the
> only thing that will allow doing what the original
> post was talking about.
>
> --- Yayo <[EMAIL PROTECTED]> wrote:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Ahmed,
Ahmed Atif wrote:
> the data read from the text field still garbled i'm saving it to the
> DB instantly at a UTF-8 encoding type column but the problem remains
> does any one know where the prblem might be.
Is this with a GET or POST request?
hi all,
thanks for replay
i have already built the filter class after your post but the problem
remains and here is the doFilter method
public void doFilter(ServletRequest request, ServletResponse response,
FilterChain chain) throws IOException, ServletException {
if (request.getCharacte
Then how do you figure it's been deprecated? It's the
only thing that will allow doing what the original
post was talking about.
--- Yayo <[EMAIL PROTECTED]> wrote:
> I know!
>
> On 8/12/07, Dave Newton <[EMAIL PROTECTED]>
> wrote:
> >
> > --- Yayo <[EMAIL PROTECTED]> wrote:
> > > think that's a
I logged this ticket:
https://issues.apache.org/struts/browse/WW-2106
so we could have a "parseContent" attribute to control this behavior.
regards
musachy
On 8/12/07, Musachy Barroso <[EMAIL PROTECTED]> wrote:
> > Although I think this 'remote div' feature is very interesting, I don't
> > thin
> Although I think this 'remote div' feature is very interesting, I don't
> think it is usable for "real" or
> more complex applications in this state of developing...
as a standalone tag or with the tabbedpanel?
> At least the documentation should have a notice of this.
>
it has "experimental
This is a java JSP/Servlet thing more than struts itself. The JSP is
evaluated by the container so it needs to exists somewhere on the file
system(not inside a jar) before dispatching to it.
musachy
On 8/11/07, Martin Gainty <[EMAIL PROTECTED]> wrote:
> Joakkim take a look at this-
>
> Hi,
> Ther
Hi
Thanks for your answer.
I found some of these options yesterday and tried to set them with by a
javascript "onload" tag for the html page.
Especially setting "parseContent" to 'false' gives an significant
speedup, unfortunately this breaks
all links with 'theme="ajax"' (or converts them to "nor
ah, great. I totally forgot that there actually is *two* url mappings
being done
(first the *.do -> struts and the actuall mapping for the action).
Now I have path="**/logoff", since I want it to work no matter what
subdirectory
the user is under.
Thanks a lot, Oliver!
/Jimi
Quoting KrustyD
On 8/10/07, Sebastian Kolbe <[EMAIL PROTECTED]> wrote:
> An other problem for me is that most browsers are rendering
> very, very slow into such a 'div'. A page with tables that normally
> (normal struts-action rendering into a browser window) takes less
> than 1 second needs here almost 20 - 30 se
I know!
On 8/12/07, Dave Newton <[EMAIL PROTECTED]> wrote:
>
> --- Yayo <[EMAIL PROTECTED]> wrote:
> > think that's a bad solution, the has been
> > deprecated by the use of tiles and the like to
> > compose pages... and even with that I don't think
> > it will work...
>
> <%@ include ...%> is a
--- Yayo <[EMAIL PROTECTED]> wrote:
> think that's a bad solution, the has been
> deprecated by the use of tiles and the like to
> compose pages... and even with that I don't think
> it will work...
<%@ include ...%> is a directive; the file is inserted
at compile, not run, time.
d.
I think you must check your struts-config.xml
The path in the action mapping must be user-area/logoff.do
Then it should work.
Greets Oliver
- Original Message -
From: <[EMAIL PROTECTED]>
To:
Sent: Sunday, August 12, 2007 3:06 PM
Subject: Url-mapping *.do not working (Was: Global f
Quoting [EMAIL PROTECTED]:
Hi,
Is it possible to define parameters that should be sent to a global
forward in
struts-config.xml? Ie I want it all configured in the struts-config.xml.
Example:
I cannot add the parameters before the forward is "called", because
it is done
in 3rd p
Hi,
Is it possible to define parameters that should be sent to a global forward in
struts-config.xml? Ie I want it all configured in the struts-config.xml.
Example:
I cannot add the parameters before the forward is "called", because it is done
in 3rd party classes that I don't want
think that's a bad solution, the has been deprecated by the use
of tiles and the like to compose pages... and even with that I don't think
it will work...
On 8/11/07, Martin Gainty <[EMAIL PROTECTED]> wrote:
>
> Jim-
>
> The simplest answer is to put all your tlds in an TLDInclude.jsp
> then cal
I'm sure I saw some references to this in the documentation before but I can't
find it again now that I need it.
I have my own context factory for Spring which I want to plug into the struts
framework, but I can't work out how to set up the autowiring interceptor .
It seems I must replace Act
40 matches
Mail list logo