Hi Gregor,
Are the post parameters stored if I use basic login?
Grtz.
ezCompanyeasy internet solutionswww.ezcompany.nl
Stationsstraat 39 5038 EC Tilburg T 013 5453408 F 013 5453409
- Original Message -
From: Gregor Rayman [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Is is
possible within the Struts framework to have multiple Form beans
definedfor anaction-mapping. This would be handy when trying to
divide up larger imput forms into reusable Form components. Any comments would
be appreciated.
regards
Shea Kelly
Consultant Software
EngineerObject
Oops, fogot to say, that the large form bean can
use the 'facade' pattern and essentially dispatch through to contained
smaller/reuseable components...
Rob
- Original Message -
From:
Robert Parker
To: [EMAIL PROTECTED]
Sent: Monday, September 10, 2001 4:52
PM
actually what was happening was that in weblogic 5.1(sp8 or 10) they have a
JRE which comes along with weblogic and hence cant compile .java files which
are created by the struts application like _index.java and
_display.java...hence the path for java home in startweblogic.bat has to
be changed
Matt,
Glad you managed to sort this out. As I said I was somewhat incapacitated on
the technology front on Friday!
Thanks for taking a look at it and giving your feedback,
Regards,
Nic
On Friday 07 September 2001 4:00 pm, Matt Raible wrote:
I got this figured out - the SC_FORBIDDEN works
Hi,
we implemented a JSP with a multipart/form-data form.
Everything seems to work fine except in the case when our form returns an
error on validation. We have a request parameter (GPKUpdate) to tell if we
do a update to an existing record or if we add a new record.
When our form bean adds an
whats the easiest way of checking whether an attribute is present on the
request?
the equivalent of
% if ( request.getAttribute( someFlag) == null ) %
thanks..
James
logic:notPresent name=... scope=... ... /logic:notPresent =
if(param == null){...}
and logic:present name=... scope=.. /logic:present = if(param !=
null){...}
Eleonora
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Mon, September 10, 2001 12:46
Hello,
Does anyone know where I can find a information (resource page) on
deciphering what an exceptions means and how I should go about debugging? I
have looked through the source code at the source of the exception and I am
still have a little trouble. This is the first time I have used
One obvious thing I've figured out is that Broadvision is returning
the wrong string from request.getContextPath().
Struts (and the Servlet 2.2 spec too, I think) assumes that it can
construct the entire path from / using request.getContextPath().
However, Broadvision, at least the way my
This is a check to make sure that struts is there and that the
ApplicationResources.properties file is found in the classpath. If you
don't have that file there when struts loads then the message will show
up. The file is basically a set of error messages, that is why this
message is hard
Matthias Gries wrote:
1) Is there any reason why the scope for ActionErrors is the request and
not the session?
If the errors are kept in the session, you could, theoretically, end up
exposing messages that related to another request, which would be
confusing ;-) As a request object, it is
This issue raises the issue of whether Struts can work properly on
Broadvision ( and whether BV6 is servlet 2.2 compliant). Perhaps
there should be a BV section on the Struts installation instructions
(http://jakarta.apache.org/struts/installation.html) ?
What I learned from BV support so far
Hi,
I've been successfully using Struts 1.0 for development but I just tried the
latest nightly build and received the error
Exception thrown processing JSP page.
javax.servlet.jsp.JspException: Cannot find global ActionForward for name
logon at
Hi all
After much work - and considerable help from this group, I managed to get up
and running with JB5, Tomcat3.2.1 and Struts1.0. - I can happily develop
within the JB5 environment and be confident that the app will work when
deployed on TC3.2.1.
But - I would now like to move to TC4.x (b7
Hi. What's the status on fixing the file upload problem of files getting
mangled? I use Struts ver 1.0. Is there a fix available??? Thanks, This
is very important to us. Tom Tibbetts
What version of Tomcat are you using? I believe stale JSP's aren't
recompiled in Tomcat4.0 until beta 7.
-Craig
Ricco Lee
I think that you can't include several *.do in a same page. This is
because a *.do do a forward() to forward to the associated jsp page. But,
you can't do forward() if you have already committed the response (i.e.
writing something in the output).
As a solution, you can modify ActionServlet
Hi there
Are there a set of instructions for building struts apps using the Ant build
tool.
Thanks
Peter
I'm trying to upgrade from struts 1.0 to the latest nightly
build. I'm using Forte, and I get the following error in
my output:
2001-09-07 11:32:23 - Ctx( ): Error in actioninit(), error happened at
999880230498 wait -113171 : Missing configuration resource for path
/WEB-INF/struts-config.xml
Hi.
Usually, there shouldn't be any difference building struts apps from any regular
web applications. If you want some examples, though, I would be more than happy
to send them to you.
peter wrote:
Hi there
Are there a set of instructions for building struts apps using the Ant build
Thanks to all that have responded. I appreciate the feedback.
An old friend sent me the following which included JavaNCSS.
JavaNCSSFree provides basic metrics including McCabe metrics
RSM $195 provides extended metrics including McCabe metrics, plus code
i m using tomcat 4.0 b7
From: [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: after modify a JSP
Date: Mon, 10 Sep 2001 10:04:55 -0400
What version of Tomcat are you using? I believe stale JSP's aren't
recompiled in Tomcat4.0 until beta 7.
-Craig
Hi there
Like most of you, I am using the html:errors-tag to show errors on the JSP page. My
problem is, that I don't get any message on the JSP page. I do the following check
before I return to the form:
if (!errors.empty()) {
saveErrors(request, errors);
return (new
We have - like others in this Mailing List - some Problem running a Struts
Application with Digester under Tomcat 3.2.x.
Using the standard-packaged jar-files incluided with Tomcat, we get an
Exception that Namespaces are not supported with this SaxParser.
After adding xalan.jar and xerces.jar
Hi, how do you get the servlet context object from within a Action class. I notice
that the
request.getSession.getServletContext is depreciated.
I need to get values from the web.xml file.
Thanks for the info.
Alex
=
Regards
Alex Colic, HBA, B. Ed
PopWare Inc. Driving down the
I'm getting this error while running my struts application (deployed as
a WAR) in Weblogic 5.1(sp 8).
[ServletEntityResolver] : Could not resolve entity '-//Sun Microsystems,
Inc.//DTD Web Application 2.2//EN'. Check your dtd reference.
Mon Sep 10 20:22:35 GMT+05:30 2001:E HTTP Error reading
hi marcel,
did you have registered an error in your actionServlet?
you have to put something like : errors.add(test, new
ActionError(test.error));
your Application Ressource describes the key: test.error=This is an error
in your jsp you can then output the error with:
html:errors property=test
Hi, all
Do you know if struts validate input fields in JSP by itself, which has
matched getter and setter methods in bean,?
For example: You have field called companyID in JSP and in you xxxForm
bean you have
int companyID();
public int getCompanyID(){
return
in your action code:
this.getServlet().getServletContext();
(actions are initialized with a reference to the ActionServlet object);
Andre Paradis
-Original Message-
From: Alex Colic [mailto:[EMAIL PROTECTED]]
Sent: September 10, 2001 11:22 AM
To: [EMAIL PROTECTED]
Subject: How
Are all of your errors defined in the ApplicationResources.properties?
Kim MacKellar
-Original Message-
From: Marcel Andres [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 10, 2001 10:06 AM
To: struts-user
Subject: Does html:errors not work proper?
Hi there
Like most of you, I am
hi julia,
you get, as far as I know, only strings for settings. you can validate the
string in your ActionForm within the validate method. you have to look if
the string can be transfered to a integer; when no you can add an error and
redirect back to the jsp.
public void
One possibility is that there's a redirection occuring somewhere.
Since error bean is stored in request scope, it would be lost after a
redirection
(a new request).
Andre Paradis
-Original Message-
From: MacKellar, Kimberly [mailto:[EMAIL PROTECTED]]
Sent: September 10, 2001 11:33 AM
hi juraj
thanks for your responde. yes, in my action I have the following code:
ActionErrors errors = new ActionErrors();
...
errors.add(ActionErrors.GLOBAL_ERROR, new ActionError(error_name));
Is it not right, like this?
Marcel
-Original Message-
From: [EMAIL PROTECTED]
Marcel,
I suppose you carefully checked the case spelling of the keys in
your action class with the values in ApplicationResources.properties?
One mistake I made in ApplicationResources.properties was like in the
next line. (There is no equals sign in it).
dont know, never used
-Ursprüngliche Nachricht-
Von: Marcel Andres [mailto:[EMAIL PROTECTED]]
Gesendet: Montag, 10. September 2001 17:44
An: struts-user
Betreff: RE: Does html:errors not work proper?
hi juraj
thanks for your responde. yes, in my action I have the following code:
Hi Kim Andre
Yes, the errors (in my case just one error) are defined in the
ApplicationResources.properties. But what do you mean Andre, with redirection? I
think that after the command return (new ActionForward(mapping.getInput()));, I
return control to the struts ActionServlet, and so,
Rightfully Disgruntled File Upload Users,
I'll set aside some time next week to address
all the file upload issues, I apologize for the
long delay.
In the interim, please use bug reports
(http://nagoya.apache.org/bugzilla/)
to report all file upload issues that you
come across. Check to see if
Regarding 2), displaying errors in the original frame rather than the
destination, I wish you luck - I haven't been able to work out how to do it!
Does anyone familiar with templates know whether this problem can be overcome by
using them?
Cheers,
Dave
Matthias Gries [EMAIL PROTECTED]
Antigen for Exchange found Matthias.Gries.vcf matching =*.vcf file filter.
The file is currently Deleted. The message, Re: Some questions regarding
data validation!, was
sent from [EMAIL PROTECTED] and was discovered in IMC Queues\Inbound
located at IBC/PA1/MG01.
Can you also provide an example of the tag for limiting the size of the
file uploaded? Or is this not supported? I've dug through some of the
underlying code and it looks like it is but I don't see anything in the tag
definition on how to invoke this limitation. Thanks. Ricky Frank
At
Title: RE: Does struts validate input field in JSP type by itself ?
you can validate the input field by implementing a validate method in form bea.
actionservlet will do it for you
Frank
-Original Message-
From: Julia Yang [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 10, 2001
Title: javascript in html:button
I am using struts 1.0, I am trying to use javascript to pick user privilege from a available privilege list to selected list like following :
html:button property=addrole value= >
html:button property=del value= >
but it doesn't work, I remember on
Ricky,
The maximum upload size is represented as an init-param for ActionServlet:
To set it as an init-param in web.xml:
servlet
servlet-nameaction/servlet-name
servlet-classorg.apache.struts.action.ActionServlet/servlet-class
init-param
param-namemaxFileSize/param-name
You return an instance of ActionForward at the end of the
perform method. In the configuration file, an action can go to a
certain
location by doing the equivalent of jsp:forward .../ or by doing a
redirection (setting the Location header).
But i think the default is using the forward
Cause of the lots of Questions about the ITERATE Tag, here is a simple
example how to iterate over a Hastable (using the Interface
java.util.Map.Entry):
Juraj Michael from Germany
Struts Oldbiez (over 1.5 month of experience) ;-)
Action:
Hashtable values = new
All
Does anybody can give me a small Example or explanation on how to use
javascript to validate field input in JSP not null and be integer ?
Thanks
Julia
why not server side? with ActionForm and validate?
jsp:
=
form:form action=chart.do method=get
tr
td colspan=2font color=redhtml:errors property=datumFrom
//font/td
/tr
tr
tdDatum von: /td
tdform:text property=from size=15//td
tr
...
the form bean:
=
public ActionErrors
Greatful for your useful info, Cedric.
I believe including is a very common issue, and it's great to know that
there is a taglib that can support struts.
Thanks again.
Cedric Dumoulin wrote:
I think that you can't include several *.do in a same page. This is
because a *.do do a forward()
Hey All,
I'm using the logic tag along with the Jakarta session tag and running into
a problem. Inside my logic tag, I'm simply redirecting using the following
code:
session:isNew
logic:redirect forward=SessionTimeout/
/session:isNew
So I'm mapping my forward to my global forward in my
hi,
can some one tell me where to download the struts.util.fasthasmap? i need it
for the struts validator;
thanks
juraj
Thanks, Ted.
Best regards,
Alex Esterkin
=
-Original Message-
From: Ted Husted [mailto:[EMAIL PROTECTED]]
Sent: Saturday, September 08, 2001 9:44 AM
To: [EMAIL PROTECTED]
Subject: Re: AW: Struts
I can not get this to work in WAS 4.0 with these
changes. Does anyone know if there is more to be done
in the server to eliminate this error.
Thank You,
Dave
--- Julia Yang [EMAIL PROTECTED] wrote:
Thank you Eric. It is working now
Julia
-Original Message-
From: [EMAIL
Folks: AFAIK, I emulated the code correctly from the following archive:
http://www.mail-archive.com/struts-user@jakarta.apache.org/msg08160.html
I'm struggling with this pesky checkbox problem. Here's the code:
xx
%
Oswald,
What do you have in your form bean? As well as a getter/setter for the
collection, you will need a getter to retrieve an individual member of the
collection - ie a
public repositoryConfig getRepositoryConfig(int index)
{
return (repositoryConfig)
Hi-
I just encountered a similar problem. My parameter value has a
space in it: Test param. It looks like it's not getting encoded.
html:link page=/newmailout.do?action=new
paramId=listname
paramName=newmailoutForm
paramProperty=listnamebean:message
I found out about the XML include hack that can be used to split the
struts-config.xml in more manageable portions:
http://jakarta.apache.org:8080/jyve-faq/Turbine/screen/DisplayQuestionAnswer
/action/SetAll/project_id/2/faq_id/16/topic_id/196/question_id/752
It's been mentioned many times
I've never gotten it to work either, but I would love to hear a solution
myself.
I know what is suppossed to happen, but I haven't seen anyone concretely
give
their example of doing it.
dan
-Original Message-
From: Renaud Waldura [mailto:[EMAIL PROTECTED]]
Sent: Monday, September
What's the best way to unit test Struts Actions? Create mock objects
(request, session, servlet, etc.)? J2EEUnit, Catctus, HTTP Unit? Which
approach are people having the most success with?
Also, Craig M. mentioned a while back about a unit testing framework for
Struts itself. How is that
Title: Merging benefits of Global vs Local forwards
Global forwards are useful if more than one action mapping needs access to the same forward object. But, if you use a Global forward then you lose the self documenting nature of an action mapping
eg.
action path=/editRegistration
Why don't you try to use struts-template? It would meet your needs. I am sure.
Reguards!
- Original Message -
From: Yutaka Yokokawa [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, September 10, 2001 9:30 PM
Subject: Problems when using the jsp:include/ tag with Struts
Specifying multiple=true in this tag generates multiple=multiple in
the HTML code. Checking my HTML book shows multiple selects
in a select box with just the word MULTIPLE. Is this the correct
behavior?
Cordially,
Oswald
Yes, it is correct. Its irrelevant what the value of the MULTIPLE
attribute is, and its not well-formed XML to have an attribute without a
value. This is addressed in XHTML in Section 4.5 here:
http://www.w3.org/TR/xhtml1/#diffs
Erik
- Original Message -
From: Campesato, Oswald
63 matches
Mail list logo