Here is a working example of nested properties in an iterator.
All I need is an indexed getter and setter for address in my testBean.( getAddress(int
index) )
% String propertyValue = null;%
logic:iterate id=address name=testBean property=addresses
indexId=addressIndex
tr
td valign=top
Hello,
It seems to work like that. But as you wrote, if the redirect attribute is set
to 'true', it is cleaning all the attributes in request. I had put my
attributes in session instead of request.
Anyway, Thanks a lot.
Regards
Nuray
-Original Message-
From: mikael.eriksson
Hi all,
i want to set the value of html:option to the corresponding currency.id as
in the following (broken) jsp segment
html:select size=1 property=currency value=bean:write
name='merchantForm' property='currency'/
logic:iterate id=currency name=currencyList
html:option
Assuming your form is already associated with 'merchantForm' FormBean, and
that 'currencyList' is a Collection, try:
html:select property=currency
html:options collection=currencyList property=id
labelProperty=id/
/html:select
Mark
-Original Message-
From: Pham Thanh Quan
Hi Mark,
I followed your instruction and use the following code but didn't succeed.
html:select size=1 property=currency
html:options collection=currencyList
property=id//html:options
/html:select
I have the following error:
/admin/CreateMerchant.jsp(138):
Hi Martin,
Did you get to the bottom of this? Which
browser are you using? Are any exceptions thrown to your console? It seems
strange as I have had templates working fine in the WTE.
Jon.
-Original Message-
From: Martin
[mailto:[EMAIL PROTECTED]]
Sent: 01 July 2001
Hi Sean,
Check the multi-channel example in Components Framework. It could give you
some ideas. In your case, a channel will be the browser type.
In this example, a same url map to different views according to user
privilege. Mapping is specified in configuration files. There is one
I though about using curly braces as well. What stopped me using them was
the possible conflict with MessageFormat arguments. It may not be a strong
argument, but I still preferred using another pair of symbols. The other
reason is because when accessing a Map you call a method and use normal
That is not quite
correct,
since the FastHashMap class delegates all calls to the
underlying Hashmap,
there are two
levels of synchronization, or more accurately, two different
object locks that
are being manipulated in order to optimize the instance for
fast read lookups
which won't
Hi, Can anyone suggest why i might be recieving the following invalid
package declarations.
My Path as follows-
C:\jakarta-tomcat-3.2.1\webapps\bbnpa\ thus continued-
WEB-INF\classes\org\breconbeacons\it\java(classes).
Thus i am aware that they haven't compiled to .class file any help
would
be
What is it exactly are you trying to do?
Compile? Run a webapp? What is the exact error output you are
getting?
Calvin
- Original Message -
From:
Chuck Amadi
To: [EMAIL PROTECTED]
Sent: Monday, July 02, 2001 8:30 AM
Subject: pls Help Invalid Package
Declartions
Try
removing all the .java files from the WEB-INF dirtomcat doesnt like having
them there for some reason...
Mikkel
-Oprindelig meddelelse-Fra: Calvin Yu
[mailto:[EMAIL PROTECTED]]Sendt: 02 July 2001
15:19Til: [EMAIL PROTECTED]Emne: Re: pls
Help Invalid Package
Hi!
When I try to run the example with TOMCAT, I get the following error:
java.lang.SecurityException: sealing violation
at java.net.URLClassLoader.defineClass(URLClassLoader.java:234)
at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
at
Hi, all i have been using struts MVC for a short period of time, thus in
simple terms a newbie.
Any way i have managed to create a connection (datasource URI) to our
PostgreSql db retrieve data and display the result onto a planningdb.jsp
form.Thus the general public can analysis the several
Hi, mate were then should i locate them as oppose to WEB-INF\classes\
Cheers Chuck
Mikkel Bruun wrote:
Part 1.1Type: Plain Text (text/plain)
Encoding: quoted-printable
--
The views expressed by the sender of this message don't
necessarily represent those of Brecon Beacons
Hello!
I try to use struts with WEBSPHERE 3.5.3.
I would like to know the directories I must create and the files they must
contain.
Thanks.
MIKAEL
Ehh, i dont know...;-)
my point is that the WEB-INF tree shouldn't contain any .java files...just
.class, properties, etc...
Mikkel
-Oprindelig meddelelse-
Fra: Chuck Amadi [mailto:[EMAIL PROTECTED]]
Sendt: 02 July 2001 15:55
Til: [EMAIL PROTECTED]
Emne: Re: SV: pls Help Invalid
Hi i have sent u a visual , i have been trying to create my packages as
follows-
C:\jakarta-tomcat-3.2.1\bbnpa\WEB-INF\classes\org\breconbeacons\it\.java
classes.
These classes wont compile from .java to .class thus i can't utilise
them they once worked albiet not now. I would like to create
Hi, Again were would you create your .java files hence before compiling,
as i assume that the .java files had to be in the sub directory
classes beneath WEB-INF file structure in order for my web application
to locate them.I am aware that the container will look for deployment information
about
There would a few pros and cons for each of the approaches you mention,
making the choice difficult.
A third approach is to have the validation extracted into another set of
classes, so that neither the ActionForm nor the Action itself contain the
real validation logic. The mapper framework I'm
I need help knowing how to prepopulate a html:text
tag without it being set to null when the jsp is compiled and
instantiated. In the calling action class, I prepopulate the form
with the right information, but when the jsp is displayed the input fields get
set to null(empty). I can display
My
current setup consists of VAJ 3.5, running tomcat
internally...
If
your are running this combo,I would suggests that you compiled your .java
files in another location, and then had a script (ant?) to copy the compiled
clss files to the WEB-INF tree...
Try
reading the developer guide
Hi , I wll take time -out 2 night 4 a quite tomcat doc read , Cheers
for your input.
Mikkel Bruun wrote:
Part 1.1Type: Plain Text (text/plain)
Encoding: quoted-printable
--
The views expressed by the sender of this message don't
necessarily represent those of Brecon
Hi Folks,
Does anyone have procedure for installing struts in weblogic 6.0 env on
HP UX
Thanks
Mahesh
Hi Mahesh,
You should just have to drop the war file (struts-example.war) into your
applications directory. WLS should pickup the new war and deploy it for you.
What errors are you getting?
Jon.
-Original Message-
From: Mahesh Bhagia [mailto:[EMAIL PROTECTED]]
Sent: 02 July 2001
My
struts-config file is beginning to get a bit unwieldy.
Is it
possible to callmultiple *-config files from web.xml?
ex:
init-param
param-nameconfig/param-name
param-value/WEB-INF/meaningfulName1-config.xml/param-value
/init-param
init-param
param-nameconfig/param-name
The general thinking is that there are at least two levels of
validation. First, there is the simple domain-type checking, such as
fields that are suppose to be numeric should contain only numerals.
Second, there is business-logic checking, like invoice numbers are all
greater than 1000 or no
Thanks
D
-Original Message-
From: Ted Husted [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 02, 2001 12:11 PM
To: [EMAIL PROTECTED]
Subject: Re: Multiple Struts-config files
People are working on that, but it hasn't made it into a build let.
For more see,
I am still in the early stages of understanding struts
and would like to know a bit more about the jsp vs do
extensions. In looking at the index.jsp page of the
struts-example, you see two links.
Register with the MailReader Demonstration
Application links to editRegristration.do (***DO***)
This is how I understand it. A .do maps to an action then to a .jsp. If
you link directly to a .jsp, the action never executes. Actions are mapped
to a .jsp in the struts-config.xml file.
I'm sure there are more clear explanations to follow.
Anthony
-Original Message-
From: Bob
Anthony Martin [EMAIL PROTECTED] wrote:
This is how I understand it. A .do maps to an action then to a .jsp. If
you link directly to a .jsp, the action never executes. Actions are mapped
to a .jsp in the struts-config.xml file.
I'm sure there are more clear explanations to follow.
Have any of you ever seen anything like this before? I think that compiled
code for this JSP got too big.
Error: 500
Location: /eCMS/CareManager/PfPatientSummaryBody.jsp
Internal Servlet Error:
javax.servlet.ServletException: (class:
hi,
the daily mails in this mailinglist incrased a lot past the last month.
what do you think about to split the mailinglist into two. eg. into a
beginner and advanced one.
perhaps this could fit everybodys needs.
norman
. . . . . . . . . . . . . . . . . . . . . . . . .
Norman Timmler
Unfortunately I've seen it. :-(
-Chris
Here is a previous reply on this subject from Mr. Cooper:
I am, unfortunately, intimately familiar with this problem.
The problem is
In general, however, you can go to actions directly as long as you supply
the required fields in the url (if any).
In the case of the struts-example, going to logon.do gives a validation
error because it was expecting the correct query string. For example:
I recently signed up for this mailing list, but I no longer wish to be on
it. I emailed [EMAIL PROTECTED], and asked to be
removed, but I am still getting the messages! Please remove me from all of
your lists! Thanks!
-Original Message-
From: Norman Timmler [SMTP:[EMAIL PROTECTED]]
Anthony Martin [EMAIL PROTECTED] wrote:
In general, however, you can go to actions directly as long as you supply
the required fields in the url (if any).
In the case of the struts-example, going to logon.do gives a validation
error because it was expecting the correct query string. For
Don't forget as well the validation framework from David, which normally
should be integrated into Struts at some point.
Fr.
-Original Message-
From: Rey Francois
Sent: 02 July 2001 13:58
To: '[EMAIL PROTECTED]'
Subject: RE: validation
There would a few pros and cons for each of the
The problem with splitting into two lists is that the advanced users will
not be around to answer the beginner questions.
I agree that there is a lot of traffic on this list, both beginner and
advanced. I see it as a benefit though.
The beginners get to learn from the advanced, and the advanced
Agreed. :)
Chris
-Original Message-
From: Peter Alfors [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 02, 2001 1:57 PM
To: [EMAIL PROTECTED]
Subject: Re: proposal: splitting struts mailing list
The problem with splitting into two lists is that the advanced users will
not be around to
Not directly--
I have, however, added Tomcat to my struts projects and ran the entire
process within NetBeans.
-- Levi
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Monday, July 02, 2001 12:07 PM
To: [EMAIL PROTECTED]
Subject: Netbeans Support of
Netbeans 3.2 has support for execution of JSPs and Servlets and with
some slight tweaking you can also debug a web-app. Forte 4j 3.0 has a
little better support for this, but seems to still have some issues .
Both of them have Tomcat integrated as plug-ins and have pretty good
support for JSP
I am trying to check if the user entered a value
for a search criteria in a results page. My ActionForm sets a
propertyto "" if the user did not enter a value.
So in the following code, I want to only show it if
the property does not equal "". But the following does not work, should
it?
probably you should use match and notmatch
tags
logic:notmatch name="myForm"
property="searchParam" value=""
show this if property
"searchParam" is not equal to ""
/logic:notEqual
rama.
- Original Message -
From:
Matt
Raible
To: Struts User
Sent: Monday, July
Is it possible to hide all JSP files under the /WEB-INF/ directory and
still use templates??
I had some difficulties with the following code finding the
main_content.jsp page. Should this work or am I trying to do something
that is known to not work?
(BTW - The code seems to run fine if I put
If I do this, I get the following error - it seems
to go away when I put a value in value="put value or space here"
[02/Jul/2001 12:52:02:2] error: Exception:
SERVLET-execution_failed: Error in executing servlet resourceList:
java.lang.Exception: JSP Error: Setter method not provided for
do you have the set method for property
'searchParam' in your form bean???
or
may be it needs a constant instead of a null
value, but this is not true as it works fine for me.
- Original Message -
From:
Matt
Raible
To: [EMAIL PROTECTED]
Sent: Monday, July 02,
We set all our values to "" in our dataObjects so
the UI does not display null on the screen. Does struts auto-convert a
null to a "" for display? If so, then we can get the getter/setters in our
dataObjects (forms).
Matt
- Original Message -
From:
Spencer
Smith
To:
Where is you template file (WEB-INF)? If it is, rry using relative paths to
put to the template.
ex: the line in project.jsp that puts to the template...
template:put name=body content =../project/project_body.jsp/
where the path is relative to the template NOT to the puting file.
Can the 'indexed' label (used for working with indexed properties) be used with
html:select and the html:options tags?
~Jason
When I change my code from html:cancel to html:button I get the
following error:
html:button onclick=location.href='/NASApp/timetracker/mainMenu'
bean:message key=button.done styleClass=inputButtonNormal /
/html:button
I would leave this as html:cancel, but the onClick doesn't work.
Any
I think you'd have to use an Action class to get the html:cancel /
behavior.
The action class would call isCancelled(request) to find out if the form
was canceled, and then return a forward mapping to the cancel path ex:
return (mapping.findForward(cancel));
If you can use
Does anyone have experience using the transactional tokens in the action? I
have seen the example in the struts-example application and I'm still not
clear on quite how these are used.
I am particularly confused as to how I would use the tokens in a 'wizard'
style set of forms.
A good example
yes i am new to this all and i am getting this error can anyone point me in
the right direction?
C:\struts-sandbox\tomcat\webapps\HelloWorld\hello.jsp(1,0) Unable to open
taglibrary /WEB-INF/struts-bean.tld : Could not locate TLD
/WEB-INF/struts-bean.tld
thank you
Sorry, I forgot the error:
Missing identifier: jsp_missing_attribute in resource: servlet
[02/Jul/2001 13:21:27:0] error: Exception: SERVLET-execution_failed: Error
in executing servlet resourceList: java.lang.Exception: Missing id! jsp_mis
sing_attribute
Exception Stack Trace:
I use 1 ActionForm for my wizards. I include a hidden form element called
'page'. In my reset and validate methods, I use the page field to determine
what to reset/validate.
James Hicks
-Original Message-
From: Gangadharappa, Kiran [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 02,
Ted,
Do you think this approach of splitting validation between both the
ActionForm.validate() and the Action.perform() is the most desirable?
Somehow I have the feeling that by extracting these validations into
separate classes is a better approach because it makes it easier to reuse
the
When I say I have my validation logic in the perform method - I just mean
that this is where I am doing the validation. But the logic (most of it) is
in separate classes. I would guess this is upto the user to decide whether
to put in the perform method directly or use classes of their own for
Hi,
Thanks for replying... I did stumble onto the index extension
in my search, but i thought i could manage without!
I will try to do as you describes, thanks a lot!
^terp
-Original Message-
From: Niall Pemberton [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 02, 2001 12:57 AM
Mikkel,
Here's a bit of a hack solution, but ... have you tried to use Jikes as your
JSP compiler?
Regards,
Ben Flaumenhaft - [EMAIL PROTECTED]
Principal, Sidelight Consulting
http://www.sidelight.com
-Original Message-
From: Mikkel Bruun [mailto:[EMAIL PROTECTED]]
Sent: Monday,
Hi,
A giant thank you!!! There is nothing like source when in trouble :-)
Will try it at once
^terp
-Original Message-
From: Merikan Peter [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 02, 2001 9:20 AM
To: '[EMAIL PROTECTED]'
Subject: RE: Problems with iterate
Here is a
Hi,
Does anybody know reason for this error, while running sample
application,
ERROR: User database not loaded -- check servlet container logs for
error messages
Thanks
thanks Ill take a look at both these tonight.
pratima
-Original Message-
From: Rey Francois [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 02, 2001 5:02 AM
To: '[EMAIL PROTECTED]'
Subject: RE: validation
Don't forget as well the validation framework from David, which normally
should be
Has anyone been able to get Struts 1.0 to work on WebSphere
3.5.4 (yes, that's with the new patch 4)?
I can get index.jsp to run, but I'm not getting farther
than that. I've made the recommended DTD changes, but that
didn't help (no ActionMapping, or similar, errors have
shown up in the log.)
One thing to note, however, is that the internationalization (bean:message tags)
won't go to non-default mappings unless you use a *.do extension. I can't remember if
our tests showed that going first to a *.do and then to a *.jsp worked or not...I
don't think so. If you need to make your
Thanks, this can be the source of some problems I've had with the i18n.
I am using Struts only about one month, I has some problems with figuring
out, how bean:message determines the locale it should use.
So I peeked in the sources and found out, it uses a session sttribute. I
haven't
look in
Hi everyone,
I have two problems, which I am not able to fix. The parser.jar is in my
classpath, my library but when I try to run ant dist, I get the
following error and these classes are in parser.jar. I have checked my
classpath and library many times.
The second problem is the
do you have parser.jar in ant\lib???
regarding the applicationresources, i don't know what is your application
but try putting it in web-inf\classes
or if your classes are in a .jar file then add this resources file to that
jar file.
bottom line is it should be somewhere, your appserver can
Oops forget my answer, I did not read well enough the question in the first
instance, sorry.
Fr.
-Original Message-
From: Rey Francois
Sent: 02 July 2001 18:56
To: '[EMAIL PROTECTED]'
Subject: RE: jsp vs do
Probably because you want to remain faithful to the MVC approach: only the
There is no compiler class (jar) distributed with Tomcat, out of the box.
Apparently there are none in open source. Apache will only distribute open
source.
Of course, Sun (and others) distribute tools.jar (or equiv) gratis.
Modify your startup.sh (or is it setenv.sh ??) to include the
I am facing problem when I tried to make org.apache.startup.Tomcat as my
main class. It throws me some exception. I have added the jar file
in my file system. Do I need to specifically expand the jar file and then
add the directories
TIA
Ajit
At 11:35 AM 7/3/01 +1200, you wrote:
Yes you
Sorry for the delay ,yes all works fine cheers 4 your contribution.
Peter Alfors wrote:
You can either link to a javascript file:
SCRIPT language=JavaScript src=myJavascriptFile.js/SCRIPT
Or include the javascript code directly:
SCRIPT language=JavaScript
function myFunct()
Hi,there since my last altication my .java files wont compile into
.class files i am recieveing invalid package declaretions . Thus can i
create a class dir that 's the same top level as tomcat's
bin,conf,lib,logs,src,webapps and work as per the tomcat doc's as im
have spent considerable time on
You
shouldn't need to expand the jar.
What
version of NetBeans are you using, and what is the exception that is
raised?
-Original Message-From: Ajit Chourasia
[mailto:[EMAIL PROTECTED]]Sent: 03 July 2001 12:32To:
[EMAIL PROTECTED]Subject: RE: Netbeans Support of
StrutsI
Yes, I am familiar with this error. The problem is the user database is not
loaded. For the specific reason why the user database didn't, you have to
check the servlet logs. In those logs you'll find an error message with
regards to the user database not loading.
Regards,
Matthew
-Original
Probably because you want to remain faithful to the MVC approach: only the
controller should decide where to dispatch a request. Linking JSPs together
directly can lead to a spaghetti mess. What you want is one central point
where the request dispacthing is done (the ActionServlet) so you can
Hello All -
I am new to Struts and trying to run the Struts
example applications. When I am starting Tomcat,
everything loads fine (as found in the
$TOMCAT_HOME/logs/servlet.log file). In fact the
following gets logged in the file :
2001-07-02 08:38:46 - path=/struts-example :jsp:
init
Whether there is the key index.title in your ApplicationResources file or
not ?
- Original Message -
From: Debasish Ghosh [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, July 03, 2001 11:17 AM
Subject: Help with Resources !!
Hello All -
I am new to Struts and trying to run
If u have a text field on the html form . When u
submit that form without entering anything in textfield then in the servlet if u
try to do
String value =
request.getParameter("nameOfTextField") , u will get value =""
and not null
So no need of settingdataObjectsvalues
to "" explicitely
Yes, it is there. Actually I am trying to run the
struts-example application that came with Struts. I
checked that the ApplicationResources file is in
proper place and contains the key : index.title.
I am running on Windows NT. Actually I looked up the
mail archive and found a similar problem
80 matches
Mail list logo