Hi,
We are using the container managed security and we have lot of action
mapping and roles. Specifying them in one web.xml making it too huge. We
want it to split into separate logical files
KP
-Original Message-
From: Bill Siggelkow [mailto:[EMAIL PROTECTED]
Sent: Friday, April 30,
Michael McGrady wrote:
This is more of a passing interest of mine, so I will pursue a bit
more, if you continue an interest. I have an application that needs
to do this from afar on multiple and untrackable sites. So, the
bouncing the server idea just won't work for me. I need this to
Michael McGrady wrote:
Isn't it true, Craig, that this is not a problem for hot deploy of the
classes that do this. If you have other classes that do not do this,
then they cannot be hot deployed. But, what difference does that
make? If someone wants to hot deploy them, they can redesign
Pedro Salgado wrote:
On 04/05/02 6:40, Craig R. McClanahan [EMAIL PROTECTED] wrote:
DMZ is short for demilitarized zone ... a term adopted for enterprise
network infrastructures from the military use of the term.
If you're writing an application for public access on the Internet,
you'll find
Prasad, Kamakshya wrote:
Hi,
We are using the container managed security and we have lot of action
mapping and roles. Specifying them in one web.xml making it too huge. We
want it to split into separate logical files
If your container is reasonably intelligent about parsing XML documents
Hi,
I tried xml entity. It worked though I have few doubts.
This is part of the xml which have that reference
?xml version=1.0 encoding=ISO-8859-1?
!DOCTYPE
web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application
2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd;
[!ENTITY
snip
No container that I know of lets you selectively replace classes that have
already been loaded into the class loader, because Java's class loader
API doesn't support unloadClass() or replaceClass().
/snip
I use the Sysdeo plugin for eclipse with tomcat and it lets me make minor
modifications
Hi!
I have an issue in my web application.
My control flow is as follows :
1. On cliking a link, show Page AA as a result of ForwardAction
2. User fills data in AA and then clicks submit button.
3. This submit button internally invokes my Action class Action1 which
adds data to db and calls
Thanks for sticking with this half-assed idea for a bit, Craig.
All this says, if I understand you, and I am fairly sure I do, is that if
you change some class and have no way to reload it, without the container
reloading then you have a problem unless you do something about it. That
is to be
Is it possible to use both Strut's Validator Framework for some fields
and validate other fields using my own validation via ActionForm class.
If yes, can someone site an example.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For
At 11:40 PM 5/2/2004, Craig McClanahan wrote:
Michael McGrady wrote:
Isn't it true, Craig, that this is not a problem for hot deploy of the
classes that do this. If you have other classes that do not do this,
then they cannot be hot deployed. But, what difference does that
make? If someone
Hi Richie ,
include below line in the jsp that contains the form(AA in your case)
%@ page import=org.apache.struts.util.TokenProcessor %
%
TokenProcessor token = TokenProcessor.getInstance();
token.saveToken(request);
%
This should be included before html:form tag. You should use
Highlighting the error line (even though only the first error is returned). The input
field in error's name will be returned with the error including the index I presume
since no change was made to the 'hightlighting' code and it works.
sandeep
-Original Message-
From: Niall Pemberton
Thanks Craig, that was helpful to understand.
sandeep
-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 29, 2004 3:13 AM
To: Struts Users Mailing List
Subject: Re: newbie struts-el best practices question
Takhar, Sandeep wrote:
Where does
Hi,
my validator seems not to work with mask.
snipped from validation.xml:
field property=password
depends=required,mask
arg0 key=password.displayname/
var
var-namemask/var-name
var-value^[a-zA-Z]*$/var-value
Hi,
I have a jar file, that contains a struts-config.xml.
Is it possible to set the init parameter in web.xml, that struts find this
struts-config file?
init-param
param-nameconfig/param-name
param-value???/param-value
/init-param
Regards,
Frank
I'm having a big problem trying to dynamically set a value for the readonly
attribute of an html:text tag. I'm using a JSTL core tag to try to set it
and whatever I do is ignored.
In the example below, the newPurchase property is a boolean. If I use
exactly this tag elsewhere on the page, it
At 3:05 PM +0200 5/3/04, Otto, Frank wrote:
Hi,
I have a jar file, that contains a struts-config.xml.
Is it possible to set the init parameter in web.xml, that struts
find this struts-config file?
Not right now; however, there was some discussion on this topic on
the struts-dev list a few
Use jstl!
On May 3, 2004, at 6:51 AM, Ralf Schneider wrote:
Hi,
how can a use internationalized text strings stored in a resource
bundle as
values of attributes?
For example:
html:text property=username title=login.tooltip.username/
I know, this will not work, but how can it be done?
Ralf.
Hi!
I have problems to use the struts taglibs in jsp with xml syntax.
When I use
%@ taglib uri=/WEB-INF/tags/struts-bean.tld prefix=bean %
the generated servlet contains the line
'_jspx_dependants.add(/WEB-INF/tags/struts-bean.tld)'
and everything is ok.
But with the following syntax the line
This is mostly a side-effect of the
RequestProcessor being a single class, rather
than an interface.
The SSL-ext project has a
SecureTilesRequestProcessor class which solves
your immediate problem.
When we begin work on Struts 1.3.x (real soon
now) we will integrate support for a composable
Yes.
Extend the DynaValidator
override the validate method
validate(...) {
ActionErrors errors = super.validate(...);
// do your stuff
if (...) {
errors.add(...);
}
return errors;
}
Pedro Salgado
On 04/05/03 9:40, Eric Noel [EMAIL PROTECTED] wrote:
Hello
i have a little Problem and perhaps someone can help me out
i have an actionclass (I) which has a FormBean
now i send the HTML Form away.
after i get a response from database i decide in my actionclass (i) that if
only one hit in my database is coming back,(instead of more than 1) i
Pedro Salgado wrote:
On 04/05/02 6:40, Craig R. McClanahan [EMAIL PROTECTED] wrote:
DMZ is short for demilitarized zone ... a term adopted for enterprise
network infrastructures from the military use of the term.
If you're writing an application for public access on the Internet,
you'll find
Hi,
I'm new to struts. I have a JSP form which when submitted, needs to open a
pop-up window that will display a confirmation message after processing is
complete. How would I do this?
Thanks.
-
To unsubscribe, e-mail: [EMAIL
Joe,
Thanks so much for your prompt reply! I have downloaded the sslext from
SourcForge and am wondering if there is a user friendly migration document
that I can reference which spells out the implementation.
From: Joe Germuska [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL
http://marc.theaimsgroup.com/?t=10590259932r=1w=2
Hi folks,
I got stuck on a problem discussed earlier in this list (@see link
above).
Hope this hasn't been answered elsewhere - it was the only thing I could
find.
Forms seem to get validated in a certain order. First, all required
fields
You cannot use one jsp tag to supply another jsp tag with a value for an
attribute.
Some solutions are:
1) Use an html (rather than a jsp) tag:
input type=text name=licenceCount value=c:out
value='${purchaseForm.licenceCount}'/ size=3 readonly=c:out
value='${purchaseForm.newPurchase}'/
I am not 100% sure but I believe that you just use the fmt:message
tag.
Just use something like...
fmt:message key=login.tooltip.username /
if you need to send parameters just put them in the body of the tag.
fmt:message key=login.tooltip.username
fmt:param value=${username}/
At 16:09 03/05/2004, Paul McCulloch wrote:
You cannot use one jsp tag to supply another jsp tag with a value for an
attribute.
This certainly explains my problem. I could swear that I was doing so
successfully with an integer attribute, though, as I mentioned in my
original post. Trying it
But this is not the way I want to use it. This way, I could use it to put a
translated text into the body of a tag like
tdfmt:message key=login/td
But how can I use the translated text as an attribute value as written before?
Ralf.
Am Montag, 3. Mai 2004 17:12 schrieb Nathan Maves:
I
Here's an example of what I'm doing in my Struts application to handle opening up a
popup window:
a href=javascript:popup('core:url value=/displayNotePopup.do
core:param name=messageSubject
core:out value=${aMessageInstance.message.subject}//core:param
core:param
Thank you for your answer.
It works. Can you help me understand why :)
Someone looks in all jar's for
'http://jakarta.apache.org/struts/tags-bean' namespace?
When I am use JSP 2.0 what I sould take instead of jsp:root element?
I use tiles so I can't take html as root element.
Greetings
Kris
Ralf Schneider wrote:
how can a use internationalized text strings stored in a resource bundle as
values of attributes?
html:text property=username title=login.tooltip.username/
Hi Ralf
Have you tried
html:text property=username titleKey=login.tooltip.username/
I use the 'titleKey'
Yes! That's exactly what I was looking for. Thanks a lot!
I missed this attribute when looking through the endless list of attributes of
the HTML taglib.
Ralf.
Am Montag, 3. Mai 2004 18:28 schrieb bOOyah:
Ralf Schneider wrote:
how can a use internationalized text strings stored in a
Hi,
There is a struts form:
form-bean dynamic=true name=cart
type=org.apache.struts.action.DynaActionForm
form-property name=itemsMap type=java.util.LinkedHashMap /
/form-bean
This hash map has got nested has maps. approximately next:
LinkedHashMap itemsMap = new LinkedHashMap();
HashMap map
Hello List,
We have implemented sslext to secure a certain section of our application /
site. As part of the design / biz requirements the main navigation and many
links in the headers and footers are all still available from the https
protected pages.
My question is whether we have to
Hello List,
We have implemented sslext to secure a certain section of our application /
site. As part of the design / biz requirements the main navigation and many
links in the headers and footers are all still available from the https
protected pages.
My question is whether we have to
For your form tag, set the target to a window name, then when you submit,
call a javascript function that opens a new window with the same name. This
will submit all the values from the current page into the targetted new
window.
I think you can also just do form target=_blank and it will
I forgot to include the popup() Javascript function:
script language= javascript
!--
function popup(targetURL) {
var props =
scrollBars=yes,resizable=no,toolbar=no,menubar=no,location=no,directories=no,width=400,height=400;
var popup = window.open(targetURL, Test Title,
Michael McGrady wrote:
At 11:40 PM 5/2/2004, Craig McClanahan wrote:
Michael McGrady wrote:
Isn't it true, Craig, that this is not a problem for hot deploy of
the classes that do this. If you have other classes that do not do
this, then they cannot be hot deployed. But, what difference does
Prasad, Kamakshya wrote:
Hi,
I tried xml entity. It worked though I have few doubts.
This is part of the xml which have that reference
?xml version=1.0 encoding=ISO-8859-1?
!DOCTYPE
web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application
2.3//EN
Hi all i tried this code and the control os coming to initMyList() but not going
inside getName().. Inside the jsp i am accessing the element by friendName[1] and i
get a aeeayIndexoutofBondException.
...Pls help..
public class myTestForm extends DynaActionForm {
public void
Does anyone know if theres any standard guideline for
estimating how much alpha and beta testing an application should get?
Michael Marrotte
Software Engineering Manager
1958 Commonwealth Lane
Tallahassee, FL 32303
Phone 850.350.7852
Mobile 850.322.6780
Fax 850.575.1729
Hi,
my web application loads german strings from a resource bundle. Unfortunately,
the special characters (german Umlaute like , , ) are displayed
incorrectly if they come from the resource bundle. When I write them directly
into the HTML code they are displayed correctly.
At the beginning of
There is a formula for projecting a release date based on # of duplicate
bugs that I can't find now but :
Basically, if you plot the number of duplicate bugs over time you can
estimate the # of undiscovered bugs, thus you can estimate the release
candidate date.
If most of the bugs reported
Joshi, Naveen wrote:
All,
Just wondering if any of you get this Page Cannot Be Displayed error once in a while, in Internet Explorer. Is there a solution to this issue.
Thanks
Naveen
I'm sorry for not replying sooner to this message. Just getting caught
up with struts-users messages.
Joshi,
Hi Ralf,
use unicode in the resource bundle.
\u00c4 = Ä
\u00e4 = ä
and so on.
A complete chart is available here:
http://www.unicode.org/charts/PDF/U0080.pdf
greetings
mattes
--
Mattes Balser | [EMAIL PROTECTED]
High-End Services GmbH | www.nervmich.net
You can use the native2ascii application that is bundled with your JDK to
automatically convert your native-encoded file with umlauts to \u format encodings.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Monday, May 03, 2004 2:50 PM
To: Struts Users
This is somewhat of an HTML question so please don't slam me ...
I am using bean:write name=foo property=bar filter=false/ to
display text containing HTML. However, I would like to find a way to
prevent mangled markup when the data contains unbalanced tags. For
example, if the value of bar
Hi there list,
I have been trying to get the most simple file upload example working with
and have been receiving a strange error message that I just can't seem
to shake.
Here is the basics of my action form
snip=
public class ImageUploadForm extends ActionForm {
//
Bill this will depending totally on the browser how 'broken' or 'unbroken' the
text looks. Because of that, the only solution I can think of is to actually
fix the text before displaying it, or remove the HTML markup.
On Monday 03 May 2004 01:03 pm, Bill Siggelkow wrote:
This is somewhat of an
At 16:09 03/05/2004, Paul McCulloch wrote:
1) Use an html (rather than a jsp) tag:
input type=text name=licenceCount value=c:out
value='${purchaseForm.licenceCount}'/ size=3 readonly=c:out
value='${purchaseForm.newPurchase}'/ maxlength=5/
I've found that this, unfortunately doesn't work, at
It's not a Struts bug, and it's not even a Struts-related problem. Any time
you need to upload files, you must use a POST request with an 'enctype' of
multipart/form-data. Your form element should look like this:
html:form action=/imageUpload.do type=imageUploadForm
enctype=multipart/form-data
At 21:07 03/05/2004, John Moore wrote:
At 16:09 03/05/2004, Paul McCulloch wrote:
1) Use an html (rather than a jsp) tag:
input type=text name=licenceCount value=c:out
value='${purchaseForm.licenceCount}'/ size=3 readonly=c:out
value='${purchaseForm.newPurchase}'/ maxlength=5/
I've found that
Riyad Kalla wrote:
Whats the diff between readonly and disabled=true, I've been using the
latter...
In the terminology of the HTML Specification [1], a disabled control
disallows user input *and* the field will not be successful on a form
submit. In other words, there will be no
Ohhh hell. Chris thanks for the info, I have some serious code updates to
make ;)
Best,
Riyad
On Monday 03 May 2004 02:00 pm, Craig McClanahan wrote:
Riyad Kalla wrote:
Whats the diff between readonly and disabled=true, I've been using the
latter...
In the terminology of the HTML
LOL !!!
-Original Message-
From: Rick Reumann [mailto:[EMAIL PROTECTED]
Sent: Monday, May 03, 2004 3:14 PM
To: Struts Users Mailing List
Subject: Re: [OT] Page Cannot Be Displayed
Joshi, Naveen wrote:
All,
Just wondering if any of you get this Page Cannot Be Displayed
What version of Struts are you using? My guess would be some kind of
binary incompatibility. I'm using sslext with Struts 1.2.0, but I'm
sure most people out there using it are using Struts 1.1.
From the CVS logs
I want to use a forward I have defined
when the user clicks on one of several
on a page. A parameter indicates which
one the user clicked on. In html, it might
look like this:
a href=http://abc.com?x=1;One/a
a href=http://abc.com?x=2;Two/a
a href=http://abc.com?x=3;Three/a
How would I do this
When an exception occurs within a tiles:insert tag, it prints the
exception message to the page. Why is this? How can I fix this problem
so that it simply throws another exception and prints nothing to the
page? I guess I could edit the source but in how many other tags does
this occur? Has
Dude, send me your address and I will fed-ex you a cold beer
!!
I should have thought of that before. Thanks for your help I've
just wasted 24 hours
on this If I was running linux I could have ran a packet capture but
am on crappy
win 2000 box.
--B
Thank you for your pations!
Kris Schneider schrieb:
As of JSP 1.2, the container makes packaged taglibs pretty easy to deal with.
For details, you really should check out the JSP spec (or get a decent book).
One of the things the container will do is inspect each JAR file in WEB-INF/lib
and look
If it's unix that you are running on you could run a command using
nohup , the java orthodox way
is to use a message driven bean/jms if you are running inside an
applicaion server such as JBoss.
--B
atta-ur rehman wrote:
Hello Robert,
As far as I know Struts doen't provide anything like
darn! I knew I should have answered this one!
-R
Dude, send me your address and I will fed-ex you a cold beer
!!
I should have thought of that before. Thanks for your help I've
just wasted 24 hours
on this If I was running linux I could have ran a
On 5/3/2004 10:29 PM, [EMAIL PROTECTED] wrote:
Yes.
Extend the DynaValidator
override the validate method
validate(...) {
ActionErrors errors = super.validate(...);
// do your stuff
if (...) {
errors.add(...);
}
return errors;
}
Pedro Salgado
On
Hi Folks,
I need implement an action which sends back a forward upon request and then,
keep working on a batch process till finish in the background. Anyone
familiar with an easy mechanism in struts 1.1? Thanks.
Robert
-
To
Bill Siggelkow wrote:
This is somewhat of an HTML question so please don't slam me ...
I am using bean:write name=foo property=bar filter=false/ to
display text containing HTML. However, I would like to find a way to
prevent mangled markup when the data contains unbalanced tags. For
Hello Robert,
As far as I know Struts doen't provide anything like this. And actually it
should not!
You'd use Thread class to implement such a task that needs to return
immediately while running in the background.
Hope this helps.
ATTA
- Original Message -
From: Wei, Robert
Whats the diff between readonly and disabled=true, I've been using the
latter...
On Monday 03 May 2004 01:25 pm, John Moore wrote:
At 21:07 03/05/2004, John Moore wrote:
At 16:09 03/05/2004, Paul McCulloch wrote:
1) Use an html (rather than a jsp) tag:
input type=text name=licenceCount
I haven't used it yet, but I suppose
you could create a one-time (or repeating)
job from within your Action into the Quartz
scheduling engine (free):
(http://www.opensymphony.com/quartz/features.html)
Regards,
David
-Original Message-
From: Bryan Hunt [mailto:[EMAIL PROTECTED]
Sent:
I'm wanting to use container based authentication (e.g form based) with
my struts app, but initialize some user settings (which will be read
from a database) as soon as the user succesfully logs in. Any
suggestions for how to best achieve this?
Thanks
Tim
Hello,
Can someone suggest some pointers to some reading materials that gives a
lot of good examples of iterate-tag, for a very dense struts newbie ?
balu raman
everest systems
East Marredpally
Secunderabad
India
-
To
Hi!
I have problems to use the struts taglibs in jsp with xml syntax.
When I use
%@ taglib uri=/WEB-INF/tags/struts-bean.tld prefix=bean %
the generated servlet contains the line
'_jspx_dependants.add(/WEB-INF/tags/struts-bean.tld)'
and everything is ok.
But with the following syntax the line
Balu -
Use the JSTL c:forEach / tag - it's a faster and better tag.
Generally use the JSTL tags over the Struts tags where applicable.
Regards,
Mark
-Original Message-
From: balu raman [mailto:[EMAIL PROTECTED]
Sent: Tuesday, 4 May 2004 5:56 AM
To: Struts Users Mailing List
Subject:
Take the advice about using your foot for the mouse seriously. The only
proper use for a hand is holding a can of beer. ;-)
Im not sure I agree on the wire though. Problem is that there is not enough
springiness there. The best idea is to have the wires attached to firm
springs and the springs
What is now the recommend technique for ActionForm, do we still have to
use them? or just make use of the DynaActionForm instead and then create
the corresponding Action or LookupDispatchAction?
-
To unsubscribe, e-mail: [EMAIL
Guys,
Not to offend anybody but would you please stick to the objective of this
user group? One mail starts the chain of such mails and everyone's mail box
gets flooded with it. We can have a separate yahoo or msn fun group for that
:)
Thanks,
From: Andrew Hill [EMAIL PROTECTED]
Reply-To:
Hi All,
We wish to provide a link to the user, clicking on which user can download the
file(jpg,gif,mpg,wav,tiff) to his/her local disk.
The user should be therefore prompted for the path where the file is to be saved.
Can anyone guide me as to how to achieve the same using Struts.
Thanks,
Eric,
perhaps this is useful for you.
http://weblogs.java.net/pub/wlg/964
cheers,
matthias
-Original Message-
From: Eric Noel [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 04, 2004 7:35 AM
To: Struts Users Mailing List
Subject: Struts 1.1 ActionForm
What is now the recommend
80 matches
Mail list logo