I don't understand why it does not work.
It crashes only when the validate method is called and must return an error.
Is sqlQuery begins with select it works fine and i got to the result page.
Do i need to write a jsp page in case of error? (i already have one where i
forward to when an exception
But what is the specific error ?
- Original Message -
From: DUPRAT Alexandre [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, August 07, 2001 11:31 PM
Subject: RE: Validation a form
I don't understand why it does not work.
It crashes only when the validate method is called and
The way I have solved this problem currently is to create a method in the
form that forwards to the object within the form.
e.g.
public PersonField getPersonField (int index) {
return (PersonField)person.getPersonField(index);
}
It is a work around rather than a fix.
I
I would like to use Struts with an action that is initiated by following a link,
rather the form-based approach that I can see in the documentation. I would also
like the ActionServlet to parse the URI and instantiate my bean with the
information from the URI. Is this possible?
Sorry if this is
[EMAIL PROTECTED] wrote:
I would like to use Struts with an action that is initiated by following a
link,
rather the form-based approach that I can see in the documentation. I would
also
like the ActionServlet to parse the URI and instantiate my bean with the
information from the URI. Is
Excellent, thanks. The information I want to submit is minimal anyway. I'll have
a look at the source.
At 08/08/2001 10:21:08, Gregor Rayman [EMAIL PROTECTED] wrote:
# [EMAIL PROTECTED] wrote:
#
# I would like to use Struts with an action that is initiated by following a
# link,
# rather
Title: struts-config.xml
In struts-config_1_0.dtd there is a note in the data-source section that the use of url, autocommit and so on as attributes is deprecated, you should use set-property instead. How can I use set-property in struts-config.xml?
I have following datasource:
data-source
Now you should write something like that :
data-sources
data-source
set-property property=autoCommit value=false/
set-property property=description value=My Data Source
Configuration/
set-property property=driverClass
value=oracle.jdbc.driver.OracleDriver/
I started using struts config
I just imported all packages into my directory and started tomcat and tried to
run an example jsp
the following errors are seen in the browser
I am unable to fix it out
please help me
Error: 500
Location: /sunanda/header.jsp
Internal Servlet Error:
Hi there,
inside an iterate tag I'm creating multiple textboxes and selects.
to unqiuely identify each item I am appending the index from the iteration
(idx) to the name; e.g.
input type=text name=rate#bean:write name=idx/ maxlength=10
value=bean:write name=limitBean property=rate /
I also
We have a problem using the html:base tag when displaying a Struts JSP Page
under SSL.
SSL is configured on our web server (BEA WebLogic) to listen on the default
port (443).
When the JSP page is displayed in the browser the source HTML code shows the
base tag
with port 80 instead of port 443
Thanks Mark.
Where can I find the struts.jar file with the modification special WAS?
MIKAEL
Mark Wilson [EMAIL PROTECTED] le 07/08/2001 17:48:13
Veuillez répondre à [EMAIL PROTECTED]
Pour :'[EMAIL PROTECTED]' [EMAIL PROTECTED]
cc :
Objet : RE: WEBSPHERE 3.5.4 and STRUTS 1.0:
http://www.enfused.com/struts.jar :)
Chris
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 08, 2001 3:03 AM
To: [EMAIL PROTECTED]
Subject: Re. : RE: WEBSPHERE 3.5.4 and STRUTS 1.0: cant remove
attributes from r equest scope
Thanks
When you use a parameter of a tag, it should be a text or a regexp.
if you write html:select property=lookup#%= idx % the tag
interpretor will see the string lookup# and suppose that the parameter
shouldn't be evaluated.
To do this you should write this : html:select
property=%=\lookup#+idx\%
When the app starts I put all the lists which are vectors into the
application session. I do this by getting the servletcontext object and
putting the vector into there.
Alex
*
Date: Tue, 7 Aug 2001 12:41:11 -0700 (PDT)
To: Struts [EMAIL PROTECTED]
From:
Hi all,
I just signed up and looking for some tutorials on struts.
I installed it on Linux with Apache-Tomcat config.
There is a sample application in there, however it would be maybe easier to
go through some tutorials first.
Any suggestions ?
Also, I'm in the process of doing a little web
Hello all,
I downloaded Struts last week and have enjoyed playing with it. I've come
upon a design problem and I was hoping some folks on this list could help
solve it. I've had no luck finding an answer in the mail archives.
I want to maintain a list of songs. Through a web interface, I want to
Yes you can do the add/edit all on the same form. If have a database
generated code or key you can put that in a hidden field. When in the
action examine the form or request obj to see if that key is there, if it is
you have a modify, if not add the record.
Have you page that lists the songs
Has anyone using Poolman configured it properly for Tomcat 4?
Since it supports both JNDI and a static call for retreiving the
datasource, it works well with layered applications. I have it running
under Tomcat 3 well enough. But configuring it to play nice with Tomcat
4 is eluding me.
I have
eom
--- Pham Thanh Quan [EMAIL PROTECTED] wrote:
You may use this
html:form
...
input type=image src=your_image
/html:form
Quan
- Original Message -
From: Long Zhao [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, August 07, 2001 5:21 AM
Subject: how to create a
using the strut tag library does any one no of a way of making two radio
buttons in the same group ie click one deselects the other one
thanks
**
This email and any files transmitted with it are confidential and
intended
Hi,
I need a bit of advice on how to implement the following. I am creating a
page that holds a list of item names along with their description. So far I
created a vector that holds an array of items and then passes it to a Struts
page in the request scope. The page then iterates the array and
Hi All,
I have sketched out the frame work for my web application. I have configured
my Struts .xml files and put this in my Tomcate 3.2.2 and compiled this and
this has worked.
The question is what I am doing the correct way of building a web
application and if not which is the professional
give them the same name.
--- Rachel Warburton [EMAIL PROTECTED] wrote:
using the strut tag library does any one no of a way of making two radio
buttons in the same group ie click one deselects the other one
thanks
**
Hi All,
I have seen how database.xml works with Struts-example.war and that was
good, but I would like to test the same sort of database on Access .mdb
If I put dummy data into the .mdb, where do I put the .mdb? do I put this in
the WEB-INF section with the other .xml files?
I have created a
I have a form like this:
html:form action=/*/doSomeThing.do
..
input type=image src=button_saveAndContinue.gif
input type=image src=button_saveAndGoback.gif
/html:form
how can I make the first button do doSomeThing.do?action=continue and
the second button do doSomething.do?action=goback
Hi Ted,
In my Tomcat 3 configuration, I put poolman.xml in the WEB-INF folder. Then
you have to add this folder's path in the classpath, see my classpath from
Tomcat.bat:
set
CP=%CP%;D:\Projects\MyApp\Source\webapps\regbl\WEB-INF;D:\DevTools\JTA\jta.j
My link is:
html:link page=/createStakeholder.do?action=createbean:message key
=index.createStakeholder//html:link
it works, but the URL shows:
http://localhost:8080/dne-struts/createStakeholder.do?action=create
no jsessionid :(
Any hints appreciated!
Thanks,
Brian
Here's my
As another data point, I use resin and tomcat3. I typically configure poolman
locally for each web app. That is, I put poolman.jar into each WEB-INF/lib
directory and an application specific poolman.xml into each WEB-INF/classes
directory. Things also work if I configure poolman globally by
html:image src=../../images/sendandsave.gif property=guess/
results in
input type=image name= src=../../images/saveasdraft.gif
which is not what I'd expect from looking at the source for ImageTag:
public int doEndTag() throws JspException {
// Generate an HTML input type=image
use the same property name
example:
html:radio name=dtActionForm property=defaultTime value=5 nbsp;5
Minutes
nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;/html:radio
html:radio name=dtActionForm property=defaultTime value=10 nbsp;10
Minutes
nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;/html:radio
html:radio
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 08, 2001 11:13 AM
To: [EMAIL PROTECTED]
Subject: ALERT From InfoWorld: New virus spreads using Acrobat files
INFOWORLD ALERT: SECURITY
To follow up my last message:
jsessionid is now being passed from index.jsp to my next form:
CreateStakeholder.jsp. CreateStakeholder.jsp does not seem to recognize
jsessionid when it is sent, and does not re-write the link tags.
Hi all...
I want to write an Action that will add mappings to the ActionServlet on the
fly. Am I correct in thinking that any ActionMappings and such that I add
in this way will not be persisted, and that I also have to modify
struts-config.xml if I want the mappings to be available for
Ahh, the poolman.xml under classes! I was trying it in lib .. so this
did help, William!
And it works just as well under Tomcat 4, so I'm back to having no
CLASSPATH again!
-Ted.
William Jaynes wrote:
As another data point, I use resin and tomcat3. I typically configure poolman
locally
Ted,
I just installed Tomcat4 and got poolman to work for me. As I said, my typical
setup is to have poolman.jar in each WEB-INF/lib and poolman.xml in each
WEB-INF/classes. After setting up tomcat4 for struts (copying jaxp.jar and
crimson.jar from /tomcat4/jasper to /tomcat4/lib) and for poolman
Ted Husted has links tutorials, example webapps, and
code (custom tags, etc.).
http://www.husted.com/about/struts/
A Walking Tour of Struts (at the bottom) walks you
through the Struts example webapp.
http://www.husted.com/about/struts/scaffolding.htm
If you want to stay pure MVC, then you
Hi,
I have a a JSP page, on which I have loaded a couples
of images, eventhough the images loaded all the images
correctly, I till get the following error messages,
Can you tell me why? thank you very much
Binh
2001-08-08 11:18:48 - Ctx( /templates ): IOException
in: R( /templates +
Hello All,
I've been working with Struts for sometime now, but now I run into another
question. Has anyone had any issues with Struts not being scaleable? Have
you performed any stress tests on your applications? I really like Struts,
but I'm getting feedback from other developers that don't
One way would be to have a hidden field in the form named action, and
then have some JavaScript event handler on the two image buttons that set
the value to be transmitted for the action property to either
continue or goback appropriately.
Essentially, this is the same thing you would do with
Windows are a client side thing, so you deal with them in Struts the
same way you do with static HTML.
* You can specify a target attribute on the form, which will cause
the response to be displayed in a window identified by the target
value.
* To open a window with no decorations, you'll
The jsessionid path parameter will only be added if the servlet container
does not know whether your client supports cookies. How Tomcat handles
this (probably typical of others):
* On the first response in a session, send the session id
both ways (cookie and encoding).
* If the subsequent
On Wed, 8 Aug 2001, Becky Moyer wrote:
Hi all...
I want to write an Action that will add mappings to the ActionServlet on the
fly.
It's kind of fun to do stuff like this :-), but there's a standard action
already available for you -- check out the
I am moving a Struts-based application from WebLogic 5.1 to 6.1 and I am
encountering some strange errors. Has anyone else seen this behavior before,
or know what might be causing it? I have a Collection of beans I am trying
to iterate through using the Struts iterate tag (works fine with
RequestUtils is using introspection on your form bean class to match the
name you placed in your html:text tag with a bean method name. So, if you
had:
html:text property=requestDate
Your form bean should have: String getRequestDate()
andvoid setRequestDate(String)
There is no way to approach this problem as you currently are. You should be
able to achieve the same effect however, but you will need to restructure
your approach. Not knowing the details of you situation I would advise you to
think in terms of having an action initialize your action form
Hi,
We have being using struts for a while now. We got it running on VAJ 3.5.3 .
Also, on Websphere 3.5.3 on NT box. But now when time for actual deployment
came ( which is on AIX Box ) , struts is giving a hard time . We are getting
following error :
[01.08.03 16:12:21:326 EDT] 6a64e3f8
The Bean class does have a matching get method for the specified property.
This is why I don't understand why I am receiving this error...
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 08, 2001 4:45 PM
To: [EMAIL PROTECTED]
Subject: Re:
You're Bean class does not extend ActionForm..
[EMAIL PROTECTED]
I'm having trouble getting the setter methods of an indexed property of my
formbean to work (despite some postings on this list). It's driving me nuts.
So what I'm trying to do is use a String property of my formbean (actually a
List of Strings) as an indexed property.
===
JSP
===
Why is the Formbean Reset() method called on every pass, regardless of scope
(request vs session).
This makes prepopulating a form a bit awkward.
TIA
Marcel Maré
WebToTheMax
Craig, or anyone,
Has anyone actually gotten the below xml inclusion mechanism to
work using struts and tomcat 3.2.1? I searched other
messages about this in the archives and none of the authors
were successful. I always get a parse error like:
che/struts/resources/web-app_2_3.dtd'
Parse
Why is the Formbean Reset() method called on every pass, regardless of scope
(request vs session).
This makes prepopulating a form a bit awkward.
TIA
Marcel Maré
WebToTheMax
I'm having trouble getting the setter methods of an indexed property of my
formbean to work (despite some postings on this list). It's driving me nuts.
So what I'm trying to do is use a String property of my formbean (actually a
List of Strings) as an indexed property.
===
JSP
===
Something fishy going on here (duplicator worm? ;-)
Marcel Maré
WebToTheMax
Marcel,
I walked through code example submitted by Warwick Boote to get past
issues/concepts with setters for indexed properties. The only change I
made was to add a second field to the form. So, if your list is named
properties, you would have second field on the form called property also.
When is the new release of struts coming out (I really would like to use the
logic:notEmpty tag)? What happened to PropertyUtils in the nightly builds?
Kimberly MacKellar
Thomson Financial Publishing
[EMAIL PROTECTED]
I've seen Craig posted how something like
html:image page=/images/a.gif/
will get translated to
img src=/myapp/images/a.gif
But I need to create a context-sensitive URL in Javascript. The reason for this is
that
there are multiple buttons on my form/page and in the action
Did you try html:base/?
Randall
Parker
I am new to struts and am having a bit of trouble getting multiple
datasources working. I have two datasources defined in my
struts-config.xml. The documentation is unclear on how to define an
identifier for each datasource.
The other problem is how to reference the datasource in my action
On Wed, 8 Aug 2001, Marcel Maré wrote:
Why is the Formbean Reset() method called on every pass, regardless of scope
(request vs session).
This makes prepopulating a form a bit awkward.
Because it is the only practical way I have found to deal with the
funkiness of HTTP with regards to
My ... in the second line needs to be replaced by the usual public and
system identifiers -- I pushed SEND before I went back and looked them up
in the docs :-(
Craig
On Wed, 8 Aug 2001, Daniel Toms wrote:
Craig, or anyone,
Has anyone actually gotten the below xml inclusion mechanism to
On Wed, 8 Aug 2001, MacKellar, Kimberly wrote:
When is the new release of struts coming out (I really would like to use the
logic:notEmpty tag)?
If you're planning on waiting for a 1.1 release, we haven't really talked
about it yet. I know there's quite a bit of stuff yet to integrate - in
Hi all -
I am facing a weird problem, which I could not solve
in the last couple of hours. I checked up the
mail-archive but could not locate any solution to
this.
The application has a login screen (login.jsp), which
validates a user. There is an ActionForm (LoginForm)
with appropriate get and
This is a consequence of the JavaBeans introspection mechanism. The getter
and setter must be getting and setting the same type for them to be
recognized as property accessors. See the Introspection chapter of the
JavaBeans spec for more details.
--
Martin Cooper
- Original Message -
If you are just trying to determine whether or not there are outstanding
errors to be displayed, you should look for the ActionErrors object, which
is stored under the key Action.ERROR_KEY.
--
Martin Cooper
- Original Message -
From: Hartmut Bernecker [EMAIL PROTECTED]
To: [EMAIL
The Struts answer to both of these questions is use an Action. The Action
classes are where the various pieces come together.
In the first case, your action will invoke methods on business-logic objects
and populate the form with the results. Then it will forward to the
appropriate JSP page to
On Thu, 9 Aug 2001, Jeffrey Bird wrote:
I am new to struts and am having a bit of trouble getting multiple
datasources working. I have two datasources defined in my
struts-config.xml. The documentation is unclear on how to define an
identifier for each datasource.
The other problem is how
You don't have to create a form bean if you don't want or need to. In your
example, the form bean would only have one property, and that property came
directly from a link (minimizing the risk of invalid values, and hence the
need for validation in the form bean), so you could just use
Hi,
I am new to struts and for past one week I am trying to find tutorials and
materials regarding struts.
The only thing I got is some tutorial in jspinsider.com.
I understood the model of struts, but when putting it in to code, I am
facing problem at very basic step.
All I see in tutorials is
You must not have visited the Struts home page, which should have been your
*first* resort. :-)
http://jakarta.apache.org/struts/
There you will find:
* A link to the Struts User Guide
* A 'Resources' link, which will take you to a page listing several
tutorials and articles on Struts.
* An
The following might help you.
ramakrishna.
*
Ted Husted has links tutorials, example webapps, and
code (custom tags, etc.).
http://www.husted.com/about/struts/
A Walking Tour of Struts (at the bottom) walks you
through the Struts example webapp.
Thanks a lot,
And I did visit the home page for struts(and that's where the problem
started).
Let me explain u the doubts which I had going thru the page:
1) All the downloads had 2-3 versions (for example, ANT, it had binary
release, source realease and some RPM),
which one I have to download,
I am trying to run Struts from weblogic in VAGE 3.5 Enterprise edition
but I fail to run first example. Is there anyone who could use Struts in
VAGE by using Weblogic.
I got first applicatin is running at weblogic but when I try to reach
index.jsp, I get a SAX parser exception..
Here is the
Hello,
I have been playing with struts for the past couple of months and I have
had fun playing with it. Time has come now to stop playing and get serious.
I have been asked to develop a web app with Struts Tomcat. I have been
using Weblogic for the past couple of years, but this is my first
75 matches
Mail list logo