Hello:
I have a simple scenario that I need help with. While a user is adding or
editing information on a data entry screen (it is the same ActionForm and
Action) - to click a button to save the information as the defaults for any
subsequent new data entry screen. This saving of the default
Thank you very much !!
Now it works, but now i have another problem.
it's about the action form. when i call the action
i get the error:
No getter method for property Name of bean
org.apache.struts.taglib.html.BEAN
my class looks like this:
import org.apache.struts.action.ActionForm;
public
If your method are getName() and setName(...) the property name is name
without caps (javabean spec). I think you are using Name instead of
name in your jsp.
Jean-Noel
At 09:15 05/09/2001, you wrote:
Thank you very much !!
Now it works, but now i have another problem.
it's about the action
Jeah you are right !!
Damn fault ;)
Thank you very much !
Antonio
-Ursprüngliche Nachricht-
Von: Jean-Noel Ribette [mailto:[EMAIL PROTECTED]]
Gesendet: Mittwoch, 5. September 2001 09:24
An: [EMAIL PROTECTED]
Betreff: Re: AW: Confused about everything ... - I think now it's a
problem
Hi,
I am wanting to use Struts for a web application I must write, however on my
first look at the HTML custom tag library I can see nothing to generate
tables. This kind of tag exists on other tag libs I have seen such as
Borlands Internet Beans Express, and I think this tag is vital. What's
Hi all
I thought this would be an easy question for those involved in the
project. Doesn't anyone know the answer?
TIA
Jose Correia
--
\=/, _-===-_-===-_-===-_-===-_-==-_
| @___oo ( )_
/\ /\ / (___,,,}_--=
Hi Jeff,
Struts tags are very simple, which allows you to do whatever you want with
the HTML code. But you still need to write it. Another solution is to use
the layout taglib I am working on. This taglib allows to design screens
very rapidly without writing HTML code. You can have a look at
Where can I find out more information about your ValueObjects
What are the pros ? What are the cons?
--
Peter Pilgrim | |++44 (0)207-545-9923
\ \ ___ / / ... .
- ( * ) --- --
_Cafe_Savannah,_San
Greetings, I was wondering if anyone was implementing the DAO design pattern
using JDO. I am currently re-engineering a web application and plan to use
Struts for the web tier and am looking for a non-J2EE solution for the
business/persistence layer. I have done some cursory research on JDO and
Jose Correia wrote:
I thought this would be an easy question for those involved in the
project.
Not. It's a reference to struts in the architectural sense.
-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Custom Software ~ Technical Services.
-- Tel +1 716 737-3463
--
hi,
know anybody who what´s wrong in the lines below?? i
not!
javax.servlet.ServletException: Cannot find bean element
in scope null
--
% java.util.ArrayList list = new
java.util.ArrayList(); list.add(new
Struts is meant to be a lightweight framework to help you build Web
applications. It is not meant to be an omnibus solution for all your Web
development needs. It is expected that most developers will need to
develop their own tags, and also use those from other sources like
Jakarta Taglibs. At
The ValidatorForm tags include a switch for skipping validation. It is
usually used for CANCEL buttons, but should also work for what you are
trying to do here.
html:submit onclick=bCancel=true;
bean:message key=button.saveDefaults/
/html:submit
In your Action, you should be able
Thanks!
Ted Husted wrote:
Jose Correia wrote:
I thought this would be an easy question for those involved in the
project.
Not. It's a reference to struts in the architectural sense.
-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Custom Software ~ Technical Services.
-- Tel +1 716
Jose Correia wrote:
Thanks!
Ted Husted wrote:
Jose Correia wrote:
I thought this would be an easy question for those involved in the
project.
Not. It's a reference to struts in the architectural sense.
Struts means ostrich (the bird) in norwegian.
The funny thing about
Classic! ;-)
Torgeir Veimo wrote:
Jose Correia wrote:
Thanks!
Ted Husted wrote:
Jose Correia wrote:
I thought this would be an easy question for those involved in the
project.
Not. It's a reference to struts in the architectural sense.
Struts means ostrich (the
Peter,
Sun Consulting just released a great book: Core J2EE Patterns - Practices
and Design Strategies published by PH/PTR, which covers the presentation,
business and integration tiers. Besides the examples, best-practices,
patterns, strategies and refactorings covered in the book it gives
http://jakarta.apache.org/struts/userGuide/building_model.html#javabeans
Venkat Jonnalagadda wrote:
what are different scope(s) available to define for a bean in
struts-config.xml and how do it define themany examples...please...
--Venkat.
Hi,
I am try to use the iterate tag to display a list of strings on a page. The strings I am using have been initialized in an ArrayList. I want to be able to check how many strings are in the list so that I can display a certain amount on a number of pages. This is because I do not know how many
Oswald
This error msg. occurs because there is no attribute associated
with indexed. Look at your struts-html.tld and you'll see (something
like this):
tag
namecheckbox/name
tagclassorg.apache.struts.taglib.html.CheckboxTag/tagclass
attribute
nameaccesskey/name
requiredfalse/required
Hi,
I realize this isn't really specific to Struts. On the other hand, the
problem is related to the Struts template tags.
The setup looks like this:
Action -
Templated JSP page (A) -
One of the template elements is again a templated JSP (b) -
JSP (C)
Now, the last JSP file (C) uses a group
User Crew,
My sessions are being stomped (or actually being overriden by new ones)
every time I make a new request. They are fine from the form to the action
part, but the second I do a new request the session evaporates. I need to
be able to keep the session around because I have a userMgr
Hi,
can anybody help me out in converting ActionForm to HashMap. There is a
Method called describe available is org.apache.struts.util.Beanutil, which
converts the action form into Map.But for this you need to create form-bean
for each jsp.
I want generic form-bean, which should hold
Is anyone using the early access of CachedRowSet for data access, or are people just
using straight JDBC calls?
I've been using straight JDBC calls, but it looks like CachedRowSet would be easier.
Anyone know when it will be officially released? Is it currently stable?
Thanks,
Ryan
Personally, I would wrap the ArrayList in a bean and expose the size (or
row count) with an accessor. Then you can do things like this:
logic:notEqual name=result property=rowCount value=0
... iterate the list
/logic:notEqual
logic:equal name=result property=rowCount value=0
... explain
Ryan,
I have been using the CachedRowSet and have not encountered any problems
with it to date. I too would be interested to know when a release of the
source code for these classes will be available.
Regards, Jay
-Original Message-
From: Ryan Cornia [mailto:[EMAIL PROTECTED]]
Sent:
Ryan Cornia [EMAIL PROTECTED] asks:
Is anyone using the early access of CachedRowSet
for data access, or are people just using straight
JDBC calls?
I've been using straight JDBC calls, but it looks
like CachedRowSet would be easier. Anyone know when
it will be officially released?
Thanks Matt and Ted...
-Original Message-
From: Ted Husted [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 04, 2001 9:56 PM
To: [EMAIL PROTECTED]
Subject: Re: problem with struts and EJB
Matt Ho wrote:
Has there ever been talk of making ActionForm an interface rather than a
CachedRowSet seems fine for read-only accesses, but I'm told that
inserts and updates can be flakey (or impossible) with some drivers.
I have used RowSets extensively for accesses, and never had a problem.
The Jakarta TagLibs dbTag has also been recently extended so that you
can use read-only
I have actually the same problem on Tomcat 3.3 Beta 1, my session is renewed
for each request... What container do you use ?
Fr.
-Original Message-
From: Clay Graham [mailto:[EMAIL PROTECTED]]
Sent: 05 September 2001 17:26
To: '[EMAIL PROTECTED]'
Subject: Session STOMP
User Crew,
My
Hello!
Do you have cookies enabled?
If not, the session might get lost because you don't append the session id
to the URL in your forward-statement.
I think it should look like this:
jsp:forward page='%= response.encodeURL(logon.jsp) %' /
Tell me if it works. I'm working on a similar
isn't there a bean:size tag, which is designed for this?
G.
-Original Message-
From: Ted Husted [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 05, 2001 5:15 PM
To: [EMAIL PROTECTED]
Subject: Re: Using the iterate tag
Personally, I would wrap the ArrayList in a bean and expose
Hi !!
Is this ok that a struts-tag is in the html-site to ?
Because in my action I can't get the value of the pk_lookupkey.
/tdtdcenter2009-12-12/center
/tdtd
html:hidden property=pk_lookupkey value=72.0/
centerinput type=submit name=action
Hi, In LogoffAction in the struts example, the main three lines are:
session.removeAttribute(Constants.SUBSCRIPTION_KEY);
session.removeAttribute(Constants.USER_KEY);
session.invalidate();
What is the purpose of the first two lines - why bother removing the items
right before the session is
Thats what is called as paranoid cleanup-lol
From: Brian K. Buckley [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: LogoffAction example
Date: Wed, 5 Sep 2001 10:40:49 -0400
Hi, In LogoffAction in the struts example, the main three lines are:
nope...here is the Interceptor from my server.xml
RequestInterceptor
className=org.apache.tomcat.request.SessionInterceptor
noCookies=false /
I would be suprised if the tag you gave me solved the problem the forward
only happens if the user is NOT logged in. The
I am using tomcat 3.2
-Original Message-
From: Rey Francois [SMTP:[EMAIL PROTECTED]]
Sent: Wednesday, September 05, 2001 7:17 AM
To: '[EMAIL PROTECTED]'
Subject:RE: Session STOMP
I have actually the same problem on Tomcat 3.3 Beta 1, my session is renewed
for each
Hi,
Here's my problem. My management feels that storing the database
account(userid/password)in the config file is a security risk. According to them a
hacker can get access to the whole database if they can get access to this info.
Supposedly the security team wants to put the application
Alright :).
I was thinking it might have been intentional to give any
HttpSessionListeners a chance to do something.
I'm not clear on when HttpSessionBindingEvents occur - do they happen
automatically when a session timesout or sesion.invalidate() is called, or
do they happen only when it
Hey,
Just for those who think filters are a new idea, I just wanted to point
out that filters have been in the Microsoft world (ISAPI) for years.
(Don't worry, I'm not a Microsoft advocate, just pointing out the facts
:-).
Oh !!
Thank you very much !
now it works ;)
-Ursprüngliche Nachricht-
Von: Luis Olivares [mailto:[EMAIL PROTECTED]]
Gesendet: Sonntag, 5. August 2001 17:22
An: [EMAIL PROTECTED]
Betreff: Re: struts-tags are even in the html-site
You are not declaring the Struts Tag in your JSP before
I am using struts way of handling database using struts-config.xml. Where would I
encrypt it?
-Original Message-
From: Ernest Jones [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 05, 2001 10:46 AM
To: [EMAIL PROTECTED]
Subject: Re: How have others handled management concerns over
Matt,
Have you changed your web.xml to use the pre-compiled jsp's (you have to define
the servlet and servlet mapping for each page? If you don't do that, the
original jsps will be compiled when called etc..
Yeah, ant re-compiles mine too, but I haven't had a chance to look at why...
To use the indexed option you need to be using the nightly build.
Dave
Campesato, Oswald [EMAIL PROTECTED] on 09/04/2001
04:01:26 PM
Please respond to [EMAIL PROTECTED]
To: '[EMAIL PROTECTED]'
[EMAIL PROTECTED]
cc:(bcc: David Hay/Lex/Lexmark)
Subject: indexed option does
I believe that according to the spec the unBound event should occur when a
session.invalidate() occurs. I have noticed that some containers have
problems with that however. Tomcat seems to implement this correctly.
-Rob
-Original Message-
From: Brian K. Buckley [mailto:[EMAIL
You would want to restrict what kind of access your generic Web user has
to the database. If the permissions are set right on the database, then
they can't do much they couldn't do from the Website anyway.
You should also restrict from where the Web user login can be used. It
should only be
Hi,
I am having problems getting quotes arranged correctly. I have a radio button that I
need the
property set to a value in a bean. I have tried:
html:radio name=rdoEntity value=bean:write name=entity
property=entityNumber / /
but I am getting errors creating the page. Can someone tell me
HttpSessionBindingEvents occur when an attribute is removed from the session. since
invalidate() first invalidates the session, then removes any bound objects, the call
would happen in both cases, so you don't need the removeAttribute() calls so long as
the invalidate() call remains.
Nocera,
It is not the combination of quotes, this contruction with a tag as an
attribute of another tag is not valid.
Wellington Silva
UN/FAO
-Original Message-
From: Alex Colic [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 05, 2001 6:46 PM
To: [EMAIL PROTECTED]
Subject: Can you get
Hello,
I have a form in Struts which has a drop-down select list
where the options are populated by a bean that reads
the options from a database. On the form JSP, I use:
jsp:useBean id=formData
scope=request
class=com.eviciti.struts.test.GetQueryFormDataBean
We had a similar problem with management when we tried to implement our DMZ using
websphere. The solution that we'd come up with is retrieving the username and
password from a secure LDAP server. We continued to use the struts-config file to
define our datasource and removed the username and
The html:link tags provide automatic encoding, and other useful features
;-)
-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Custom Software ~ Technical Services.
-- Tel +1 716 737-3463
-- http://www.husted.com/about/struts/
Clay Graham wrote:
ok,
so it WAS the encodeURL issue...the
It's perfectly legitimate when the outer tag is an HTML tag. I just the
other quote.
- Original Message -
From: Lacerda, Wellington (AFIS) [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, September 05, 2001 12:49 PM
Subject: RE: Can you get these quotes arranged correctly?
Hi,
Thanks to Ted for assisting me earlier on with the iterate tag problem, it works fine now.
Could anyone please tell me what I am doing wrong with the following declaration:
% String action = "Reset";%
html:link page="/archive.do?action=%=action%" test/html:link
it throws the following
Hello all,
In my JSP I'm iterating through a vector I've stored in my ActionForm
bean, I write out information from the vector to the JSP and the end
result is a populated table on the JSP. What I would like to do is add a
form to each row on the table (as I iterate through), however, I need
I really appreciate all the responses.
Ted, I just want to make sure there is no confusion in understanding my problem. I am
not sure if by Web user you mean the application user or the database account.
Each application user, i.e., a supplier has only access to a subset of the database
Hello,
Sorry for mine post again and lack of knowledge on utf-8.
It appears that Martin and Jonathan suggested way of utf-8 encoding on
submit is good when Martin's 3 steps(see below) is followed. However, i
found it's the Strut tag that's _NOT_ handling the utf-8 encoding correctly.
I
First, you're using scriptlets ;-)
Most Struts applications can be written without the aid of scriplets.
Before resorting to one, it's important to look for what tag properties
you could use instead.
In this case, you can use the paramName and paramPropeties
html:link page=/archive.do
Daniel,
Initially we might be using Tomcat/Catalina. In such a case how do I go about doing
what you have done?
Thanks.
-Nimmi
-Original Message-
From: Daniel Jimenez [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 05, 2001 12:42 PM
To: [EMAIL PROTECTED]
Subject: Re: How have
Shamdasani Nimmi-ANS004 wrote:
Each application user, i.e., a supplier has only access to a subset of the database
depending on what he/she is allowed to see but the database account(the account which
is used by the application to get the connection pool) has access to the complete
database.
um, this is the best solution yet
and right after I just wrote my own tag.
good golly I like that tag...that's what I get for using tags outside of
struts
I WILL ALWAYS USE STRUTS TAGS IF POSSIBLE FROM NOW ON!
I give thanks to the struts gods!
clay
-Original Message-
From:
Hi guys,
This has probably been answered before,
BeanUtils is deprecated (struts 1.0). What is the correct alternative to
this class?
Thanks a lot,
Andre Paradis
Sorry... just tired...
from javadocs:
At some point after Struts 1.0 final, will be replaced by an equivalent
class in the Jakarta Commons Beanutils package.
-Original Message-
From: Paradis, André
Sent: September 5, 2001 3:52 PM
To: [EMAIL PROTECTED]
Subject: BeanUtils deprecated?
Hi, thanks for all the suggestions. I am still having trouble getting the text to show
up
properly. For a submit button I have escaped the quotes as suggested:
html:submit property=submit value=bean:message key=\button.submit\ //
When I call the page it does not evaluate the bean message tag.
Another *JSP* tag's attribute I should say, sorry - long day.
Chris
Christopher Assenza
Phone: 412.201.6026
Fax: 412.201.6060
Email: [EMAIL PROTECTED]
ACCESSDATA
Moving Your Business from Point A to Point e.SM
http://www.accessdc.com/
-Original Message-
From: Assenza, Chris
I am using jspc (bundled in iPlanet SP3 from Tomcat 3.2.1) and I am getting the
following error:
2001-09-05 10:20:33 - error-the file '\WEB-INF\pages\timesheetList.jsp'
generated the following parse exception: org.apa
che.jasper.compiler.CompileException:
I remember Craig McClanahan addressing the issue of Struts and Tomcat 4.0.
As some of you might not know he is a primary developer for both projects.
Here is what he said:
The only thing you need to do is make sure an XML parser is visible to
your webapps -- either copy the JAXP jar files (or
Check out
http://www.mail-archive.com/struts-user@jakarta.apache.org/msg14326.html
Clay Graham wrote:
can you give a more verbose example of how you would do this?
I would like to do this too.
the exact syntax is important, I cant seem to make it work.
-Original Message-
From: John
We are trying to migrate our Struts application from WebSphere 3.5.4 to
WebSphere 4.0 on an AIX box and we are running into trouble. We then decided
to migrate the Struts example to 4.0. When we move the working war file for
the Struts example to 4.0 we get the following error when we try to edit
You should not use the %@ include file=aJspPage.jsp % scriptlet command.
I used to do the same a long time ago. The problem is that if you do changes
to the 'included' file ('aJspPage.jsp' in this case), such changes will not
be reflected by the pages including it until you made a change to the
If you are referring to form beans, they can only be in session or
request scope.
Erik
- Original Message -
From: Jonathan M Crater [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, September 05, 2001 4:24 AM
Subject: Re: what are different scope(s) available to define for a
The approach that I've implemented can be as complicated or uncomplicated as you want
to make it. The more complicated you make it, the more security you implement. To
simply store a username and password on ldap and retrieve it is fairly easy. However,
because of your setup (app server on
Here's some more about implementing SSL.
http://husted.com/about/struts/FAQ/controller-ssl.htm
-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Custom Software ~ Technical Services.
-- Tel +1 716 737-3463
-- http://www.husted.com/about/struts/
Daniel Jimenez wrote:
I wouldn't know where to
I am hoping that someone can clear up what has become a foggy picture in my
mind regarding the transfer of data between an ActionForm bean and
corresponding entity beans.
Ted Husted wrote:
Using a nested bean on your ActionForm lets you use the form like a
wrapper, so you don't have to define
David Boardman wrote:
Ted Husted wrote:
Using a nested bean on your ActionForm lets you use the form like a
wrapper, so you don't have to define everything twice, if your business
beans and ActionForm beans would otherwise be identical
I take this to mean that if my ActionForm bean and
Hello,
I have been writing my own custom jsp tags, and have recently
noticed that member properties of tags seem to be retained after the tag
is complete.
For example, lets say you have a tag that has an optional attribute
called message, and the tag is designed to print this
Would it be possible to add the indexed capability to the select tag.
I have an application that would benefit greatly from that capability.
I have a set of rows that are contained within a Vector in a bean. I
use a set of iterate tags combined with the indexed capability within
such tags as
Hi Dan,
Thanks for your response. I did finally solve this last week...
I had added the "extra classpath" for 2 different ApplicationResources files.
I had the unfortunate luck of putting the one I needed last... and so struts
was finding the wrong one. Go figure.
I just responded to another
Quoting from Geary's Advanced JavaServer Pages book, p. 14:
Because servlet containers can reuse tag handlers, you must be diligent
about implementing the release method and careful about instantiating
resources in doStartTag [rather in the tags constructor]
So the 'release' method is the key.
Erik -
Thanks for clearing that up. I will be sure to recheck my release
methods. It is a relief to know that there is nothing to worry about
here (as long as the resources are cleared).
Thanks,
Bill
Erik Hatcher wrote:
Quoting from Geary's Advanced JavaServer Pages book, p. 14:
Hi
i'm getting the following error. Using tomcat3.2
Error: 500
Location: /dynamic/home/testJobs.jsp
Internal Servlet Error:
org.apache.jasper.compiler.CompileException:
/usr/local/cmc/fe/content/en_US/dynamic/home/testJobs.jsp(0,0) Unable to
open taglibrary /WEB-INF/struts-template.tld :
What's up, dude!!
I'mtrying to use a form tag in
my JSP, but it doesn't work out. my source code as the
followingdoes anyone has any idea about what's going on right here. your
help will be greatly appreciated...
%@ taglib uri="/WEB-INF/struts-html.tld"
prefix="html" %
Hello all,
I have a non-struts JSP that uses javascript to submit a form
from a link in the form:
td>
a href='javascript:submitForm("IE","outerBorderColor")'>Outer
Border/a>
/td>
This works exactly as I expect.
I have been unable to get this to work in struts:
td>
html:link
Kurt Chen:
It depends on the beans in you collectin attr2.
It seems that there is no a getter for attr_name like
getAttr_name() in your beans.
wish this help!
Jishan Li.
- Original Message -
From:
Kurt Chen
To: [EMAIL PROTECTED]
Sent: Thursday,
One thing may be extract classes and put your classes to your classpath.
Also do not forget to copy ApplicationResources to the folder where your
classes are (/WEB-INF/classes)
-Original Message-
From: Aby Kuriakose [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 07, 2000 7:01 PM
To:
Oops
i missed some of my code...the
code should be in following.Please take a look at the code again and kindly
tell me what's wrong with my code. thanks
%@ taglib uri="/WEB-INF/struts-html.tld"
prefix="html" %
%
java.util.ArrayList
Hi Guys,
I am new to this user group and woulld like to clarify certain points.
After installing struts and following the instructions as per the read me
file i still am unable to run the example application.
I could host the struts-documentation file but when i try to run the example
it throws
The problem lies in the beans in your ArrayList. Could
you paste the code of the bean here? there should be a method named
public String getAttr_name()
In the bean class.
- Original Message -
From:
Kurt Chen
To: [EMAIL PROTECTED]
Sent: Thursday,
88 matches
Mail list logo