DAOs are another way to do it, but using a framework is much better imo
http://java.sun.com/blueprints/code/jps13/src/com/sun/j2ee/blueprints/catalo
g/dao/CatalogDAOImpl.java.html
- Original Message -
From: Christopher Barham [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL
Thanks for the help.
Luckily the search method is the way I need it.
Alex
-Original Message-
From: Arnaud Buisine [mailto:[EMAIL PROTECTED]]
Sent: January 23, 2002 10:56 AM
To: Struts Users Mailing List
Subject: RE: How to specify scope of bean for html:options tag.
Tell me if I'm
Hi,
I'm trying to perform an equal test on two String values
accessed via two beans. So I'd like to do something like:
logic:equal name=b1 property=p1
value=b2/
Yes, the two are equal
/logic:equal
but it seems that only literal String values may be specified by
the
Thanks for the help.
Luckily the search method is the way I need it.
Alex
-Original Message-
From: Arnaud Buisine [mailto:[EMAIL PROTECTED]]
Sent: January 23, 2002 10:56 AM
To: Struts Users Mailing List
Subject: RE: How to specify scope of bean for html:options tag.
Tell me if I'm
Hi
FYI, Data Access Objects (DAOs) is not a persistence mechansim, it's a
design pattern used to encapsulate the mechanism. The mechanism itself can
be JDBC (in the example you have given), Castor JDO, Sun JDO, or any other
O/R mapping tools' API.
Keith
-Original Message-
From:
Hi all,
I need to integrate an external web-based service with a
Struts-based app. The chain of events are:
1. client invokes URL on my app within their current session.
2. My action class gets hit. Sometimes it would immediately
forward to a JSP, but sometimes it must first bounce the
We're stumped folks. I'm using struts templates as a way make UI
development more efficient--but we have the following issue.
Imagine a page like the following:
%@ page language=java %
%@ taglib uri=/WEB-INF/struts-template.tld prefix=template %
%! String name = bob; %
!DOCTYPE HTML
Have you tried Tiles? I'm working with it right now, and am on the cusp of
inserting dynamic tags... just an idea.
- Original Message -
From: James Erb [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, January 23, 2002 12:11 PM
Subject: jsp templates: using expression in content
Subject: Re: Model Persistence Survey
From: Vic Cekvenich [EMAIL PROTECTED]
===
Here is a sample DAO Extended Form Bean code :
public class NameZoomFrm extends daoFormBean {
private String fstName;
private String lstName;
public String getFstName() { //get it from _crs RowSet
hi
anyone has used javascript alongwith struts
david
-Original Message-
From: Chalissary, David
Sent: 23 January 2002 13:32
To: Struts Users Mailing List
Subject: RE: using struts and javascripts together
Hi,
I would like to know if I can use the struts tag in a
javascript
Yes. The thing to remember is that by the time the JavaScript fires, the
Struts tags have been rendered as plain, ordinary HTML, so everything
works just as it would on any Web page. By the time it gets to the
browser, there are no Struts tags, only the regular HTML tags the
browser expects.
We have a persistence framework used in conjunction with our business
object foundation called eQ!. It follows the DAO pattern, and is similar
to how JDO works, where you tell the object to save it self, but that
work is delegated to a PersistenceManager. This PM can use any kind of
persister
Hi,
My JSP looks like that:
%@ page contentType=text/html; charset=iso-8859-2 %
%@ taglib uri=/WEB-INF/struts-bean.tld prefix=bean %
%@ taglib uri=/WEB-INF/struts-html.tld prefix=html %
%@ taglib uri=/WEB-INF/struts-logic.tld prefix=logic %
html:html locale=true
I am also setting
i've tested this with german/french/spanish, should work for polish, here is
the first few lines from a jsp:
!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN
%@taglib uri=/WEB-INF/struts-html.tld prefix=html%
%@taglib uri=/WEB-INF/struts-bean.tld prefix=bean%
%@page
Hi,
I have a question about the validate method on the ActionForm. From my
understanding,
if a validation error is found, you set up a collection of ActionErrors and
return this. This
causes struts to forward back to your input form, correct?
In my situation, I populate a form for
Ok Peter great, but I am using tomcat which gives this errror message when
setting encoding to utf-8
A Servlet Exception Has Occurred
org.apache.jasper.compiler.ParseException: Cannot read file: ze file
at org.apache.jasper.compiler.JspReader.pushFile2(Unknown Source)
at
Mike,
If you have the proper ActionForm class which represent the proper field in
you form and you use the struts html custom tag, your data should come back.
That is one of the best feature of Struts.
Hope this helps
David
- Original Message -
From: Witt, Mike (OH35) [EMAIL
ouch... utf-8 works on WebLogic and WebSphere, i've got tomcat running at
home, let me try it tonight and see what i get. please send me a sample of
your jsp - [EMAIL PROTECTED]
pete
-Original Message-
From: wojtek [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 23, 2002 4:06 PM
Hi
Just some thoughts. You could use the delegate pattern instead of
inheritence. This will help decouple your FormBeans from your DaoBeans.
Keith
-Original Message-
From: Struts Newsgroup [mailto:@[EMAIL PROTECTED]]
Sent: Thursday, 24 January 2002 9:10 a.m.
To: [EMAIL PROTECTED]
Here it goes,
thanks for help.
Wojtek
head.jsp
Description: Binary data
index.jsp
Description: Binary data
--
Myslisz o otworzeniu wlasnego sklepu internetowego?
A moze o wynajeciu stoiska w wirtualnym pasazu?
W Centrum e-biznesu mozesz miec jedno i drugie. Juz od 290 zl za rok.
David, Thanks for you help ...
I'm doing all that you suggest. As a matter of fact, when I submit the form
to
update the database, all the fields in the form are automaticallly set like
I
would expect.
My form is intially filled in with good data from the database. Then I make
a
change
Hi
I am having an issue with html:link tag of struts. I think I don't know how to use
it.
Actually I have a java script fucntion which looks like this
function launchEdit(field, accField, relation, newType)
{
currentField = document.editForm.field;
currentAccField =
Hi -
This is really more of a JSP question, but since it involves struts
tags I figured I'd give it a shot here. I have a page which contains a
form built using the html:form taglib. Based on the users selection from
that form, I go off and do some processing and redirect the user back to
the
I'm developing wizard-type forms using struts. The data I entered
previously doesn't show up when I go back to the previous form even though I
use the same 'ActionForm' for all the wizard forms and I set the scope in
the action mapping to 'session'. What am I missing ?
--
To unsubscribe,
Folks,
I have an application deployed via a .ear file to WebLogic 6.1sp1 on NT and on AIX.
The following code works fine on NT:
sl:present name=hostessDollarInfo property=tables
sl:iterate name=hostessDollarInfo property=tables id=table indexId=i
If we have a proper ActionForm with the same field as our html:form,
validation error retrieves the user entered values.
But if we have a List/Collection of data saved as a property of the
ActionForm
OR as request attribute,
How to retrieve this data, when there is a validation error.
For
i think thats the default behavior for an ActionForm.reset() In your class
that extends the ActionForm, add a reset(). You can leave it empty at
first, and your ActionForm bean in the session shouldn't get cleared. We
use this capability to set initial defaults and to optionally clear values
Some time back, we ran in to a problem between different servers. The
problem, was that for some reason, the definition of the constants SKIP_BODY
and such mapped to different integers. While running your code on one
platform, try to print out the values of the common tag constants such as
Make sure to put your form in the session scope.
-AP_
-Original Message-
From: Sriram Nookala [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 23, 2002 1:47 PM
To: Struts Users Mailing List
Subject: persistance for wizard type forms
I'm developing wizard-type forms using struts.
Assuming your client is using cookies this should work automatically. If
your client has his/her cookies disabled you must make sure to submit a
re-written url as the target for returnTo processing in your other
system.
-AP_
-Original Message-
From: Reid Pinchback [mailto:[EMAIL
Be sure your reset() method is not blindly resetting the properties. The
default reset() does nothing, but people often have it reset everything.
The only important thing to reset() is the checkboxes, since the
browsers do not resubmit these if they are unchecked.
-- Ted Husted, Husted dot Com,
Believe it or not, this is as expected...
The nested extension is not to simply maintain the functionality of the
original, but to provide it in the nested context. If you don't want the
features of the nested context (the default submit tag), then use the
original html:submit
When you use a
The type of include you're using here is a dynamic include. Meaning that
the page to be included isn't simply added, it's compiled into its own
servlet, and the page's context is passed to the included servlet. For
the tags to work in the included servlet, they need all the taglib
imports
snip
Is there a way to get it to display the form as the user edited it?
/snip
Mike,
I'm also relatively new to Struts, and as such am not particularly sure that
I should be posting with an answer, but here goes anyhoo...
I've encountered a similar problem to yours, and my solution was a
whoops - cut too much out, forgot the ctor
public OrderEntryForm( ) {
doReset = true;
defaults();
}
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 23, 2002 5:06 PM
To: [EMAIL PROTECTED]
I would also like to know about anyone else's experiences with JDO.
Martin Farrell wrote:
Hi
I spent a lot of time looking into persistence frameworks and frameworks
following my decision to use struts. i eventually chose to use expresso
because it offered a persistence layer independent
Assuming that your dependent upon data that you've put in the session...
The problem I see you having here is that the request to the external
service could take longer than the session timeout on your application
server. Unless you can guarantee that the turn-around time is going to be
some
Ted Husted wrote:
Be sure your reset() method is not blindly resetting the properties. The
default reset() does nothing, but people often have it reset everything.
The only important thing to reset() is the checkboxes, since the
browsers do not resubmit these if they are unchecked.
It's
Because when you go from one page to another in a wizard, the properties
from the prior page can be reset.
Select boxes and radio buttons would have one value or the other
submitted, and so resetting them is usually not important.
Checkboxes if not set are not submitted at all. Sometimes when
Ted Husted wrote:
Because when you go from one page to another in a wizard, the properties
from the prior page can be reset.
Ah. Whoops. Didn't read the subject line, and didn't get the context.
-Mark
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
- Original Message -
From: Ted Husted [EMAIL PROTECTED]
To: Jakarta General List [EMAIL PROTECTED]
Sent: Wednesday, January 23, 2002 6:52 PM
Subject: Re: Servlet.service() for servlet action threw exception
java.lang.ClassCastException: com.nexgen.signup.SignupForm
The best place to
Is SignupForm subclassed from ActionForm?
Are you sure the action was told to instantiate a SignupForm?
alexus wrote:
- Original Message -
From: Ted Husted [EMAIL PROTECTED]
To: Jakarta General List [EMAIL PROTECTED]
Sent: Wednesday, January 23, 2002 6:52 PM
Subject: Re:
David Geary discusses his Template taglib successor, Regions,
in this JavaWorld article:
http://www.javaworld.com/javaworld/jw-12-2001/jw-1228-jsptemplate_p.html
An alternative approach to layout is to use the
Servlet 2.3 filter mechanism.
The SiteMesh taglib
I've gotten struts installed, integrated, and working in the application
we're building for a few days now. However I want to move the resources
property file somewhere else. It is currently sitting in com.mycomp.pkg:
and the application parameter in web.xml specifies that. I can move it up
I'm not sure what you might be doing wrong, but why not put it in your
build script (like ant's build.xml) to copy the file from the source
location to within the hierachy?
Mike
-Original Message-
From: Bill Page [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 23, 2002 7:57 PM
To:
It needs to be somewhere in the classpath. Each app server uses their own
implementation of the classloader, so it will be dependent on the classpath
of your app based on the server. web-inf/classes is in the classpath, but
the directory above that typically isn't.
-Original Message-
Hi, wojetk
2002/01/24 Thu AM 05:53
wojtek [EMAIL PROTECTED] wrote:
I am also setting request.setCharacterEncoding(ISO-8859-2) in
every possible place !
Where did you put it?
You should put it before request parameters are copied into actoinForm
properties.
You can make a subclass
I figured that was probably what would happen in the case of cookies.
Is there an easy way to deal with the re-written url/disabled cookies case?
I want to be sure the right thing happens whether or not cookies are
enabled.
Thanks!
Alex Paransky [EMAIL PROTECTED] wrote:
Assuming your
Reid Pinchback wrote:
I figured that was probably what would happen in the case of cookies.
Is there an easy way to deal with the re-written url/disabled cookies case?
I want to be sure the right thing happens whether or not cookies are
enabled.
You can just always pass the external
Hi all,
new to the list, so I apologise in advance if this has been asked
already.
I have created a page with a form, that posts to a servlet, does its
thing and
then forwards the request on to another website.
the problem is, when I set the properties back into the request scope,
the server
Hi,
I have exactly the same problem.
I try to convert the chinese in the properties file to unicode using
native2ascii but it doesn't work.
%@ page contentType=text/html; charset=big5 % + native2ascii =
?, all chinese characters becomes '??'.
Anybody can give some more help ?
Best
Hi Dennis Lee,
after you use native2ascii.exe, the encoding become UTF8
so %@ page contentType=text/html; charset=UTF8 % will work
if you want to use big5 you need to convert it before (let say in the
getXXX of javaBean then it will work
From Timothy
Strategus Partners Ltd
-
Hi,
I am trying to use CSS with my JSP pages but CSS does not seem to be
reachable. It works when I bring up the jsp's by themselves but when
invoked through an action, the page does not display with correct fonts.
The jsp code I am using is:
___
%@ page
try using absolute paths... i.e.
LINK REL=stylesheet HREF=/css/bowb_style.css TYPE=text/css
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, 24 January 2002 13:48
To: Struts Users Mailing List
Subject: Using CSS with struts jsp's
Hi,
I am trying
You can use the html:base tag, and then use relative referneces to
stylesheets and other assets.
Though, I'm thinking we could really use a tag for specifying
stylesheets, since the relative references can get to be a pain. The
idea being you could specify a context relative path, and the tag
Subject: Re: Model Persistence Survey
From: Vic Cekvenich [EMAIL PROTECTED]
===
Easy enough to do delegates.
Keith Chew wrote:
Hi
Just some thoughts. You could use the delegate pattern instead of
inheritence. This will help decouple your FormBeans from your DaoBeans.
Keith
This may be a little complicated to explain. Here is a some background info.
I have a page that shows a list of clients (in an html table, not a form)
for a user and a form that lets the user either edit information for and
existing client (by selecting that client from the list) or add a new
57 matches
Mail list logo