Great, thanks
Nico.
> Here's how I do it:
> (This demonstrates both static and dynamic values for use with the
> html:link)
>
>
> ...
> ...
>
>
>
>
> ...later down the page...
>
>
>
>
> ...
> ...
>
>
>
>
> --
> James Mitchell
> Software Engineer / Open Source E
Thanks Bill,
I guess, i would be customising the request processor as u mentioned.
this wud be one of the easy ways...of filtering.
1.As all action ie- *.do s pass through the request processor so i will keep
an authorisation check.
2. I can use hashmaps and session too.
Thanks. have a great da
Carl,
Thank you for the corrects, yes after you point it out it seems I did
read something very incorrectly. I appreciate you suggestion at the
bottom of the message, I will look into this.
Best,
Riyad
Carl-Eric Menzel wrote:
I was reading in the Hibernate forums that when you have a WebApp > DA
> I was reading in the Hibernate forums that when you have a WebApp > DAO
> Hibernate > DB design, and you open/close each Hibernate session at
> every single DAO method call (what I do now) its actually quite
> expensive,
This is fairly expensive, but not that much. The *SessionFactory* is
expen
Hi Nikhil,
thanks a lot for your help.But we have tried thyis solution.The problem is
I need to create the ArrayList with some size which is defined at the
server end like in your action class or Struts-config.But If i add rows
dynnamically at the client add then it throws ArrayIndexOutofBound err
Git r dun!
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
...
Jannu Winod wrote:
how to handle user defined beans if we are using them in form beans. see the following
code. Im looking for the jsp code in struts to define the text fields
pls send me the code.
with thnx.
class MyBean
{
private String firstName;
private String lastName;
public voi
Navjot,
One validates based upon the action mapping so you can make /update.do and
/create.do use the same Action class but have different validation rules.
The other is based on the form itself so any Actions using that form would
have the exact same validation methods.
Regards,
David
-Orig
http://wiki.apache.org/struts/ValidatorActionForms
-Original Message-
From: Navjot Singh [mailto:[EMAIL PROTECTED]
Sent: Tuesday, 8 June 2004 14:48
To: Struts Users Mailing List
Subject: ValidatorForm vs ValidatorActionForm
hi,
What's the use of ValidatorActionForm when ValidatorForm
I just posted about this a few days ago...
You should read section 4.1.1 of the
Tiles Advanced Features (link at bottom
of the page of the struts site, section
on the Tiles User Guide) which gives
examples like so:
<%@ taglib uri="/WEB-INF/tiles.tld" prefix="tiles" %>
I do something like
im forwarding to a jsp page from the action class say processAction->fwd->result.jsp.
result.jsp is with tiles. say using some template and header/menubar/footer.
im going to display the result in the body-content page.
do i need to use a seperate jsp for the that or can i show them at the result.j
hi,
What's the use of ValidatorActionForm when ValidatorForm is already there?
---
regards
Navjot Singh
Net4India Ltd.
Politicians are like diapers and need to be changed for same reason.
-
To unsubscribe, e-mail:
Hi,
You can use struts nested tags to retrieve the beans stored in the
action form.
Code snippet is as follows
Thanks,
Satish
-Original Message-
From: Jannu Winod [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 08, 2004 9:40 AM
To: Struts Users Mailing
how to handle user defined beans if we are using them in form beans. see the following
code. Im looking for the jsp code in struts to define the text fields
pls send me the code.
with thnx.
class MyBean
{
private String firstName;
private String lastName;
public void setFirstName(String
It's not very process intensive if you are using
a connection pool where it just hands you an
already-open connection. Hibernate can use a
few different connection pools including JCS,
C3P0, OSCache, etc.
Regards,
David
-Original Message-
From: Riyad Kalla [mailto:[EMAIL PROTECTED]
Se
This adds default resizing of array or java.util.List properties
Btw. I don't know why ClassCastException is catched if the type is
explicitly checked using instanceof
Index: DynaActionForm.java
===
RCS file:
/home/cvspublic/jakarta
thanks.
i just modified my code to expose the Map, then viola...
i can now start converting some of my jsp's to JSTL.
thanks again guys...
-Richard
- Original Message -
From: "Kris Schneider" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Tuesday, June 08
Brian,
I agree that sounds very expensive, I don't know how Hibernate works yet
so I didn't know what a Hibernate Session really consists of to know if
that was as resource intensive as it sounded.
If this is the case, then I suppose using the HibernateUtil that I am
using now from the Hibernat
James,
Does the pretty printing option work in netbeans?
Nathan
On Jun 7, 2004, at 3:20 PM, James Holmes wrote:
Struts Console version 4.7 is now available.
http://www.jamesholmes.com/struts/
Download Now:
http://www.jamesholmes.com/struts/struts-console-4.7.zip
-- OR --
http://www.jamesholmes.co
Barnett, take a look at html:errors tag source to see
how it generates html, then you know what to do.
-D
- Original Message -
From: "Barnett, Brian W." <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, June 07, 2004 6:05 PM
Subject: how to check if html:errors will display anyth
Wouldn't that be pretty resource intensive since it would basically mean
that you have a database connection for every user session in your app.
Typically that is pretty bad and getting a new connection from a connection
pool is usually pretty quick.
I'm unfamiliar with how hibernate manges sessio
Kunal,
You could add a 'state' property to the form, that the first action can
set to 'STARTED' and the last action can set to 'FINISHED' or something
like that, then in your reset() method you could do something like:
reset()
{
if(state == Constants.FINISHED)
{
// reset all vars
Great question, I solved this by checking if Globals.ERROR_KEY was null
or not, but I still wanted something more, because I set aside a small
margin in the top of my page for global errors, like System errors...
and I only wanted to display the margin IF there were some
ActionMessages.GLOBAL_M
Hi All!
I want to maintain a single ActionForm across multiple Actions.
I want to get the info from the user in a step-by-step manner, but only
wanna talk to the SessionBean at the end when they hit "confirm".
The alternative that I can think of is writing a JavaBean with all the
properties, and
found out that in tomcat 4.1, el can ONLY be used inside of the jstl tags.
downloading tomcat 5 right now..
"pls" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> 'bean1' is a bean created by logic:iterate and contains 'myHashMap'.
>
> I am trying to access the 'key' property of the b
How can I check if the html:errors tag will display anything down inside my
jsp page? I have the html:errors tag inside a table tag and I don't want the
table generated at all if there aren't any errors to display.
Thanks,
Brian Barnett
Struts Console version 4.7 is now available.
http://www.jamesholmes.com/struts/
Download Now:
http://www.jamesholmes.com/struts/struts-console-4.7.zip
-- OR --
http://www.jamesholmes.com/struts/struts-console-4.7.tar.gz
--- BIG ENHANCEMENT ---
Updated the Eclipse plugins to support changing ou
Kunal H. Parikh wrote:
Hi All!
I just wanted a view of people in the industry on their preferences for
PERSISTENCE, and if possible, WHY!
I intend to run everything in the same JVM and most likely be using JBOSS.
TIA,
Kunal
-
To u
Riyad Kalla wrote:
I was reading in the Hibernate forums that when you have a WebApp > DAO
Hibernate > DB design, and you open/close each Hibernate session at
every single DAO method call (what I do now) its actually quite
expensive, and is suggested that you attempt to maintain a Hibernate
Hi All!
I just wanted a view of people in the industry on their preferences for
PERSISTENCE, and if possible, WHY!
I intend to run everything in the same JVM and most likely be using JBOSS.
TIA,
Kunal
-
To unsubscribe, e-mai
This usually occurs when you try to use form elements outside of the tags.
Make sure all your pulldowns and checkboxes are used inside an tag.
Ciao,
Ricardo
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Monday, June 07, 2004 9:04 AM
To: [EMAIL PROTECTED]
S
I've seen something like this posted, but with no answers.
I have an issue where I have an alias for an application. For eg.
www.company.com/home/appname is an alias for www.company.com/appname, where appname is
the context name of my app.
When I use the html form tag in my app as follows:
I've seen something like this posted, but with no answers.
I have an issue where I have an alias for an application. For eg.
www.company.com/home/appname is an alias for www.company.com/appname, where appname is
the context name of my app.
When I use the html form tag in my app as follows:
My code uses the html:link in the following way:-
As per my understanding, it should produce
where,
= session.getAttribute("menu").getName() [by reflection]
= session.getAttribute("menu").getDisplayText() [by reflection]
But for some reason, I am getting an "No getter m
I was reading in the Hibernate forums that when you have a WebApp > DAO
> Hibernate > DB design, and you open/close each Hibernate session at
every single DAO method call (what I do now) its actually quite
expensive, and is suggested that you attempt to maintain a Hibernate
Session in conjunction w
All,
My code uses the html:link in the following way:-
As per my understanding, it should produce
where,
= session.getAttribute("menu").getName() [by reflection]
= session.getAttribute("menu").getDisplayText() [by reflection]
But for some reason, I am getting an "No ge
'bean1' is a bean created by logic:iterate and contains 'myHashMap'.
I am trying to access the 'key' property of the bean so that i can set the
property -'prop1'.
setting the value of 'prop1' changes the value returned from the getter for
'prop2'.
I have tried the following but it sets 'prop1' t
Lesaint Sébastien wrote:
Thanks for your answer, but it doesn't make sense. I tried it though, it
doesn't work :)
I can't call http://www.myserver.com/webApp/login.do anymore if I use it.
It has to go through an action.
type="org.your.package.YourAction"
name="some
Hello all,
I finally found out where this problem came from when I check the access log
of the server.
As you could see in the code snippets, I use the tag in the
header of the jsp file I use as the view component (pageModelTest.jsp).
The resulting HTML tag is
"http://www.myserver.com/webApp/lay
I've seen something like this posted, but with no answers.
I have an issue where I have an alias for an application. For eg.
www.company.com/home/appname is an alias for www.company.com/appname, where appname is
the context name of my app.
When I use the html form tag in my app as follows:
Hi
CAn anyone of you tell me the reason for the following
error.
javax.servlet.ServletException: Cannot find bean
org.apache.struts.taglib.html.BEAN in any scope
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:867)
org.apache.jasper.runtime
Oops -- you're right Kris -- thanks for the clarification.
Kris Schneider wrote:
Well, sort of. In the typical example of a mapped property (like the one Richard
provided), the map itself isn't exposed as a JavaBean property, so JSTL can't
get at the information it contains:
private final Map value
I've always used tile definitions exclusively defined in tiles-defs.xml in
the past.
Now, I would like to have some pages where I put the commands
directly into the JSP.
However, I'd like to use my existing layout definitions from the config file
rather than re-definiting them in the JSP or a JSP
Well, sort of. In the typical example of a mapped property (like the one Richard
provided), the map itself isn't exposed as a JavaBean property, so JSTL can't
get at the information it contains:
private final Map values = new HashMap();
public void setValue(String key, Object value) {
values.pu
What is the type of the property in your form? It should be
org.apache.struts.upload.FormFile.
swarna wrote:
Hi,
I am trying to do file upload using struts1.1. I am getting
illegal argument type exception(stack trace attached below). I am struggling
to fix this since three days. I would
-- or --
Richard Raquepo wrote:
hi,
i am converting some of the jsp's to jstl.
how do i convert this line to jstl:
where getValue is defined as
HashMap values = new HashMap();
.
public String get(String name){
String value = (String) values.get(name);
return value;
}
hoping
And note, that there is a *new* Processor-Clazz
in /contrib, which implements
http://jakarta.apache.org/commons/sandbox/chain/
Cheers!
> -Original Message-
> From: Amleto Di Salle [mailto:[EMAIL PROTECTED]
> Sent: Monday, June 07, 2004 6:53 PM
> To: 'Struts Users Mailing List'
> Subject
Hi,
Front Controller design pattern contains several collaborations and
strategies in order to "implements" the pattern. See the link that i
sent you before in order to understand what i mean.
Anyway, the FrontController class inside Struts is the ActionServlet
class and the ApplicationController
> Struts contains a Front Controller implementation!
Could you point me to a particular class? Or are you saying that the
default class is already following Front Controller?
Thanks,
Yaakov.
-
To unsubscribe, e-mail: [EMAIL PRO
Hi,
Struts contains a Front Controller implementation!
Anyway, if you want to see the Front Controller design pattern and
others please visit http://www.corej2eepatterns.com/index.htm
BR
Amleto
-Messaggio originale-
Da: Chaikin, Yaakov Y (US SSA) [mailto:[EMAIL PROTECTED]
Inviato: l
If you cache in the oracle you still need a connection to it to get the data when
running Java.
Please remember that I want to ask if we can use EJB replacing the pure Java object
caching...
-Original Message-
From: Jose Ramon Diaz [mailto:[EMAIL PROTECTED]
Sent: Monday, June 07, 2004 10
> Hi,
> I think that MVC and Front Controller are slightly different because MVC
> (or Model 2) is an "architectural" pattern and Front Controller is a
> design pattern.
>
> Front Controller design pattern is a possible solution for the
> Controller "element" inside the MVC pattern.
Right. So, is
Hi,
I think that MVC and Front Controller are slightly different because MVC
(or Model 2) is an "architectural" pattern and Front Controller is a
design pattern.
Front Controller design pattern is a possible solution for the
Controller "element" inside the MVC pattern.
BR
Amleto
-Messaggio
Here's how I do it:
(This demonstrates both static and dynamic values for use with the
html:link)
...
...
...later down the page...
...
...
--
James Mitchell
Software Engineer / Open Source Evangelist
EdgeTech, Inc.
678.910.8017
AIM: jmitchtx
- Original Message
> Model 2 / MVC / Front Controller are all the same thing.
Hmm... No, they are not. Front Controller and MVC are similar, but are
NOT the same design patterns! Front Controller is used for a sequence of
predefined steps (like a check out on amazon). MVC is used for
separation of Model (data handl
Thanks for your answer, but it doesn't make sense. I tried it though, it
doesn't work :)
I can't call http://www.myserver.com/webApp/login.do anymore if I use it.
-Message d'origine-
De : Johannes Wolfgang Woger [mailto:[EMAIL PROTECTED]
Envoyé : lundi 7 juin 2004 17:04
À : Struts Users M
Comments below:
Hi Riyad,
here is a simple example:
I feel foolish, this is exactly what I wanted and didn't even see that
in the taglib docs. Thanks a million!
BTW, you are doing a very good job on MyEclipseIDE Team!
Thank you, I appreciate that. They are a great/strong team to work wit
Hi,
What is the 'cleaner' way to define and populate a map to be used with
tags ?
Notice I can use JSTL.
Nico.
Our name has changed. Please update your address book to the following format:
"[EMAIL PROTECTED]".
This message contains information that may be privileged or confidential and
And why don´t you cache it in Oracle?
Isn´t it enough?
> -Mensaje original-
> De: Zhang, Larry (L.) [mailto:[EMAIL PROTECTED]
> Enviado el: lunes, 07 de junio de 2004 15:54
> Para: Struts Users Mailing List
> Asunto: caching data in application server and EJB usage
>
>
> I have a Oracle ta
Lesaint Sébastien wrote:
Hi,
A little more information.
My investigation lead me to the conclusion that this error is somehow
related to Tiles includes.
When requesting the page with mozilla, I noticed there is a delay between
the time the text is visible and the time the browser stop loading an
Hi,
I had the same problem. I solved it by using Tiles definitions.
will not work. There is some ugly work-around though, but my
advice is to use Tiles event if it requires some time to understand and use.
--
Seb'
-Message d'origine-
De : Marco Rossi [mailto:[EMAIL PROTECTED]
Envoyé :
Hi,
A little more information.
My investigation lead me to the conclusion that this error is somehow
related to Tiles includes.
When requesting the page with mozilla, I noticed there is a delay between
the time the text is visible and the time the browser stop loading and the
error is logged on
I want to include an action in a jsp page, something like .
How can I do?
Cerchi un laboratorio fotografico aperto 24 ore su 24?
Stampa le tue foto digitali su Kataweb e le ricevi a domicilio in 48 ore.
http://www.kataweb.it/
I have a Oracle table that contains more than 1 rows and this table is almost a
read-only table -- meaning that our web application uses this table just for read
purposes. Since accessing the data in this table is frequent, so we decided to do some
sort of caching so that the performance is
After some Google / Apache list archives search, i solved my problem (and notice it
was full of topic on this list ;-)
For other peoples having same troubles :
I've added mod_rewrite to my apache (compile with --enable-module=rewrite)
I've set this rule in httpd.conf :
RewriteEngine on
Or do it in the reset() method.
--
James Mitchell
Software Engineer / Open Source Evangelist
EdgeTech, Inc.
678.910.8017
AIM: jmitchtx
- Original Message -
From: "James Mitchell" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Monday, June 07, 2004 7:35 AM
In the action leading to that page, check to see if that property is set, if
not, set it to the value you wish to be the default.
--
James Mitchell
Software Engineer / Open Source Evangelist
EdgeTech, Inc.
678.910.8017
AIM: jmitchtx
- Original Message -
From: "Satish Kataria" <[EMAIL P
Hi Riyad,
here is a simple example:
BTW, you are doing a very good job on MyEclipseIDE Team!
Henrique Viecili
- Original Message -
From: Riyad Kalla
To: Struts Users Mailing List
Sent: Saturday, June 05, 2004 9:15 PM
Subject: Taglib: how do you call a method like java.
Hi,
Can I select a particular option as the default option in a set of radio
buttons.
If yes, then what is the way of doing it using nested:radio tag.
Any code snippet will be very helpful
Thanks,
Satish
hi,
i am converting some of the jsp's to jstl.
how do i convert this line to jstl:
where getValue is defined as
HashMap values = new HashMap();
.
public String get(String name){
String value = (String) values.get(name);
return value;
}
hoping for your immediate response.
Hello all,
I have a webApp using Struts and Tiles.
I have a strange log occurring when I request pages using action and Tiles,
but only if the browser is Mozilla (I tested with IE and Opera, it's fine).
This error appeared recently, it did not just appear because I started using
Tiles and Struts'
hi,
i am converting some of the jsp's to jstl.
how do i convert this line to jstl:
where getValue is defined as
HashMap values = new HashMap();
.
public String get(String name){
String value = (String) values.get(name);
return value;
}
hoping for your immediate response.
Final Call!
>
> UK Struts Users
>
> We have more people (including myself) who are meeting for informal
> drinks on Monday 7th June 2004 19:15 GMT @ Waxy O'Connor (Irish Pub)
> in central London, the West End.
>
> Peter Pilgrim / CSFB
> Tim Penhey
> Niall Pemberton
> (
What are advantages of tiles over html
frames?
Brati Sankar Ghosh
Tata Consultancy Services
Mailto: [EMAIL PROTECTED]
Website: http://www.tcs.com
DISCLAIMER: The information contained in this message is intended only and solely for
the addressed individual or entity indicated in this message and
You can use tag
e.g.
then use on "listSize"
- Original Message -
From: "Riyad Kalla" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Sunday, June 06, 2004 5:45 AM
Subject: Taglib: how do you call a method like java.util.List.size() from the property
hi,
did anyone played with FIT (FrameworkForIntegratedTest)
http://fit.c2.com/
for (struts-) acceptance test?
Cheers,
Matthias
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hi all,
I've got some troubles using html:rewrite on a Tomcat(4.1.30)/Apache(2.0.49) server:
My tiles base layout uses to include a link to the CSS stylesheet :
On first access to the page, rewrite adds jsessionId to the URL :
77 matches
Mail list logo