Caroline, are you by any chance using anything before the 1.1 stable release
such as 1.0, a 1.1 beta or release candidate (1.1-b3, 1.1-rc2, etc.) ?
I found this note in v1.1-b3 (and in the current 1.2.4 notes):
ActionMapping: input property may now refer to an
ActionForward rather than a
Hi
Why is there no javascript for double and long validations in the validator?
Obviously i could use float or int, but i really want double and long!
I am sure there is a good reason for it, but just cant seem to find it.
Thanks
Ryan
Did you try using the forward attribute?
Try making a tile definition in your tiles-defs.xml for each of your
frames (attention, not each for your frameset, but every little frame you
have in your pages) and then:
html:frame forward=my.tile.definition.for.frame.one /
Ciao
Antonio Petrelli
Hi All,
I am using struts-faces library and when I try to load a jsp which has
below code then I am getting an exception in browser saying
java.lang.IllegalArgumentException: Cannot find module
configuration. I placed all the relevant jar files in the lib folder
and other .tld files in WEB-INF
Can any body guide me how to rewrite URL with JSP and tomcat as it is
possible with mode_rewrite with apache?
Take care
Amit Gupta
Mobile:9891062552
Email: [EMAIL PROTECTED]
- Original Message -
From: Vclavk Radek [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent:
Hi,
I don't understand one simple thing with html:base / - when I had
read about Struts and JSTL help for them, I saw that it helps to hide
implementation, so why I got such output:
base href=http://localhost:8180/struts_test/pages/Welcome.jsp;
form page which was called from browser as:
Craig McClanahan wrote:
For all people who have either invites to give, or want an invite you can go to:
http://isnoop.net/gmailomatic.php
Here you can give away your invites, and receive an invite.
Indeed, it is my belief that GMail invites are too off topic for even
a [FRIDAY] or [OT] label
Hello All,
I have defined two formsets in my validation.xml file. One is the default
and the other one is for the country PK language en. I have defined
validations for FormSelectCountry in the default formset (and its not
redefined in the other formset). Now whenever in my application the
To my knowledge the html:base tag is to help resolve images and other
media. If you use the app context to resolve your images and things
then there should be no issue.
c:set var=contextPath value=${pageContext.request.contextPath} /
img src=${contextPath}/images/myimage.gif /
or
img src=%=
Thanks for the correction. I want be so kludgy with spelling in the
future.
Durham David R
Jr Contr 805
I'm trying to find some detailed information on how to use the file size
limits using the struts MultipartRequestHandler. In the past I have used a
custom servlet, but I thought it was time to bring this into the struts
world.
Before anybody says anything, I tried to search the list archive but
Hi Zoran, not directly helpful, but here's a link which will enable you
to search the archives:
http://marc.theaimsgroup.com/?l=struts-user
Geeta
-Original Message-
From: Zoran Avtarovski [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 23, 2004 9:12 AM
To: Struts Users Mailing List
Hi all
I'm deploying on Tomcat 4.1, but I developed on Tomcat 5.0.28 I think
that shouldnt matter. I get the following error. what am I doing
wrong?
type Exception report
message
description The server encountered an internal error () that prevented
it from fulfilling this request.
exception
Where, Ideally should the struts.jar live? Is it apart of the APP or
the container?
On Thu, 23 Sep 2004 19:27:20 +0530, Kailash Vasani [EMAIL PROTECTED] wrote:
Check struts version on both the servers. It seems that they are different.
-Original Message-
From: CCNY [mailto:[EMAIL
I do see another version of struts.jar. I've renamed it, but the error
is still there. Also, the jar is being used by the admin app. It's
location is
C:\Program Files\Apache Group\Tomcat 4.1\server\webapps\admin\WEB-INF\lib
ugh. help
On Thu, 23 Sep 2004 19:27:20 +0530, Kailash Vasani [EMAIL
Ryan Dillon wrote:
Hi
Why is there no javascript for double and long validations in the validator?
Obviously i could use float or int, but i really want double and long!
I am sure there is a good reason for it, but just cant seem to find it.
Thanks
Ryan
Ryan - this is a question for the
What is the best way to test Struts actions within Maven?
My Business logic is tested via Maven's JUnit plugin. Now I need to
test the Struct actions, i.e. verify request and session attributes are set.
Paul Spencer
-
To
Hello CCNY,
it should be part of the APP.
***
C Where, Ideally should the struts.jar live? Is it apart of the APP or
C the container?
C On Thu, 23 Sep 2004 19:27:20 +0530, Kailash Vasani [EMAIL PROTECTED] wrote:
Check struts
How do I figure out which version of Struts a given distribution is?
Is there an easy way?
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
You can check the version number in the manifest.mf of the struts.jar.
Take note, though, that the 1.2.1 distribution had 1.2.0 in the manifest.
Also, I don't know if the 1.0x jars had this information, but the 1.1 jar did.
Hubert
On Thu, 23 Sep 2004 10:19:58 -0400, CCNY [EMAIL PROTECTED] wrote:
Please help!
I have a class that extends MappingDispatchAction
class
. This class has, they are below:
action path=/getCustomer
type=com.fujimitsu.cargo.gen.CustomerAction
name=cargoForm
scope=request
validate=false
input=.customerDef.jsp
parameter=getCustomer
All
I think I've got a problem. Can anyone tell me definitively if Struts
1.2.2 uses a version of the Servlet or JSP Spec that could make it
incompatible with Tomcat 4.1?
Is anyone currently using these two together?
-
To
There were several issues with the 1.2.2 build. Please try it with 1.2.4
--
James Mitchell
Software Engineer / Open Source Evangelist
EdgeTech, Inc.
678.910.8017
AIM: jmitchtx
- Original Message -
From: CCNY [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent:
FYI: I was able to run both 1.2.2. and 1.2.4 on Tomcat 4.1 with no
problems. I'd take Jame's advice though and upgrade to 1.2.4 just to be
safe.
sean
James Mitchell wrote:
There were several issues with the 1.2.2 build. Please try it with 1.2.4
--
James Mitchell
Software Engineer / Open
If it is /updateCustomer, it means I will have to a
separate jsp for each mapping. This will defeat the
purpose of using MappingDispatchAction. It seems to
me that your suggestion is only applicable to
subclasses of Action, not MappingDispatchAction .
I am asking because I am using
I did some research before this before posting, and I apologize if this
is a simple stupid question.
With my web-site, a user is going to login, when they enter in the
username and password, the data from that user will be retrieved from
the database so we can validate the username and
One of the largest you can start clicking here:
http://erosennin.1up.com
It's friendster like site for gamers, fun to surf. (Fact: Sofware Game
industry is bigger than the Movie industry in USA)
It has 10MM members, 5 magazines, 100+ pages, a few hundred dynamic
tiles, 1 terabyte DB. When a
This done a lot, and.. its done for you, built into Java, since Servlet
2.2 spec I think:
http://java.sun.com/products/servlet/2.3/javadoc/javax/servlet/http/HttpServletRequest.html#getUserPrincipal()
It's done for you, you just use it, 0 code (0 bugs!)
To set up you do something like this:
Vic Cekvenich wrote:
This done a lot, and.. its done for you, built into Java, since
Servlet 2.2 spec I think:
http://java.sun.com/products/servlet/2.3/javadoc/javax/servlet/http/HttpServletRequest.html#getUserPrincipal()
It's done for you, you just use it, 0 code (0 bugs!)
To set up you do
Well, you never really specified what the specific problem you were
having was. Have you ever gotten any version of Struts working with
Tomcat before or this your first attempt?
If you never gotten any version of Struts to work before, then my guess
would be there is something wrong with how
It is so stressful for having problems one after
another. And I do not have the ability to see the
causes of those problem on my own.
The error message that appears in the browser (runtime
problem, not compilation problem) is:
'[ServletException in:/frame/content/content.jsp]
Cannot find bean
Tom,
I would recommend storing the user information in the session (I use
POJO's) as you have suggested. Then you can access it from the session
to preopulate the form. Your approach sounds correct.
We're storing user information in the session on our project because its
constantly being
From: Caroline Jen [EMAIL PROTECTED]
The error message that appears in the browser (runtime
problem, not compilation problem) is:
'[ServletException in:/frame/content/content.jsp]
Cannot find bean PageBeans in scope request'
Partial content.jsp code:
bean:define id=pageList
It is so stressful for having problems one after
another. And I do not have the ability to see the
causes of those problem on my own.
The error message that appears in the browser (runtime
problem, not compilation problem) is:
'[ServletException in:/frame/content/content.jsp]
Cannot find bean
I apologize, but I have no clue as to what you're trying to do. You
presented two mappings and said what action do I use in my form? I
just made a guess.
Maybe if you provide more information, someone (I or someone else)
could help you. What are you trying to do? What are the two mappings
Caroline Jen wrote:
The message is confusing because PageBeans (plural) is
a Collection of PageBean (singular). Upon successful
execution of a servlet, PageBeans (plural) is passed
in a request scope to help creating a drop down menu
in 'content.jsp'. And the 'content.jsp' with the
drop-down
I tried your suggestion: 1. deleted the bean:define
... tag; and 2. use the html-el: ... tags. The
drop-down menu gets displayed without problem. But,
when I click on the Submit button to submit that form,
I still get the same error message 'cannot find bean
PageBeans in scope request'.
Yeah, thank you for sheding light on the problem I
have. My code had worked fine until form validation
was added.
I was testing if validation worked. Therefore, I
intentionally left all text fields blank, menu not
selected, and submit the form. Apprarently, the
control returned to the
Zoran Avtarovski wrote:
I'm trying to find some detailed information on how to use the file size
limits using the struts MultipartRequestHandler. In the past I have used a
custom servlet, but I thought it was time to bring this into the struts
world.
Before anybody says anything, I tried to search
Thanks for the information Sean, I just wanted to make sure I was
heading down the right road for Struts. There is also another school of
thought, and using a design pattern (I think it's a design pattern)
called Lazy Loading. In some cases, I might make another trip to the
database in order
If you would like a simpler, and more general, solution that does the
same thing, try
http://wiki.apache.org/struts/StrutsCatalogFiveMultipleButtonSolutions
. However, if you like MappingDispatchAction anyway, which I would find
odd but you may find even, you can do whatever you like, but you
Caroline Jen wrote:
Q1. How come I do not see validation warning messages?
I have prepared validation.xml and put it together
with the validator-rules.xml in the AppName/WEB-INF
directory. I have also prepared the warning messages
in the
AppName/WEB-INF/classes/resources/application.properties
Please help!
Background
==
I have a class that extends the new
MappingDispatchAction
class
. This class has two methods, namely getCustomer and
updateCustomer.
The corresponding mapping for each method are below:
action path=/getCustomer
Sounds good. I don't think you need to worry too much about the
overhead of storing the user in the session though. It really shouldn't
be that much for the server to handle. You are most likely already
experiencing the overhead of maintaining a session (for forms with
session level scope,
I am trying to set my application's welcome file to a struts dispatch action
(login.do?method=load), but it isn't being found. Is there any reason I
can't use a dispatch action as my welcome page? Is there a better way to do
this?
Scott Mulligan
I believe you can only do this since version 2.4 of servlet specification.
Niall
- Original Message -
From: Mulligan, Scott H [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, September 23, 2004 8:36 PM
Subject: Struts Action as Welcome File
I am trying
On Thu, 23 Sep 2004 15:31:47 -0400, Sean Schofield
[EMAIL PROTECTED] wrote:
Of course if you have millions of users that
might be another story.
Millions of users, each of whom have an active session. Otherwise,
who cares how many rows are in the database? Certainly not struts.
I setup index.jsp as my welcome file (in web.xml) and then just have
index.jsp forward to the Action of my choice.
On Thu, 23 Sep 2004 15:36:42 -0400, Mulligan, Scott H
[EMAIL PROTECTED] wrote:
I am trying to set my application's welcome file to a struts dispatch action
(login.do?method=load),
Just have your web.xml point to a jsp. I call mine index.jsp, but you can
use whatever.
welcome-file-list
welcome-file/index.jsp/welcome-file
/welcome-file-list
The jsp contents would be:
html
head
META HTTP-EQUIV=Refresh CONTENT=0; URL=/myapp/login.do?method=load
/head
/html
Wiebe
If search engine placement is a concern for your app, the home page
redirect may be a bad idea. We used this instead:
(in index.jsp):
%@ taglib uri=/tags/struts-logic prefix=logic %
logic:forward name=indexNoRedirect/
(in struts-config):
forward name=indexNoRedirect
Would that work with Tiles?
Wiebe
-Original Message-
From: Matt Bathje [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 23, 2004 1:51 PM
To: Struts Users Mailing List
Subject: Re: Struts Action as Welcome File
If search engine placement is a concern for your app, the home page
I'm not entirely sure what you mean...but since my entire site uses
tiles (other than this index.jsp page) I would have to say yes...
Matt
Wiebe de Jong wrote:
Would that work with Tiles?
Wiebe
-Original Message-
From: Matt Bathje [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 23,
I intentionally left every single field blank and
radio buttons not selected, and then submit the form
with validation check. All the errors pass through
the validation check and the next page gets displayed.
I have commons-validator.jar (6/29/2003) in the
AppName/WEB-INF/lib directory. And I
[CODE]
action
path=/message/SendMessage
type=org.dhsinfo.message.SendMessage
name=messageForm
scope=request
validate=false
input=.message.Form
forward
name=success
path=.message.Confirmation/
/action
[/CODE]
My jsp works great in my development IDE.
page:
tiles:putList name=right_features
tiles:add type=page value=/templates/features/logon.jsp /
tiles:add type=page value=/templates/features/basket.jsp /
tiles:add type=page value=/templates/features/promotions.jsp /
Thanks for your response, I have rephrased my question
as below:
Please help!
Background
==
I have a class that extends the new
MappingDispatchAction
class
. This class has two methods, namely getCustomer and
updateCustomer.
The corresponding mapping for each method are below:
Hi all,
Our team is making some design decisions about a site and we are looking
at implementing the struts module switch action as opposed to the way we
have done in the past. That being /{modulename}/{actioncall} when we
want to switch modules.
Am i clear enough?
Any thoughts and
Before html:frame ... do I need to write Frameset tag? Ratnakar
[EMAIL PROTECTED] wrote:Did you try using the forward attribute?
Try making a tile definition in your tiles-defs.xml for each of your
frames (attention, not each for your frameset, but every little frame you
have in your pages) and
I am not sure what you have in mind at this point. Do you still want to
go on with MappingDispatchAction?
Michael McGrady
O. Oke wrote:
Thanks for your response, I have rephrased my question
as below:
Please help!
Background
==
I have a class that extends the new
MappingDispatchAction
Wiebe,
If you want any directly-web-accessible JSP to display a tile, you can do
that. Directions are in the TilesAdvancedFeatures.pdf:
http://www.lifl.fr/~dumoulin/tiles/tilesAdvancedFeatures.pdf
I often make my index.jsp (my web.xml's welcome-file) with code like this:
%@ taglib
Thanks Michael,
But I was under the impression that the Struts Uploader was just an
implementation of the commons uploader. I remember reading somewhere that
the two are the one and the same.
Either way, any help would be appreciated.
Zoran
Zoran Avtarovski wrote:
I'm trying to find some
Philippe,
I was looking up something under bugzilla last night and noticed a note
about Struts v1.1 and Tiles possibly taking up significant memory if a HUGE
number of tiles were defined. Is this something you have setup? Perhaps
this bug report fits your situation:
Yup! I like it.
Thanks
Wiebe
-Original Message-
From: David G. Friedman [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 23, 2004 4:53 PM
To: Struts Users Mailing List
Subject: RE: Struts Action as Welcome File
Wiebe,
If you want any directly-web-accessible JSP to display a tile,
What about putting the object PageBeans, which is
actually a Collection, in an application scope. When
the object is no longer in use, code:
getComputer().getPlug().pull();
Do you think this approach is going to work?
--- Jeff Beal [EMAIL PROTECTED] wrote:
Caroline Jen wrote:
Q1. How come I
Hi. I'm tryin' to add this Strust extension to my project and from the documentation I
understand that what I need to do is create my Action Flow using the
SubmitButtonForwardDispatchAction, but after coding my Action Form and Action classes
and setting up struts-config.xml I keep getting this
Carlos,
This solution just adds weight (ImageButtonBean) on top of
(DispatchAction) and combines what are the same solutions really. I
would suggest you look at what might be improvements to this sort of
suggestion at
http://wiki.apache.org/struts/StrutsCatalogFiveMultipleButtonSolutions .
Zoran Avtarovski wrote:
I'm trying to find some detailed information on how to use the file size
limits using the struts MultipartRequestHandler. In the past I have used a
custom servlet, but I thought it was time to bring this into the struts
world.
Before anybody says anything, I tried to search
O. Oke wrote the following on 9/23/2004 5:47 PM:
Background
==
I have a class that extends the new
MappingDispatchAction
class
. This class has two methods, namely getCustomer and
updateCustomer.
The corresponding mapping for each method are below:
action path=/getCustomer
Did you put html:errors / in your jsp ?
-Original Message-
From: Caroline Jen [mailto:[EMAIL PROTECTED]
Sent: Friday, September 24, 2004 2:40 AM
To: [EMAIL PROTECTED]
Subject: Why My Validation Lets All Errors Pass Through?
I intentionally left every single field blank and
radio
69 matches
Mail list logo