Hello,
I'm searching for best practice in JEE applications to put configuration
elements outside the war/ear.
Here is what I mean : My webapp requires some filesystem path to work
(logs dir, system-dependent config files...). I'm using a java sytem
property to setup a root path for
Laurie,
thanks for the input. I am aware of the container managed security. But as far
as I read in the internet, there is no good solution to use container managed
security together with tiles. So if I wanna have a login-box on every page,
that redirects dynamically to the same page after
You can set them in your startup class by reading the configuration
file.
System.setProperty()
/Ashwani
-Original Message-
From: Nicolas De Loof [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 30, 2006 1:08 PM
To: Struts Users Mailing List
Subject: Best practice for external
Thomas Hamacher ha scritto:
But as far
as I read in the internet, there is no good solution to use container managed
security together with tiles. So if I wanna have a login-box on every page,
that redirects dynamically to the same page after login I will have some
trouble with the container
You didn't understand my problem :
My configuration requires a path that is system dependent. I cannot
include this info in my WAR. I need to set it on the production server.
I'm using a single system property that gives me a filesystem path (or
URL) and get it in my app to setup application
On 8/30/06, Anthony N. Frasso [EMAIL PROTECTED] wrote:
Hello all,
public class Role {
private int id;
private String name;
private String description;
private boolean permissionA;
private boolean permissionB;
...
private boolean permissionN;
}
Each of those
The 1.2.x nightly builds are running just fine. I don't know how
you're kicking off Ant, but here's what the nightly script does:
$ ant download-dependencies nightly
--
James Mitchell
678.910.8017
On Aug 30, 2006, at 1:01 AM, Laurie Harper wrote:
Darren, the examples serve as
Hi,
Can anyone suggest a good Struts book covering advanced Struts topics and
covering Struts 1.2.
regards,
Pankaj
Your best bet would be to read some of the tutorials here:
http://www.learntechnology.net/
The Struts CRUD lesson or the Struts iBATIS Lesson 1 would be helpful.
-Original Message-
From: Maya menon [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 29, 2006 11:45 AM
To:
Actually, that's incorrect. I want to *read* from the
Role bean. I want to *write* to the form bean. I
just don't know how to go about it yet. :) It seems
like I have to read/write to the same form bean, which
doesn't make sense, because I don't have the form bean
until I get to the JSP page,
Hi,
I am new user. I am implementing exception handling in my
application.
In my action class I have try, catch block.
in the catch block
catch(Exception e)
{
return mapping,findforward(failure);
}
I
* Use a fixed length font to see this message in correct layout.
In order to create a layout like this, I use six elements.
+---+
|Header |
+--++
| ||
| ||
| Menu | Body
Mehdi Bahribayli ha scritto:
* Use a fixed length font to see this message in correct layout.
In order to create a layout like this, I use six elements.
+---+
|Header |
+--++
| ||
| |
Eric --
I would also check out
http://MachineName:Port/struts-examples/exercise/welcome.do
for some good examples,
(link courtesy of wendy smoak)
Thanks,
Martin --
*
This email message and any files transmitted with it contain
I think (but I didn't try) that you can do, in welcome.jsp:
tiles:insert name=tiles:master
tiles:put name=body value=/subviews/welcome-body.jspf /
/tiles:insert
The attribute body will be filled only in a specific request.
Let me know if it works.
Ciao
Antonio
I. I have already tried
[moving to struts-user list]
A new session is created when you request a new session somewhere,
it's not created automatically. However, there could be a filter,
request processor, action, or JSP somewhere that does a
request.getSession() or .getSession(true) (or '... session=true...'
in JSP),
Mehdi Bahribayli ha scritto:
tiles:insert name=tiles:master
tiles:put name=body value=/subviews/welcome-body.jspf /
/tiles:insert
I. I have already tried that. I get an exception:
javax.servlet.jsp.JspException: Invalid attribute type: java.lang.String
This could be possibly a bug,
On jboss, this can be done by configuring the SystemPropertiesService.
@see jboss\server\all\deploy\properties-service.xml
Properties can be configured inline in the xml file or can be declared in a
separate file which is referenced by properties-service.xml.
Hello,
I'm searching for best
Thanks for this info,
I'm targeting Tomcat 4 (for developpers) and Websphere 5 (for production)
Nico.
Lance a écrit :
On jboss, this can be done by configuring the SystemPropertiesService.
@see jboss\server\all\deploy\properties-service.xml
Properties can be configured inline in the xml
I have useed struts1.2 file upload in many projects for many times.It worked
well perfectly.
But in my current project struts1.2.8
After uploading file ,I am showing data in jsp by nested tags.
When clicked any of the action in JSP latest data is not set to ACTIONFORM.
to be simple,
Data
Struts: The Complete Reference
* http://opensource.atlassian.com/confluence/oss/display/BOOKS/ISBN-0072231319
On 8/30/06, Pankaj Gupta [EMAIL PROTECTED] wrote:
Hi,
Can anyone suggest a good Struts book covering advanced Struts topics and
covering Struts 1.2.
regards,
Pankaj
-- HTH, Ted.
*
On Aug 30, 2006, at 8:40 AM, Mehdi Bahribayli wrote:
II. I think you have misunderstood what I wanted to say. I think
there is no need for /subviews/welcome.jspf because it is used just
once and there is no need to put the contenet in a separate file. I
think both /subviews/welcome.jspf
One thing that has often bothered me about Tiles in a standalone web
application is the need for a JSP page that calls a tiles
definition. Consider the following from the Tiles 2.0 test application:
tiles-defs.xml
definition name=doc.mainLayout path=/layout/classicLayout.jsp
put
I think I found the offending code. It is located in the Struts
RequestProcessor.processLocale method (which is called *before* the
pre-process). In that method is the following code:
// Has a Locale already been selected?
HttpSession session = request.getSession();
So I will *always* get a
Is this following possible?
s:bean name=java.util.HashMap id=qTableLayout
/s:bean
s:push value=#qTableLayout
s:param name=tablecolspan value=%{4} /
s:param name=currentColumnCount value=%{0} /
/s:push
If it isn't how do you change the value of something on the value stack once
you are
I recommend:
http://www.objectsource.com/
It's a free PDF book
-Original Message-
From: Ted Husted [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 30, 2006 10:24 AM
To: Struts Users Mailing List
Subject: Re: Struts Book?
Struts: The Complete Reference
*
Antonio Petrelli [EMAIL PROTECTED] wrote: Mehdi Bahribayli ha scritto:
I. I have already tried that. I get an exception:
javax.servlet.jsp.JspException: Invalid attribute type: java.lang.String
This could be possibly a bug, I will investigate it.
II. I think you have
Thanks for the vote of confidence Ted. A 2nd edition of my Struts: The Complete
Reference will be out at the end of the year that is up to date with Struts 1.3.
Thanks,
James
On Wed Aug 30 8:23 , 'Ted Husted' [EMAIL PROTECTED] sent:
Struts: The Complete Reference
*
Greg Reddin [EMAIL PROTECTED] wrote:
On Aug 30, 2006, at 8:40 AM, Mehdi Bahribayli wrote:
II. I think you have misunderstood what I wanted to say. I think
there is no need for /subviews/welcome.jspf because it is used just
once and there is no need to put the contenet in a separate
What is minimum requirement for file upload configuration in struts.
My ActionForm is in session scope in actionmapping.
What are precautions to configuring declaritively in struts-config.xml or in
action in order to avoid unwanted thread/IO stream hanging or some other
problems.
After file
Greg Reddin [EMAIL PROTECTED] wrote: One thing that has often bothered me
about Tiles in a standalone web
application is the need for a JSP page that calls a tiles
definition. Consider the following from the Tiles 2.0 test application:
tiles-defs.xml
In
On 8/30/06, James Holmes [EMAIL PROTECTED] wrote:
Thanks for the vote of confidence Ted. A 2nd edition of my Struts: The Complete
Reference will be out at the end of the year that is up to date with Struts 1.3.
Is that an unofficial announcement of the 1.3 release date? :-)
Simon
--
What are best practices in using Multipart request for file uploads using
struts
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
I think I found the offending code. It is located in the Struts
RequestProcessor.processLocale method (which is called *before* the
pre-process). In that method is the following code:
// Has a Locale already been selected?
HttpSession session = request.getSession();
So I will *always* get a
Ha! If Holmes can predict the future, I've got a few lottery tickets
I'd like him to look over for me ;)
--
James Mitchell
678.910.8017
On Aug 30, 2006, at 11:00 AM, Simon Chappell wrote:
On 8/30/06, James Holmes [EMAIL PROTECTED] wrote:
Thanks for the vote of confidence Ted. A 2nd
Greg Reddin ha scritto:
template-stuff/
ui:insert name=headerDefault Header Stuff/ui:insert
more-template-stuff/
ui:insert name=bodyDefault Body Stuff/ui:insert
still-more-template-stuff/
ui:insert name=footerDefault Footer Stuff/ui:insert
Then you extend it with a
I found that
onclick=this.value=${labelPrinterButton}
is working
Leon Rosenberg wrote:
hi,
try:
onclick=%=this.value='+labelPrinterButton+'%'
regards
Leon
On 8/29/06, Laurent Duparchy [EMAIL PROTECTED] wrote:
Hi,
I'm forced to use a scriptlet to insert a localized label into a tag.
On 8/30/06, Simon Chappell [EMAIL PROTECTED] wrote:
Is that an unofficial announcement of the 1.3 release date? :-)
There is already a 1.3.5 beta release pending.
* http://struts.apache.org/announce.html
How soon it goes GA depends on how soon people like Simon Chappell
take it for a spin
On 8/30/06, Antonio Petrelli [EMAIL PROTECTED] wrote:
P.S.: Should we use [Tiles 2.0] when referring to new Tiles? I asked
this because the site it is written to use [tiles] instead (anyway
[Tiles 2.0] is much clearer).
It's just a tag for those who want to filter on the subject line... I
Anthony,
I am puzzled by your comment that you don't have a form bean before you
get to the jsp. We do this all the time. Say I want to display a list
of inventory items for a user. I retrieve a list of inventory items
matching the query data the user gave me and create an array of
On 8/30/06, Ted Husted [EMAIL PROTECTED] wrote:
On 8/30/06, Simon Chappell [EMAIL PROTECTED] wrote:
Is that an unofficial announcement of the 1.3 release date? :-)
There is already a 1.3.5 beta release pending.
* http://struts.apache.org/announce.html
How soon it goes GA depends on how soon
I think the validator fires too early, but probably I am doing something
wrong. Maybe somebody can hp!
I have the following form bean defined in struts-config.xml:
form-bean name=changePersonalDataForm
type=org.apache.struts.validator.DynaValidatorActionForm
form-property
Tom Bednarz wrote:
I think the validator fires too early, but probably I am doing something
wrong. Maybe somebody can hp!
Basically, you need 2 actions, one to populate the form and one to
change the personal data.
I have the following form bean defined in struts-config.xml:
I guess I don't follow
How do I prepopulate the form bean? I have a list
page which lists all of the roles in the system. When
the form on the list page is submitted, I can retrieve
the ID of the role that the user wants to edit. In
the action class I then retrieve that role, and put it
David Durham wrote:
Tom Bednarz wrote:
I think the validator fires too early, but probably I am doing
something wrong. Maybe somebody can hp!
Basically, you need 2 actions, one to populate the form and one to
change the personal data.
David,
This is EXACTLY what I like to AVOID! With
On 8/30/06, Anthony N. Frasso [EMAIL PROTECTED] wrote:
I don't have the form bean
until I get to the JSP page, so there's no way to
initialize it.
Struts being a classic Model 2 framework requires all requests to go
through an action. Well, this is not a strict requirement just a
standard
Yes you do, the form is passed in as one of the parameters to execute().
The typical pattern is for the action to be invoked via an action
mapping, populate the form bean and forward to the JSP. It's during this
action processing that you copy your business data into the form bean,
thus
Why are you making these fields so complex? You have
html:text value=${sessionScope.subscriber.familyname}
property=familyname name=familyname maxlength=64
size=32/
Instead of the simple form:
html:text property=familyname maxlength=64 size=32 / ?
Why do you need to specify
Thomas Hamacher wrote:
Laurie,
thanks for the input. I am aware of the container managed security. But as far
as I read in the internet, there is no good solution to use container managed
security together with tiles. So if I wanna have a login-box on every page,
that redirects dynamically
On 8/30/06, Tom Bednarz [EMAIL PROTECTED] wrote:
The idea is, that I show a form that contains already data and the user
can edit it. When the form is submitted, the validator should check the
user input. Here is my validator configuration:
...
Now it seems, that the validator gets fired
This is a little OT, but it, uh, kind of has to do with Struts :).
I'm interested in adding a few attributes to some of the struts tags.
They're really only useful in the context of a specific web project I'm
working on, so I'd really prefer not to edit the Struts TLD and
implementation (for
Tom Bednarz wrote:
David Durham wrote:
Tom Bednarz wrote:
I think the validator fires too early, but probably I am doing
something wrong. Maybe somebody can hp!
Basically, you need 2 actions, one to populate the form and one to
change the personal data.
Or at least two action mappings, if
Thanks a lot for all your input and help. It looks like I need some
basic concepts clarified. Here a very short background of the
application and what my intension is:
The object 'subscriber' is a special business object: it represents the
logged in user and contains a lot of information
Tom Bednarz wrote:
So I used
html:text value=${sessionScope.subscriber.firstname}
property=firstname name=firstname maxlength=64
size=32/
Don't specify value. Simply copy the properties from a subscriber
object (session scoped or otherwise) to a formbean (the one being used
to
On 8/30/06, Tom Bednarz [EMAIL PROTECTED] wrote:
What is the correct or preferred way to link business-objects with form
beans. Is this only possible by copying data from a business object to a
form bean or is there any 'smarter' way?
You might want to take a look at FormDef:
Hi all,
For the life of me I can't get JSF to stinkn forget values that were
entered on a form.
The view controller is request scope.
If I start to enter data in a form and then click the Cancel button,
which has immediate=true, the values entered by the user reappear
in the form when I return
On 8/30/06, Jason Vincent [EMAIL PROTECTED] wrote:
Hi all,
For the life of me I can't get JSF to stinkn forget values that were
entered on a form.
The view controller is request scope.
Are you using Shale for this? If so, you'd be best off joining the Shale
user list, as Shale is now it's
[EMAIL PROTECTED] wrote:
Hello!
Thank you to all for your hints. Now, I want to tell you, what I did at last.
My application consists of nearly 100% forms. The application is logically
devided into two parts (- represented by two browser windows), and it must be
possible to get from one part
Thanks a lot for all that feedback. I think it gets me a step further.
Tom
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hi,
I am developing web client using Struts Framework. I am facing a problem
in following scenario.
I have an arraylist of Data , which is populated in Table Grid using
Display-Tag library. The first time when the page appears, the data
comes from the Database.
It is working fine for the first
60 matches
Mail list logo