If you're using Tomcat 4.x (or Tomcat 5.x with a web.xml file that
conforms to the old DTD), you have to get your web.xml configuration
elements in the correct order. If this is the mistake you made, the
error message you got from the XML parser will tell you what the right
order is.
Craig
On
Hi Jack,
Thanks for the replies. I basically wanted to write a test programme where
in I have few
text fields and 3 html:file inputs. Before I send the "text" information and
"images" to the
server, I wanted to show a preview to the user.
What I am planning to do is, pass the values to the bean fo
hi all ,
On submit of a form , struts resets the bean before populating the form .
For that perticular action can i stop the resetting of bean ?
in my application i need to pupulate one bean from two forms .
It has following structure :-
JSP pages - First.jsp , Second.jsp
Actions - FirstActio
On Tue, 21 Dec 2004 10:15:26 +0530, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
> Hi,
> A new chapter from a Struts book has been posted to TSS. It seems
> that the solution for automatic conversion and formatting is already there
> in the form of java bean PropertyEditors.
>
The Proper
hi all ,
how to configure the session timeout in Tomcat with struts ?
i tried the following in web.xml ,but it gives error after restarting the
server
800
thanks in advance
Regards,
Sachin Hegde
-
To u
Thanks David,
I thought "loading the object directly before putting it in the scope" would
be the best option for now, but will check out the hibernate docs.
Our controllers and hibernate mapping file is generated from a UML model.
The mapping file specifies that the collection should be loaded "
Hi,
The structure is always...J2EE structure.
if u look at webapps of tomcat...u better know aboutt the structure u can
follow..
Pls let me know then also do have ambiguity in finding the application
structure...
> --Thanks& Regards
> Srinivas Thutika
>
-Original Message-
From: Meenak
Hi all,
I am newbie in struts.
I need help from u all in designing my application in Struts.
Plz correct me if I am wrong anywhere.
I m planning to use WSAD for development. & would be implementing it
with Tomcat 4.1(as wsad doesn't give an option to configure a higher
version) & JDK1.3.
My ap
How about triggering off the submitMethod.x name's existance. You don't
care about what the value is, but the mere existance should work.
Karr, David wrote:
This isn't strictly a Struts question, but I may have to manipulate the
Struts tags to get around this problem.
I have some code that uses
"Linux" for RHEL 3 update 3 with J2SE 1.4.2_05
On Tue, 21 Dec 2004 00:24:20 -0500, Frank W. Zammetti
<[EMAIL PROTECTED]> wrote:
> It's in the mail :)
>
> (Of course, if I can finish what I'm working on tomorrow, I'll release
> that in lue of beer, and Christmas presents :) It's nothing
> Earth-
It's in the mail :)
(Of course, if I can finish what I'm working on tomorrow, I'll release
that in lue of beer, and Christmas presents :) It's nothing
Earth-shattering, but may come in handy for some folks)
--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://ww
Geez, can't say I even knew there was a JVM for AS/400 :) I think I'm
going to hold off supporting that OS with what I'm doing, at least
initially. Thanks for the info though, I'll add it to my list, for when
the time comes.
--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Te
Marius,
In Hibernate when you use Lazy initialization it means no attempt is made to
read your data from the database UNTIL you ask for a component of the
object. So, if you save your object to a scope (request, session, tile,
application) and close your "session" object. You might get around th
Hi,
A new chapter from a Struts book has been posted to TSS. It seems
that the solution for automatic conversion and formatting is already there
in the form of java bean PropertyEditors.
Why isn't Struts ( Shale ? ) proposing the use of PropertyEditors ( like
Spring )? Is it too much chan
Long post follows...I don't know if its an Eclipse, Tomcat or
Struts problem...
I've been trying to get started on Java Web Development using Eclipse,
Tomcat, and Struts for the past several weeks. Sometime last week I
got both simple JSP's (no custom logic) and the same JSP's using Ti
Hi
Do u care about AS400 system value, if so then
Key os.name Value OS/400
Ashish
--- "Frank W. Zammetti" <[EMAIL PROTECTED]> wrote:
> I was informed last OT post I made that the subject
> should always
> include the word "beer". I added the "free" to get
> your attention :)
>
> I'm working on
Windows 2000
...so when do I get my free beer mate? ;-)
Frank W. Zammetti wrote:
I was informed last OT post I made that the subject should always
include the word "beer". I added the "free" to get your attention :)
I'm working on something for which I need to know what the os.name
property on
do a google for advanced-tiles.pdf and you will find the answer..
Jim
From: icon911 <[EMAIL PROTECTED]>
Reply-To: icon911 <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: Tiles, controllerUrl calling multiple actions
Date: Mon, 20 Dec 2004 17:44:11 -0800
Hi,
I have a controllerUrl preparing data
Hi,
I have a controllerUrl preparing data that will be displayed within
tiles, but because I have a variety of different module, controller
getting pretty fat, is there a way for controller to call an action to
be executed and than come back to controller. I want to do it without
calling the actio
Jim,
JNDI is the best-practice approach to dealing with acquisition of
data-sources. It's not always practical to use (for example, if you
don't have control over the server config) but it sure is slick.
Not knowing what is in the tile that produces the error, it's
difficult to say what your err
That doesn't address the issue of having multiple - and ' characters
together. Plus, it will only allow two-section names. Regular
expressions are fantastic, if you can find one to suit your needs. It
can often be difficult to arrive at an apropriate expression though
:-( Power brings complexit
It is version 1.2.4.
1) Both modules (root module and submodule) are configured as follows in
web.xml:
action
org.apache.struts.action.ActionServlet
config
/WEB-INF/struts-config.xml
This isn't strictly a Struts question, but I may have to manipulate the
Struts tags to get around this problem.
I have some code that uses "html:image" to form an image submit button.
I don't care about the click coordinates, I just care about the request
parameter from the "name" parameter.
This
Wendy, I'm referring to the 2nd case you mentioned, when the form has failed
validation. I do believe you have just answered my question.
Thanks
-Original Message-
From: Wendy Smoak <[EMAIL PROTECTED]>
Sent: Dec 20, 2004 3:06 PM
To: Struts Users Mailing List <[EMAIL PROTECTED]>,
Thank you for your response!
to bad xdoclet doesn't allow the className option...
the controller setup for actionmapping works though...
On Mon, 2004-12-20 at 17:00 -0600, Joe Germuska wrote:
> >When I do this I get a runtime error (I can understand that the
> >actionmapping does not have this pr
From: <[EMAIL PROTECTED]>
> My beginner struggles continue. I am unable to make a reset respond after
the submit has
> committed data to the form bean. The reset works as expected before the
submit on a form
> is invoked. I have checked the docs and cannot find out whether this is
intended (or not)
Excellent, thank you Jeff!
There's more discrete values than I had hoped, but I can still
accomplish my goals.
Thanks to everyone that has replied thus far!
--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
[EMAIL PROTECTED] wrote:
Frank,
Take
When I do this I get a runtime error (I can understand that the
actionmapping does not have this property...):
Ah... so you have to tell Struts to use your custom subclass. This
can be done for a single element using
or if you want to use it for all action mappings,
...
Note that I think the
Obviously not a 4/A :) Now THAT was a powerhouse!
--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
Barnett, Brian W. wrote:
On TI-99: Out of memory
-Original Message-
From: Frank W. Zammetti [mailto:[EMAIL PROTECTED]
Sent: Monday, Decem
hi,
Frank W. Zammetti wrote:
>
> I'm working on something for which I need to know what the os.name
> property on various OS's is.
[...]
> I'm particularly interested in various *nix variants, Linux, Mac and
> such.
(solaris 9):
[EMAIL PROTECTED] 130> uname -a
SunOS galois 5.9 Generic_112233
On TI-99: Out of memory
-Original Message-
From: Frank W. Zammetti [mailto:[EMAIL PROTECTED]
Sent: Monday, December 20, 2004 3:26 PM
To: Commons User; Struts User; Tomcat User
Subject: [OT] Request an app test (free beer!)
I was informed last OT post I made that the subject should alway
The "official" way of doing this on the mac is found here:
http://developer.apple.com/technotes/tn2002/tn2110.html
Simon
>-Original Message-
>From: Frank W. Zammetti [mailto:[EMAIL PROTECTED]
>Sent: Monday, December 20, 2004 4:26 PM
>To: Commons User; Struts User; Tomcat User
>Subject: [
Thanks, this works.
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: Monday, December 20, 2004 11:36 AM
To: Struts Users Mailing List
Subject: RE: Actionform 's property
He doesn't: http://struts.apache.org/userGuide/struts-bean.html#define
"McDonnell, C
Thanks. This works.
-Original Message-
From: Daniel Perry [mailto:[EMAIL PROTECTED]
Sent: Monday, December 20, 2004 11:42 AM
To: Struts Users Mailing List
Subject: RE: Actionform 's property
Well the way you dont wish to use would be the normal way to do it :)
The form will be avail
On Mon, 2004-12-20 at 16:22 -0600, Joe Germuska wrote:
> At 10:55 PM +0100 12/20/04, Peter Maas wrote:
> >If I want to configure parameters for a certain action in a
> >non-hardcoded fashion; what would be the way to go?
> >
> >I see:
> >- people using the application.properties resources file... s
Frank,
Take a look here for some values:
http://www.tolstoy.com/samizdat/sysprops.html
Jeff C.
"Frank W.
On solaris:
SunOS
--p
On Mon, 2004-12-20 at 17:26 -0500, Frank W. Zammetti wrote:
> I was informed last OT post I made that the subject should always
> include the word "beer". I added the "free" to get your attention :)
>
> I'm working on something for which I need to know what the os.name
Hi,
My beginner struggles continue. I am unable to make a reset respond after the
submit has committed data to the form bean. The reset works as expected before
the submit on a form is invoked. I have checked the docs and cannot find out
whether this is intended (or not).
Thanks
On Debian GNU/Linux:
Linux
--p
On Mon, 2004-12-20 at 17:26 -0500, Frank W. Zammetti wrote:
> I was informed last OT post I made that the subject should always
> include the word "beer". I added the "free" to get your attention :)
>
> I'm working on something for which I need to know what the
At 10:55 PM +0100 12/20/04, Peter Maas wrote:
If I want to configure parameters for a certain action in a
non-hardcoded fashion; what would be the way to go?
I see:
- people using the application.properties resources file... seems not
o.k. to me... this is where I store texts for the interface
- pe
I was informed last OT post I made that the subject should always
include the word "beer". I added the "free" to get your attention :)
I'm working on something for which I need to know what the os.name
property on various OS's is. I would greatly appreciate it if some
folks could try the foll
If I want to configure parameters for a certain action in a
non-hardcoded fashion; what would be the way to go?
I see:
- people using the application.properties resources file... seems not
o.k. to me... this is where I store texts for the interface
- people using attributes stored in servlet conte
Joe,
I told a lie...I actually took the code from the SVN
repository, and just added some logging. The logging
is showing up and indicates that the path or resource
Strings are not being set. I am also using the
validator plugin. I am using Struts-1.2.4. Thanks
for your help, but I do not hav
At 12:43 PM -0800 12/20/04, Julian wrote:
ok here is some more info. In my subclass of
CatalogConfiguratorPlugIn, I logged any calls to
setPath or setResource. So when the server starts the
values are never set b/c the methods are never called.
When I harcode the value, I get an error message th
ok here is some more info. In my subclass of
CatalogConfiguratorPlugIn, I logged any calls to
setPath or setResource. So when the server starts the
values are never set b/c the methods are never called.
When I harcode the value, I get an error message that
the catalog "struts" cannot be found.
Hi again :)
well, i wrapped the class and had it print out the
variables for the path, resource, and configResource
to the logswell no surprise they were all null. I
used your config below and placed the chain-config.xml
in the WEB-INF dirroot cause:
java.lang.NullPointerException. So pe
Here's one which works in my application:
If the "path" property is set, then the file is
sought in the servlet context. It sounds as
though you've tried this, but thought I'd give
you an example anyway.
if the "resource" property is set, then the file
is sought on the classpath,
btw, I have also tried the config with the "property"
attribute of the "set-property" tag set as "path"
instead of resource.
wrote:
> Hi,
>
> I cannot seem to load the struts-chain config
> properly. I have tried packaging it in the root
> directory of my jar, placing it in /WEB-INF/classes,
>
Hi,
I cannot seem to load the struts-chain config
properly. I have tried packaging it in the root
directory of my jar, placing it in /WEB-INF/classes,
and just in plain old WEB-INF...but to no avail. I
keep getting an servletexception thrown at
org.apache.struts.chain.legacy.CatalogConfiguratorP
My first question is a design one. Is JDNI the best way to access a
database from a Tiles controller? If so, this is the JDNI class problem I
have.
This is the tomcat/conf/catalina/localhost/myapp.xml file,
username
SYSDBA
password
password
driverClassName
Hmm ... I suggest you don't use the data source unless you are forced to
by a legacy application. The data-source element has been deprecated.
Instead create and access your data source through means provided by
your container (e.g. JNDI). Take a look at this page
http://struts.apache.org/faqs/
Well the way you dont wish to use would be the normal way to do it :)
The form will be available in the request or session (depending on where you
put the form) scope from the jsp under the form's name. So
${formName.employeeList} is the list from a JSTL perspective. From
scriptlet, either:
=((
He doesn't: http://struts.apache.org/userGuide/struts-bean.html#define
"McDonnell, Colm (MLIM)" <[EMAIL PROTECTED]>
12/20/2004 11:17 AM
Please respond to
"Struts Users Mailing List" <[EMAIL PROTECTED]>
To
"Struts Users Mailing List" <[EMAIL PROTECTED]>
cc
Subject
RE: Actionform 's property
There is no direct conversion between Java and Javascript objects (I hear tell
of some libraries to do this though...)
What you'll need to do otherwise is iterate over the List and construct
Javascript from it, something like this:
test
myArray = new Array();
<%
int i = 0;
for (Iterator it
> -Original Message-
> From: Amit Gupta [mailto:[EMAIL PROTECTED]
> Sent: Saturday, December 18, 2004 12:40 AM
> To: [EMAIL PROTECTED]; Struts Users Mailing List
> Subject: I want to use data source defined in stuts-config.xml in my
> bean. How can I do it ?
>
>
> Hi dear,
>
>
>
> I
Why do you want to do this?
<% List iWantToGetThisList = (List)
pageContext.getAttribute("employeeList"); %>
-Original Message-
From: Zhang, Larry (L.) [mailto:[EMAIL PROTECTED]
Sent: 20 December 2004 15:58
To: Struts Users Mailing List
Subject: Actionform 's property
Say I have an ac
Say I have an action form
MyForm extends ActionForm {
List employeeList;
//set/getter follows...
}
Suppose in my action class's execute method,
I populated employeeList from database, and do
myForm.setEmployeeList(List someData);
Now in my Jsp, how to get this value and assign this value to
On Sunday 19 December 2004 23:36, [EMAIL PROTECTED] wrote:
> Hi David,
>
> I copied jstl.jar to WEB-INF/lib and errors still occur when I compiled
> the project.
>
> I am using JDeveloper 10g with jdk 1.4.2 to develop my project.
>
> Could you tell me how to use standard jstl in my case.
Having js
One benefit of allowing this flexibility may be the ability to re-use
your IoC container so that more configuration information is in one
place.
I haven't kept up with jdk1.5 but I am guessing the problem mentioned
below on double-locking has been resolved for that release. I'm not
sure what perf
Hi, Tim,
If you have been following uma's posts, you will find that she has
already discovered the Struts file upload classes.
Jack
On Mon, 20 Dec 2004 09:26:59 -0500, Slattery, Tim - BLS
<[EMAIL PROTECTED]> wrote:
> > How do I get html:file value in Action class without using javascript?
>
>
Hi there,
I'm hoping someone out there have some experience with struts and Hibernate
and can point me in the right direction. I'm fairly new to struts and have
actually been using JSF, Hibernate and JBoss for the last couple of months
so this was my only reference point. In JSF using the EL is qu
> How do I get html:file value in Action class without using javascript?
>
Have you looked at the struts-upload.jar in the Struts distribution zip
file? That's a full-functional file upload application, all the details of
using Struts to upload a file are there.
In a nutshell, you use in your
Hi Jack,
I basically wanted the value from html:file to get it displayed in the
html:img tag in another jsp. But can you tell me if we can get the value
from the html:img tag again so that I can submit it to the db? Any example?
This doesn't work for me, I get "Attribute image_path has no value"
I
This is just an input type in a form, Uma, so you need some sort of
form submission which "references" an action class, usually something
like "uploadAction.do".
Jack
On Mon, 20 Dec 2004 19:38:23 +0530, uma.k <[EMAIL PROTECTED]> wrote:
> How do I get html:file value in Action class without using
How do I get html:file value in Action class without using javascript?
Uma
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hey,
Why not try this regex: ^[a-zA-Z'-]*\s[a-zA-Z'-]*$
*
Ruben Cepeda
[EMAIL PROTECTED]
*
Original Message Follows
From: <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: <[EMAIL PROT
Hi Jack,
Thanks it works great. Thanks again.
Uma
-Original Message-
From: Dakota Jack [mailto:[EMAIL PROTECTED]
Sent: Monday, December 20, 2004 6:18 PM
To: Struts Users Mailing List
Subject: Re: file upload problem
Try this, for example:
String path =
request.getSession().getServletCo
I'll give you a tip: Populate the form-bean with values prior to
displaying it the first time. Struts will display the values
contained in it when the page is rendered.
Good Luck!
On Mon, 20 Dec 2004 14:02:00 +0530, Pramod <[EMAIL PROTECTED]> wrote:
> How can we set a bean value to a checkbox(u
If you gave the code you were talking about, people who wanted to help
could do so without looking it up. I just dump the examples and so
have no idea what you are talking about without reloading.
Jack
On Mon, 20 Dec 2004 14:51:40 +0800, PC Leung <[EMAIL PROTECTED]> wrote:
> The sample of Tiles
Try this, for example:
String path =
request.getSession().getServletContext().getRealPath(java.io.File.separator)
+ upload + File.separator + images + File.separator;
There are other ways, too.
Jack
On Mon, 20 Dec 2004 16:18:00 +0530, uma.k <[EMAIL PROTECTED]> wrote:
> Hi Sunny,
> It create
This may be a problem, but not for that reason. There is nothing
inconsistent between this solution and moving between different OSs.
The questions in that case is not whether the path is absolute or
relative but whether it is OS dependent. Those are very different
questions.
Jack
On Mon, 20
Hi Sunny,
It creates a file in "C:\Documents and Settings\uma.k\Start
Menu\Programs\Apache Tomcat 4.0" and its path is virtual and maps to
D:\tomc only. But I wanted to upload to "images" directory where my app
is running. e.g. "D:\Program Files\Apache Tomcat
4.0\webapps\test\upload\images"
He
- struts-config.xml
- EditBUOnLoadAction.java
DynaValidatorForm df = (DynaValidatorForm) form;
Set acc = bu.getAccounts();
Account[] account = new Account[acc.size()];
int i = 0;
for(Iterator ite = acc.i
How can we set a bean value to a checkbox(using tags) ?
I have doubt in setting the value
plz get me a solution.
74 matches
Mail list logo