Hi Alex!
Have you solved your problem yet? I was facing the same situation a cuple of
weeks ago.
All values from your formbean are sent in the request as parameters when you
press submit - but checkbox values are only in the request if they have the
value on = they are checked. The reset method
Hi,
There're basically two approaches to this problem.
1)Use Javascript on the client side:
You may group each row of table including all its elements into a separate form
without submit button,
and then you can use an independent button in a dedicated form and inside its
onclick()
According to my understanding of the problem, this is really a very typical
requirement
that the Action class needs to pass some information to its view (jsps). All you have
to do
is to set the userid as an attribute of request(or session) scope. And then in the
login.jsp,
you can use
Hi,
I have successfully use String as type for property of checkbox.
It works exactly the way I expected. That is it's initial value is null
and when the checkbox is checked, it will have the value of on,
which is the default of html:checkbox and the html input element
will now have one
Hi,
I have successfully use String as type for property of checkbox.
It works exactly the way I expected. That is it's initial value is null
and when the checkbox is checked, it will have the value of on,
which is the default of html:checkbox and the html input element
will now have
Hi,
definitely works. It is the way I recommend to our programmers.
Makes it easy to prepopulate all the forms on jsp's.
good luck
Alexander
-Original Message-
From: Michael Sabitov [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 03, 2002 12:49 AM
To: 'Struts Users Mailing List'
Hi dennis - not sure - but try,
html:link forward='bean:write name=menu
property=menuAction/'
(using single quote marks).
Keith.
--- Lee, Dennis [EMAIL PROTECTED]
wrote:
Hi ,
I would like to know the way to set a dynamic hyper
link using Struts html:
I am trying to do it as follows:
The Keiuken package is within a larger project called cappucino.
Unfortunately all the docs are in japanese but if you look at the code you
can get the gist
HTH
- Original Message -
From: Jin Bal [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED];
[EMAIL PROTECTED]
Sent:
Hi,
Thanks.
But it still not work.
I found that it works if I use %=menu.getMenuAction()%...
e.g.
logic:iterate id=menu indexId=i name=user property=menus
type=MenuDataBean
html:link forward=%=menu.getMenuAction()%
bean:write name=menu property=menuDesc/
/html:link
/logic:iterate
Any
Hi Alex!
Have you solved your problem yet? I was facing the same situation a cuple of weeks ago.
All values from your formbean are sent in the request as parameters when you
press submit - but checkbox values are only in the request if they have the
value on = they are checked. The reset method
I want to customise the errors messages for invalid data entry.
Where can I get my hands on the html:messages tag?
This tag does not exists Struts 1.0 ?
Or how can use the present tags to iterate through the
error messages?
--
Peter Pilgrim ++44 (0)207-545-9923
Both the options iText and FOP does not work so well for creating large PDF
files. You will end up with getting an Out of memory error. These option are
good if you want to create a few pages. If this is not the case you should
look into the various third party tools available.
-Original
Just create an HTML table with the content you want, and set the
mime-type to application/ms-excel (or something like that, don't know it
by heart). Et voila, the browser opens excel and shows you the stuff.
Won't work if the user doesn't have excel installed, but then again, he
wouldn't be able
Hi all,
Happy new year :-)
I'm currently testing struts-layout found at :
http://struts.application-servers.com/
when deploying on tomcat 3.2.3 i got errors like :
Digester.getParser:
javax.xml.parsers.ParserConfigurationException: Namespace not supported by
SAXParser
at
Geoffrey Mroz wrote:
If I understood you right:
The STARTUP script is in the C:\jakarta-tomcat-4.0.1\bin directory.
If you are not directly in the \bin directory when you run it, you will need
to include C:\jakarta-tomcat-4.0.1\bin somewhere in your path.
Hope that helps.
-- Geoff
Hi,
I have a question about the html: button tag. The discription about the
property attribute of that tag is the following: Name of the request
parameter that will be included with this submission, set to the specified
value.. And additionally the value attribute has the following
description:
How can one accurately detect that a session has timedout? I have a custom tag that is
automatically included on every jsp page we have. Its job is to detect whether a
session has timedout and if it has, to redirect the user to a different page to
relogin or whatever. I think it is the case
Hi Struters,
I have a problem using the logic:equal tag.
I have a bean collection (Array List of value/label pairs of String's - used
in an html:select) and I'm using the logic:iterate tag to iterate over
the collection. Whilst looping over the collection, I want to test to see
if the value
This is how my application is setup. I have step 1-5 and there are before
and after actions for every step. The only downsize is strut will update
the form twice and struts-config.xml is longer. The action classes are
simplier and independent.
-Original Message-
From: Michael
I ripped the guts of the error tag to get at the final errors messages.
This will allow me now to write customised error messages in my JSP
%@ page import=java.util.* %
%@ page import=java.io.* %
%@ page import=org.apache.struts.action.* %
...
ActionErrors errors =
IMHO you should only look to iText if page generation times are under
serious scrutiny or if you're expecting more than 15 pages per PDF file (a
high end box might be able to handle more, I just know that there's a
certain range of pages where FOP just starts becoming dog slow). FOP also
is
Do any of these tools convert from RTF to PDF?
A new session is created before your JSP is serviced, so I think that's why
you're always getting a session object there.
session.isNew() is an indirect but pretty good way of knowing when a session
has just been created, and thus could be because the old session timed out.
You can also put
Ajay:
For PDF Conversions we have used a commercial Software called as
RasterMaster from Snowbound. It does a pretty good job converting formats to
PDF, using API calls from Java. We did have some issues with memory errors
using this tool, but after increasing our Heap memory when the
Hi,
I have a general design question. Assume a web application that represents a
use case over several sites. Each of these sites have form fields. Each site
has a Next and Previous button except the last an the first which only
have either a Next or a Previous button. Additionally there is a
Title: Custom tag performance
For a workflow system, I've created a custom tag (extending the struts BaseInputTag) that combines the functionality of the following struts tags
html:text
bean:message
messages:present
The custom tag has a property attribute and a key attribute (for the field
Struts Console version 1.3 is now available.
http://www.jamesholmes.com/struts/
http://www.jamesholmes.com/struts/struts-console-1.3.zip
This release has a couple of small new features and
most notably adds support for JBuilder 4.
Changes with Struts Console v1.3
*) Added ability to close
Jean-Noel :
I just tried replacing my digester 1.0 by 1.1.1
I got a different error :
Digester.getParser:
javax.xml.parsers.ParserConfigurationException: Namespace not supported by
SAXParser
at com.sun.xml.parser.SAXParserImpl.init(SAXParserImpl.java:60)
at
Also if you are using a Servlet2.3/JSP 1.2 container (e.g. tomcat 4) (not
sure about earlier versions) you can register listener(s) that will listen
for all the session timeouts in the system or write an object into the
session that implements HttpSessionAttributeListener which will be notified
Greetings:
When using the logic tags, I like the Idea that it will access a collection
from a specified scope OR check all the scopes starting with page scope and so
on.
When using the options tag, I get all my lists from the database and store
them in different scopes depending on
I just started tinkering w/ the Javascript tag library package written by
Tom Tessier on jspinsider.com. Basically, it's a tag lib that translates
into some very neat and useful javascript functionality (dynamic color
coding of required form sections, pulldown menus, etc).
I was wondering if
At 15:01 03/01/2002, you wrote:
Hi all,
Happy new year :-)
I'm currently testing struts-layout found at :
http://struts.application-servers.com/
when deploying on tomcat 3.2.3 i got errors like :
Digester.getParser:
javax.xml.parsers.ParserConfigurationException: Namespace not supported by
Hi!
I have several submit buttons on a jsp page and wants to use the accesskey
attribute to decide which submit button that shoul be connected to the enter
key! Can't get it rightAny suggestions???
Thanks in advance!
/Linnéa
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For
I'm trying to use my own pluggable validator.
It gets called but the return to false doesn't make the
error processing take place. Instead, it performs as though it
succeeded.
Here's the code snippet:
public static boolean myTestValidate(Object bean,
The digester still doesn't find Xerces as it tries to instanciate sun's
parser. Could you make sure Xerces is in the WEB-INF/lib directory ? If not
could you check if Struts alone is starting ok ?
Jean-Noel
At 16:29 03/01/2002, you wrote:
Jean-Noel :
I just tried replacing my digester 1.0 by
Hi all.
I am using the XML form of JSP (1.2) and wish to write the equivalent of the
following.
jsp:scriptlet
int myvar = 1;
/jsp:scriptlet
input type=hidden value=%= myvar %/
However this doesn't work as the %= myvar % is only evaluated as an
expression when being passed to custom tags. So
I'm writing my own Validator class and in it, I have the following line:
errors.add(field.getKey(), ValidatorUtil.getActionError(application,
request, va, field));
but my compiler complains that there is no such method: Field.getKey()
1. has this been deprecated? If so, what property do I
I put xerces.jar in WEB-INF/lib but it doesn't change anything.
Error appends when i start tomcat, not while running the webapp.
Tomcat server can't start with struts-layout.
It was starting with struts-example and our struts application...
The first error was a ClassNotFoundException for
Please explain how to configure the window's explorer file extension.
Thanks
-Original Message-
From: Chen, Yong [SMTP:[EMAIL PROTECTED]]
Sent: Thursday, December 20, 2001 4:16 PM
To: 'Struts Users Mailing List'
Subject: RE: Struts IDE
By combining the opentool external
Hi,
I am trying to run Struts application on WAS3.5.3 and facing following
problem. stdout.txt does not show any errors during the startup; all
action mapping are OK. However, when I am trying to load JSP page with form
on it, it gives this error. Did anybody face with this problem before?
make the .jsp page extention default action is Open by dreamweaver
Yong Chen
-Original Message-
From: Thompson, Darryl [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 03, 2002 11:09 AM
To: Struts Users Mailing List
Subject: RE: Struts IDE
Please explain how to configure the
I'm wondering where the source for the client-side validation
is for required(), integer().
thanks.
ken
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
hi,
the stange think is, that I have two applications in my container, both on
struts. But only in the second one is the failure. When I start the server
with java 1.3 both work fine. When I start the server with only the first
application (on java 1.4), it works fine, too. ??!?!?!??
Had
Open Explorer
Click View-Options-File Types-New Type
Enter a Description and jsp for the file extension
Click New... under Actions
Enter open for descripton for the Action and enter the path to Ultradev in
the Application used to perform action box
Click Ok
Select open and click Set Default
I'm
Please review the requirment below if anyone knows of a person who might
be interested in this position please forward this e-mail to them.
The position is going to last at least 6 months and probably for the
balance of the year. It will pay between $55 per hour give or take a
little.
Sorry
I get a similar thing under Tomcat (4.0.1 4.0.2-b1). If I have
multiple applications in my webapps dir, then they break, but each works
when in there on it's own. I am using RedHat Linux and Java 1.4.0-beta3
and W2KPro w/ Cygwin ... same problem in both places.
Simon
Subject: Cannot find ActionMappings or ActionFormBeans collection PROBLEM.
From: nutshell [EMAIL PROTECTED]
===
I have installed Struts Framework Tomcat 4.0 on RedHat 7.0 i386 and have
deployed my web appplication.
Does anyone know what might be the reason why this error appear?
After I try to
Original Message
Subject: [ANN] Struts + Velocity + Tools +...
Date: Thu, 03 Jan 2002 15:48:29 -0500
From: Geir Magnusson Jr. [EMAIL PROTECTED]
Reply-To: Velocity Users List [EMAIL PROTECTED]
To: [EMAIL PROTECTED],Velocity Developer's List
[EMAIL PROTECTED]
Real Soon Now is
It might be that tomcat is unable to find struts-config.xml. Mine is in the
WEB-INF directory.
-Original Message-
From: Struts Newsgroup [SMTP:[EMAIL PROTECTED]]
Sent: Thursday, January 03, 2002 2:40 PM
To: [EMAIL PROTECTED]
Subject: Cannot find ActionMappings or
Has anyone experience a NoClassDefFoundError when running struts in weblogic?
If I place struts.jar in the weblogic classpath, then my application works fine. If I
place struts.jar in the webapp/lib directory then I get a NoClassDefFoundError when
the jsp tries to load an ActionForm for a
Jeremy,
Are you using weblogic 5.1?
I am using weblogic 5.1 and have successfully used struts with sp 9, 10, and
11.
I haven't tried 8, though.
You may want to try a high sp just in case it's related to that.
Anyone else out there use sp 8 ok with struts?
In my experience, if it's a wierd
i'm seeing a similar problem with wls6. i wrote the world's simplest action
class, and the mapping works fine, but when Class.forName is called in
ActionServlet.processActionCreate() i get a ClassNotFoundException. i can't
figure out why the ClassLoader can't seem to find my class. as in
check for jar files in $WLS_DIR\myserver\web-inf\_tmp_war_yourApp . if u
find jar files in that folder it means jar files are loades and in
WEBLOGIC_CLASSPATH, still u have problems use atleast SP10 (SP11) is also
available
Narendranatha R Sajjala,
1800flowers.com
Ph:516-237-4881
As I understand it, this directory will only be created if the webapps is a war file.
If the webapp is unpacked this directory will not exist.
Jeremy
-Original Message-
From: Narendranatha R Sajjala [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 03, 2002 4:31 PM
To: 'Struts Users
Any one has idea about this error?
FATAL: configuration error
org.xml.sax.SAXParseException: The encoding Cp1252 is not supported.
at
org.apache.xerces.framework.XMLParser.reportError(XMLParser.java:1196)
at
We had something similar here. WL 6.0 doesn't support external jars
- this is apparently available in 6.1 (we haven't migrated yet).
Try putting the jars in the WL classpath as well as in the /lib directory.
- JKL
-Original Message-
From: Andre Beskrowni [mailto:[EMAIL PROTECTED]]
Yeah - putting them in the weblogic classpath will definately work. However, I need
to distribute this app, so it is not an option.
Jeremy
-Original Message-
From: Lawrence, Jane K [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 03, 2002 4:49 PM
To: 'Struts Users Mailing List'
I remember reading somewhere (I don't remember where) something about not
putting the struts.jar in
the classpath that that is a bad thing and results in these class not found
problems.
I think the suggestion was that the struts.jar should always be included in
the webapp lib directory for each
There's a comment to that effect on the Struts Kickstart FAQ:
http://jakarta.apache.org/struts/userGuide/kickstart.html#jar
regards,
Rob.
-Original Message-
From: Michelle Popovits [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 03, 2002 1:47 PM
To: 'Struts Users Mailing List'
Jeremy,
This problem can happen if you have left some other jar in the system
classpath (the weblogic classpath) that calls struts. The classloader
order is that the webapp classloader depends on the system classloader.
Thus if a class is not found in the webapp classloader, the system
Does anyone have any advice on debugging jsp pages when using
struts-templates?
Here is a sample stack trace. It points to the InsertTag.doEndTag.
And JSP page maintenance.jsp line 54, but maintenance.jsp has only 35 lines!
Any advice on better exception throwing... or how I can find better
Mark,
You might try going directly to the template-included
page instead, to see what is happening on that page
Change the URL in the browser to something like
app url/accountaccess/te/maintenance.jsp. It might
be that whatever the real problem is will still turn up
outside of the context
Unfortunately, my memory on this problem isn't too good - it
happened sometime last summer. As Michelle and Vincent say,
I remember there being a problem if there were multiple struts
jars floating around, and we had to make sure all were deleted.
But we didn't find any solution other than
Hey, Thanks
That helped... found my bug.
I am still up for anymore good advice on debugging templates!
-Mark
Vaughan Jackson wrote:
Mark,
You might try going directly to the template-included
page instead, to see what is happening on that page
Change the URL in the browser to
Hi Jan
I'm relatively new to struts - but have come from a background of using XSLT
with Servlet2.3 filters.
Have to say this worked great, although as people have pointed out there is
a performance hit. But I found with optimization I could reduce this to a
nearly negligible amount (I also
James,
Isn't the Action's perform() called as a result of the Form's action being
invoked and after the form's validate() method succeeds? What I'm wanting
is the form input fields to be prepopulated with data sent by another Action
so when the JSP form is displayed the fields are all filled
What would be the syntax needed to cause the output of a bean:write tag to
be written into the value property of an html:text tag? I tried the
following, but it never made it past the compiler:
html:text property=userId size=20 value=bean:write name=login
property=userId/ /
TIA.
Jack
--
To
Hi,
It's been quite a long way before I finally arrived at the same conclusion you
guys have reached.
That is use XSLT only for what it is designed for and what it is best at. According to
my experience,
XSLT is great for doing XML to XML transformation. But for complex XML to HTML
I think this sounds like what I am doing. I have a form that performs
an action, the goes to another form, either the same or different but a
new form needs to be set.
Pseudo code:
Form formObject = new Form();
formObject.setId(1);
formObject.setName(NEW);
Request.setAttribute(formName,
Hi,
I can tell u the problems i faced using Xalan XSLT. It forcefully puts all
attributes defined in XSL as
tag attribute= even if they dont have a entry in the XML file. This
feature created problem as HTML is not well formed and also in WML which
wants perfect structured'ness.
Thanks
-
70 matches
Mail list logo