Diego Manilla Suárez wrote:
Hi! I need to implement some kind of security inside of an Action.
When the user doesn't meet certain criteria, I must send him to the
"forbidden" page. Right now I'm doing this:
if (!allowed) {
response.sendError(HttpServletResponse.SC_FORBIDDEN);
return nul
hi,
U r getting that because of null property of privateMessage. As u r
using nested bean i.e. privateMessage.subject will be interpreted as
formBean.getPrivateMessage.getSubject() where as getPrivateMessage()
is returning null in ur case which cause Null pointer exception. To
avoid this u have two
Hi all,
I have 1 problem:
I tried to do something like below:
test.jsp includes:
I've already defined privateMessage in my userBean like below:
/**
* Comment for privateMessage
* This property is Private Message object
*/
private PrivateMessage privateMessage =
On 5/31/05, Riyaz Mansoor <[EMAIL PROTECTED]> wrote:
>
> i'm using 1.2.x and 1.3-dev and it works fine.
>
> i do remember about an ARG bug in the earlier versions. i suggest u
> search this mailing list. there might be others who might remember this
> here.
If I recall correctly, the bug was tha
Sorry Niall, I didn't even think about that possibility. Looks like you are
more on top of things than I *thought* I was ;)
--
James Mitchell
Software Engineer / Open Source Evangelist
Consulting / Mentoring / Freelance
EdgeTech, Inc.
http://www.edgetechservices.net/
678.910.8017
AIM: jmitch
i'm using 1.2.x and 1.3-dev and it works fine.
i do remember about an ARG bug in the earlier versions. i suggest u
search this mailing list. there might be others who might remember this
here.
:(
Duggirala, Satyavati wrote:
Yes, I am doing that and "bean:message " works fine.
I am having
Yes, I am doing that and "bean:message " works fine.
I am having problem only with arg element in validation.xml
Is arg element supported in struts1.1 or do we have to use arg0,arg1..
-Original Message-
From: Riyaz Mansoor [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 31, 2005 4:12 PM
To
seems fine.
you should declare your message resource in struts-config with the name
"mybundle" and it should contain the key "myField.displayname"
r u doing that?
Duggirala, Satyavati wrote:
I am working on a field whose value is an int in the range 0-
My code looks in validation.xml l
I am working on a field whose value is an int in the range 0-
My code looks in validation.xml looks like this-
min0
max
-Original Message-
From: Riyaz Mansoor [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 31, 2005 3:45 PM
To: Struts Users Mailing List
Subject: Re
hmm. can post the file?
Duggirala, Satyavati wrote:
Still doesn't work.
Is there a element type arg in validation.xml?
Can I get any reference from where I could get some more information
about using mutiple resource bundles in validator framework?
Thanks
Satya
-Original Message-
Fro
Still doesn't work.
Is there a element type arg in validation.xml?
Can I get any reference from where I could get some more information
about using mutiple resource bundles in validator framework?
Thanks
Satya
-Original Message-
From: Riyaz Mansoor [mailto:[EMAIL PROTECTED]
Sent: Tuesd
riyaz
Duggirala, Satyavati wrote:
Hi
We use multiple resource bundles in our Application.
By default Struts gets the error messages used in validation.xml from
default resource bundle.
(ex: prompt.username is obtained from
ApplicationResources.properties)
How can I make particular fie
Hi
We use multiple resource bundles in our Application.
By default Struts gets the error messages used in validation.xml from
default resource bundle.
(ex: prompt.username is obtained from
ApplicationResources.properties)
How can I make particular field validation error message to be obtaine
Not sure why Rahul sent you a reference to your own question. Sort of
encourages strange iterations! ///;-) Just kidding!
In my opinion, using custom tags for this purpose is not the best way
to go. Custom tags are meant to decouple code from markup. I would
(A) either use a controller/naviga
It would be technically feasible to make display the JSF
conversion and validation messages (stored in FacesContext) as well as
the Struts-specific ones. Could you please file an enhancement
request in our issue tracking system?
http://issues.apache.org/bugzilla/
Craig
On 5/31/05, Emond Papeg
If I have set up validation as follows:
test
(radioButton = "firstNameSearch")var-value>
If "validwhen" failts, will it try to validate the "required"?
In other words, when using automatic validation, the validator goes
through the list in "depends"
[ http://marc.theaimsgroup.com/?l=taglibs-user&m=111756793724193&w=2 ]
-Rahul
On 5/31/05, Marius Botha <[EMAIL PROTECTED]> wrote:
> Hi there,
>
> Hope someone can help me.
>
> I have a requirement where my system needs to prompt users for certain
> information at certain times in a process. To
Whatever you deliver via an action can have the caching aspects you
code into the situation so that you can force a client to take a new
stylesheet if you deliver the css yourself.
On 5/31/05, Adam Lipscombe <[EMAIL PROTECTED]> wrote:
> Folks,
>
>
> Our JSP's use stylesheets referenced by a stan
I don't know why you are storing to a database, Sudip, but if you are
I would just store a BufferedImage object and, then, you can deliver
the image however you like, i.e. in any format (PNG, GIF, JPEG etc),
in any size, with or without alpha transparency, etc. Since IO with
files is CPU independe
Looks like you sort of hijacked a thread where womeone else was trying
to get assistance on another question, Adam. If I am mistaken, sorry,
but if I am not it really is better to start your own thread with your
own subject than to hijack another person's thread.
On 5/31/05, Adam Lipscombe <[EMAI
Adam-
You need to set no cache for the html pages/images on the client's side
so put this right after the Browser client's tag
Using the struts-way your web.xml could look like
CacheFilter
*.jsp
/Whatever.jsp
nocache
cacheTimeout
1
Documentation for
Martin Gainty wrote:
You can use a session-scoped bean coded within your Action class such as
[...]
[Original subject line:] Subject: Have state across 2 requests without
use of session?
Uh...
Dave
-
To unsubscribe, e-
Andy-
You can use a session-scoped bean coded within your Action class such as
User user = ... look up valid user in the database ...;
HttpSession session = request.getSession();
session.setAttribute("user", user);
http://struts.apache.org/api/org/apache/struts/taglib/bean/package-summary.h
Here's a couple of ideas:
- You can use the same form bean in all 3 pages, using
fields for data that doesn't need to be displayed but needs to be
passed along.
- You can create a button which is populated via data
from a form bean property specified with the property= attribute
- There's always
Adam.
If you make changes in your css they are reflected when the file is
downloaded with the page.
If the client has caching turned on the changes will only be reflected when
the cache is cleared manually [CTRL + SHIFT + Refresh].
You can set various arguments on your JSP to enforce that the co
Adam Lipscombe wrote:
>Folks,
>
>
>Our JSP's use stylesheets referenced by a standard HTML link tag. E.g. rel="stylesheet" href="pages/calendar/calendar.css">
>
>
>The graphic designers are complaining 'cos on-the-fly changes made in a
>stylesheet does not automatically force a JSP to get re-compi
From: "Adam Lipscombe" <[EMAIL PROTECTED]>
> Our JSP's use stylesheets referenced by a standard HTML link tag. E.g.
>
>
> The graphic designers are complaining 'cos on-the-fly changes made in a
> stylesheet does not automatically force a JSP to get re-compiled by Tomcat
> 5.0.28. This means they c
Hi,
I am having difficulty trying to write a web app without session state (not
my choice).
As an example, my normal approach, say, to delete a user from a list is:
in the 'pre display' action:
- fill an arraylist of user objects from the db and set it in the session
in the jsp
- this arrayl
Folks,
Our JSP's use stylesheets referenced by a standard HTML link tag. E.g.
The graphic designers are complaining 'cos on-the-fly changes made in a
stylesheet does not automatically force a JSP to get re-compiled by Tomcat
5.0.28. This means they cant see their changes unless they restart TC
Folks,
Our JSP's use stylesheets referenced by a standard HTML link tag. E.g.
The graphic designers are complaining 'cos on-the-fly changes made in a
stylesheet does not automatically force a JSP to get re-compiled by Tomcat
5.0.28. This means they cant see their changes unless they restart TC
If you have a file in the database I would highly recommend persisting it to
the file system anyway for performance reasons.
A preview of a file is usually a scaled down version and from that point of
view I would 'work' on the image to resize it to your required preview
dimensions.
-Original
Any suggestions on showing a preview of the image stored in the database?
I found one which is: storing the file in a temporary folder and
display from there...
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands,
Just one last little thing, Peter, so that there is no
misunderstanding. It is absolutely critical in the Strategy Pattern
that we deal with a Java Bean. A great proportion of the fruits of
the Strategy Pattern rely on that so that if your "metamophasis" does
not retain this feature, it is not a
I meant "I find your note interesting" and not "I find your not interesting".
On 5/31/05, Dakota Jack <[EMAIL PROTECTED]> wrote:
> Hi, Peter,
>
> I am not sure what you are saying here. I had trouble following you.
>
> The Strategy Pattern is roughly the following:
>
> public class DefaultStra
Hi, Peter,
I am not sure what you are saying here. I had trouble following you.
The Strategy Pattern is roughly the following:
public class DefaultStrategyInterface implements StrategyInterface {
private Helper helper;
public void setHelper(Helper helper) {
this.helper = help
Laurie Harper wrote:
Nope, Dave nailed it. Re-read the requirement I described. The point
is to avoid using actions to load the data and pass it to the view. If
you re-read my description of what I mean by 'push' vs. 'pull' rather
than simply saying the terms mean something different it might
Have a look at the sample app I wrote to demonstrate the DownloadAction:
http://wiki.apache.org/struts/StrutsFileDownload
There is some code in there for doing exactly what your trying to do. You
might find an answer there.
I'm not sure off-hand why your getting that exception unfortunately.
-
Hello,
I'm currently evaluating Struts in combination with JSF for use in our
company. As a simple test-case I decided to convert the example application
from the JSF tutorial (the number guessing game). All works very well, except
for one issue: conversion messages.
The form holding the enter
> -Original Message-
> From: Dakota Jack [mailto:[EMAIL PROTECTED]
====
>
>
> I should have added that Rod (Johnson) in the book cited pointedly
> advocates extensive use of the Strategy Pattern, see pp. 421 ff. The
> use of CoR in Struts 1.3 for the extensible RequestProcessor is no
Hi,
what I want to do is display in a webpage file which is stored in database.
My struts app should recognize its mime type and according to this
perform suitable action (eg if it is *pdf run acrobat, if *html just
display it, etc). I know how to put and get this data from dbase and
how to recog
Hello, is it possible to add zero-padding with format in the
tag?, I have used format with dates before but I can't find
any good examples for numeric data.
My bean property is a int representing a month and I want to write 01,
02,.. instead of just 1,2,..
/Andreas
---
Hi,
what I want to do is display in a webpage file which is stored in database.
My struts app should recognize its mime type and according to this
perform suitable action (eg if it is *pdf run acrobat, if *html just
display it, etc). I know how to put and get this data from dbase and
how to recog
There was a mistake in the BeanUtils 1.7.0 release - the manifest was not
updated to the correct version. So although the manifest in the BeanUtils
jar shipped with Struts says its BeanUtils 1.6 - it is actually BeanUtils
1.7.0. You can check this yourself by downloading BeanUtils 1.7.0 directly
an
Hi,
what I want to do is display in a webpage file which is stored in database.
My struts app should recognize its mime type and according to this
perform suitable action (eg if it is *pdf run acrobat, if *html just
display it, etc). I know how to put and get this data from dbase and
how to reco
Hi there,
Hope someone can help me.
I have a requirement where my system needs to prompt users for certain
information at certain times in a process. To do this I need to be able to
add components to a page at run time based on a user's permissions. E.g. if
the user is supposed to specify a date
Please don't use a replay to another mail as the basis of your questions. This
mixes the mail Threads and make it more difficult to manage!
Well this all doesn't answer my original question on multivalue fields, still
pending ^_^
Le Mardi 31 Mai 2005 10:48, [EMAIL PROTECTED] a écrit :
> onclick
Hi,
what I want to do is display in a webpage file which is stored in database.
My struts app should recognize its mime type and according to this
perform suitable action (eg if it is *pdf run acrobat, if *html just
display it, etc). I know how to put and get this data from dbase and
how to reco
I think the question was more along the lines of "its hidden -> why have
hooks for ui interaction?"...
I *think* that the answer might lie in the inheritance structure -> take a
look at the BaseHandlerTag and what extends from it. Maybe thats the answer?
regards, andreas
-Ursprungliche Nac
Hi! I need to implement some kind of security inside of an Action. When
the user doesn't meet certain criteria, I must send him to the
"forbidden" page. Right now I'm doing this:
if (!allowed) {
response.sendError(HttpServletResponse.SC_FORBIDDEN);
return null;
}
The problem is that the
Onclick:
Java script event hander executes the code when an element get
a mouse click.
ondblclick:
Java script event hander executes the code when an element get
a mouse double click.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: 31 May 2005 09:48
To: Strut
onclick and ondblclick events on a tag are provided ? What
are its uses if at all?
Amitava Basak
Tata Consultancy Services Limited
Notice: The information contained in this e-mail message and/or attachments to
it may contain confidential or privileged information. If you are not the
inte
Hello,
in a form user is allowed to enter multiple values for a field foo. There can
be an unlimited number of those entries. I saw there is the possibility to do
this:
which should create an entry for each foo value in the form, using
public String getFoo(int index)
public void setFoo(i
> -Original Message-
> From: Van [mailto:[EMAIL PROTECTED]
> Sent: 31 May 2005 04:28
> To: Struts Users List
> Subject: [OT] JavaOne Social Gathering in San Francisco on 6/26 at 8pm
>
>
> Please join us for the third annual web developer gathering during
> JavaOne in San Francisco. After
53 matches
Mail list logo