The opening tag should read like this (note the lack of the terminator):
It looks like this is a bug in the docs.
Also, be sure you include a reference to the logic TLD in the JSP page.
--
Dan Miser
http://www.distribucon.com
- Original Message -
From: "Christof Ettl" <[EMAIL PROTEC
The and tags do this. They are documented
here:
http://jakarta.apache.org/struts/struts-logic.html
Hope this helps.
--
Martin Cooper
- Original Message -
From: "Yuriy Zubarev" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, March 30, 2001 1:02 PM
Subject: bean in session
The getSalesProductHt() method must be public for the iterate tag to be able
to access it. You have it declared as protected, which is why you are seeing
the exception.
--
Martin Cooper
- Original Message -
From: "hunkpapa" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, March
That was fixed fairly recently. The latest nightly builds do the right thing.
--
Martin Cooper
At 03:24 PM 3/30/01, Jacob Thomas wrote:
>does not seem to output the "value" attribute of the corresponding tag.
>Has anybody encountered this? -- Thanks Jacob
Hi All,
Is there any specific reason oci8 will not work with iPlanet?
I have used the Oracle oci drivers before and all that is required is a
client install of Oracle on the box that will be accessing Oracle. All
"OCI" means is the JDBC drivers will be using the native SQL*NET drivers
(from the
I was wondering how to retain a reference to the first object created with
the Digester. I don't quite understand the user's guide. It says to push
the object onto the stack before parseing. When I do this I get an End
event threw exception java.lang.NoSuchMethodException. Any ideas?
Hi,
I havea requirement of 8 file attachments in a page.Is there
any way that i can have FormFile[] in FormBean. Currently i have
file1,file2,file3 etc in form class and it does not look good.
Thanks,
Peri
Yes, your correct, I meant oci8. Too many cups of Java. :)
The issue with connection pooling depends on your production
environment. For instances, if you plan to deploy to iPlanet,
you can NOT use oci8 directly, you have to use thin, or use
iPlanets connection pooling. iPlanet will not
Hi
Azeem,
I
think I attached all needed files. I just renamed them and deleted everthing not
needed for log4j.
-
Startup-mailinglist.java:
Contains public void init(ServletConfig config) which
is called during servlet initialisation. This method calls private void
initLog4J( Properties
does not seem to output the "value" attribute of the
corresponding tag. Has anybody encountered this?
--
Thanks
Jacob
Rainer
You forgot to attach the routines and log4 J config file. I am new to both Struts and Log4j.So what it is coming down to is you define init params in one of the routines you are talking here and then reference them in web.xml, so it gets registered with controller servlet. Could you send a
Absolutely,
Well done, and a very worthwhile contribution.
> -Original Message-
> From: Ted Husted [mailto:[EMAIL PROTECTED]]
> Sent: 30 March 2001 14:14
> To: [EMAIL PROTECTED]
> Subject: Re: JUNIT and Struts
>
>
> Vincent and Ron have been working on some things. Take a look at the
>
Hi
Jon,
we set
up a startup servlet, that initializes our application. This is very simple and
basically just calls various init routines. (No subclassing) After that the
ActionServlet is called.
All
applications use init.props to get up and running. The same with log4j. I have
attache
I am wondering if there is a way to call actions without going through the
struts-config.xml. For example if i have just action-mappings in an xml
file similar to what is in the struts-config, and parse the xml with the
digeseter, am I able to call actions this way? if so how. thanks
So your suggesting subclassing the default
controller, org.apache.struts.action.ActionServlet, to override only the init
method? Also, I'm not familiar enough with the web.xml format as to be
able to configure the org.apache.log4j.PropertyConfigurator. How would one
do this?
Thanks,
Jon
Ted Husted has gracially put a copy of my Struts compatible menuing
component on his site at http://husted.com/about/struts. Thanks Ted.
The basic overview:
Menus can be modeled in an XML file and displayed by JSP via tags. The
strings used to display the menus in HTML are contained in a prope
I do appreciate the suggestions presented to me. Let me share with you how
I solved the problem.
It was actually quite simple. I simply added the following line to my
resin.conf (I'm using resin, but the same type of solution should work for
anything) file:
That way I can still keep the
Hello friends,
I would like to ask if someone knows how to check for some bean
presence/absence in jsp page by means of tags.
Thank you for your time.
Best of luck,
Yuriy Zubarev
___
Do You Yahoo!?
Get your free @yahoo.ca address at http://
It was a small mistake
Yes,
In the init() method of the controller servlet define all your categories and
give them a priority. You may also want to put the categris in web.xml so
you can read them in runtime and thus be able to change the log detail level
(i.e. only ERROR log messages) when you are in production.
Has anyone used log4J with struts. If so, how did you do it. Do you need to register log4j with controller servlet?Get your FREE download of MSN Explorer at http://explorer.msn.com
Dallas,
We chose to do option 1. We found it to be the most flexible.
For instance, we use a javascript confirm to ask the user: 'Are you sure you
want to delete widget XYZ?'
Where XYZ is the item he clicked on. The rest of the text is
internationalized.
HTH,
Pete
[EMAIL PROTECTED] w
Hello,
I have the following Problem
I putted a Bean in the ActionServlet in the Scope "session".This Bean
implements
an Hashtable(salesProduct) ,wich I want to iterate with the IterateTag
"
.
"
This throws following Exception:
"
No getter method for property salesProductHt of bean sp
"
Has any one tried populating a property in an ActionForm bean that is an
array, through the default handling of a request? This is about presenting
serveral choices on page each of which has a checkbox and then determining
which choices were selected by the user.
--
Thanks in advance.
Jacob
Let's say you have an alert box that has a message. You want that message
to be internationalized. Let's also assume that you want your JavaScript
source to not be in the jsp/html page, you would rather link to it (i.e.
How it is deployed in production and how you develop will probably look
different. I prefer to have a tree such as:
Project Name
- build
- dist
- doc
- src
- bin
* stuff for building app (you should use ANT IMO) or
other exe
Title: CVS directory structure
I am trying to figure out the CVS directory structure for a large multi-component web application.
I know that the Servlet/JSP specs prescribe a certain directory structure that is used to build war files. I am interested in knowing if any of you have added to
Thanks everyone
I opted for mm.mysql v2.0.4. I have had
no problems so far.
James
I need some extra functionality of these two tags. These tags limit what you
can use for the "value" attribute to a static value. It would be nice to use
the value of a bean or a dynamic property for this. For example:
Currently:
">
It would be great to do something like this:
Would something
Hi,
My application works great with struts version 1 of 1/29/01 but now I want to move to
the latest version of struts and its not working. No changes have been made to the
application itself. I have tried even beta 1 version and other versions after that but
no luck.
The problem seems to be
thanks for all your great advice!
-Original Message-
From: Doug Wright [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 28, 2001 4:50 PM
To: [EMAIL PROTECTED]
Subject: using struts in a load-balanced environement
I am very curious about whether the struts framework could be
app
There is an article in last months Java Pro that shows
how to define menus in xml and then generate
javascript menus based off of them. I just tried to
look at it and it doesn't work (generating an
Exception) and I also had to fix the web.xml file to
even get it running. Maybe some of the code w
thanx all...got it...i just had to type cast the form varible
to "MyBean" which is passed in perform method..and then call getter...
thanx again..
Nishit
-Original Message-
From: Assenza, Chris [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 30, 2001 11:11 AM
To: '[EMAIL PROTECTED]'
Subj
I like this description, mainly because it sounds like what I have been
doing. Something like this might make a good section in the documentation -
Struts & EJBs. I would consider the stateless session beans part of the
model because they contain business logic. You also talk about "basic value
ch
Check out the sample app! :) Here's the code for the logon screen that gets
the data from the ActionForm.
String username = ((LogonForm) form).getUsername();
String password = ((LogonForm) form).getPassword();
LogonForm is the name of the Form Bean and form is from the arguments
ok..
so i am upto this point..
I have perform method in ProcessMyBean.java
it has four aguements : ActionMapping mapping,ActionForm
form,HttpServletRequest request,HttpServletResponse response
so how do i get the reference of "MyBean" in this ProcessBeanClass without
creating new object of "MyBe
- Original Message -
From: Tom Miller <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, March 30, 2001 3:33 PM
Subject: Re: JavaScript in Struts
> Thanks, Ted.
>
> I like Craig's suggestion about combining dynamic Javascript menu systems
> with Struts. I wonder if anyone has tr
I did a quick look and found this:
http://coldjava.hypermart.net/servlets/escape.htm
useful for WAP/WML developers - converts on the fly HTML to WML
http://coldjava.hypermart.net/servlets/wapdtd.htm
Writes a standard WAP DTD header for your wml file.
http://coldjava.hypermart.net/servlets/w
Hi James,
I use the archive mm.mysql-2.0.4-bin.jar, got it at
http://www.worldserver.com/mm.mysql,
works quite fine...
Dimitris
>
> I want to use MySQL with Struts. Although not a Struts specific
question, what jdbc driver is the best to use. I downloaded the driver
from caucho and notic
Yes, use the org.gjt.mm.mysql driver. But be sure to get 2.0.4 (or later if
it exists).
-r
- Original Message -
From: James Bell
To: [EMAIL PROTECTED]
Sent: Thursday, March 29, 2001 23:59
Subject: MySQL
Hi everyone
I want to use MySQL with Struts. Although not a Struts specific quest
Can i get the exact Exception.In addition to the suggestion about the server
logs, turn off the "Show friendly HTTP error messages" option in IE. It's in
Tools | Internet Options | Advanced.
--
Dan Miser
http://www.distribucon.com
- Original Message -
From: Tewathia, Atul
To: [EMAIL PROTE
Tom,
Here is another JavaScript fly-out type tree menu:
http://developer.netscape.com/docs/examples/javascript/menu/menu.html
Bill Hines
Hershey Foods
-Original Message-
From: Tom Miller [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 30, 2001 8:34 AM
To: [EMAIL PROTECTED]
Subject: Re: J
I think what was meant was oci8. The valid values are thin, oci8 and kprb.
The thin driver is entirely written in Java.
The OCI is a mixture of C and Java, so that is the reason it can't be used
in applets, since the C portion is not platform independent.
The kprb is for, as the docs say
>- Original Message -
>From: Marcin Baj <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Friday, March 30, 2001 2:37 PM
>Subject: iterate tag, once again
>
>Hello,
>I've read themessage:
>
>You must use to introduce a reference to an existing bean, if you wish
>to reference that bea
Thanks, Ted.
I like Craig's suggestion about combining dynamic Javascript menu systems
with Struts. I wonder if anyone has tried this. I'm looking for a Javascript
tree or slider menu to adapt in this way and would appreciate it if anyone
could share any research.
I have looked at "Morten's Java
Usually the web server will have logs where you
can get more information. Apache, for example, has error
and access logs. You should look at both to help figure
out what is going on. The other way is to try and run
the code standalone, without the browser. And your
server system may have logs too
Title: tag libraries
Does anyone know if they have tag libs for anything besides HTML? Are there any tig libs for WML or HDML out there?
Thanks,
Jesse Vitrone
Vincent and Ron have been working on some things. Take a look at the
web/test directory in the nightly build.
Vincent is also in midst of donating J2EEUnit to Apache/Jakarta. Yeah
Vincent!
> Padma Ginnaram wrote:
> Is there a sample available for testing struts with j2eeunit
I believe the message resource is implemented as a hashmap. The resource
is loaded into memory for each locale (when 1 or more users need it),
and so storing a relatively big amount of text this way may be unwise.
You want to determine the locale within your view and then display or
include the
Title: Can i get the exact Exception.
While experimenting with struts I generally get following error on the browser.
Error 500--Internal Server Error
It makes debugging difficult.
Is there a way for me to see the exact Exception on the browser that has occurred ?
Hello,
I've read themessage:
You must use to
introduce a reference to an existing bean, if you wish to reference that bean
with other standard JSP tags (such as or
). If you only wish to reference such beans with other
Struts tags, use of is not
required.
,so I thougth, that I shouln't
I also use the mm driver (with jRelation Framework (jrf)) and have never had
any problems
-Original Message-
From: Ted Husted [mailto:[EMAIL PROTECTED]]
Sent: Friday, 30 March 2001 14:16
To: [EMAIL PROTECTED]
Subject: Re: MySQL
I use Mark Matthew's driver < http://mmmysql.sourceforge.
I use Mark Matthew's driver < http://mmmysql.sourceforge.net/ >, which
works well with Resin (and everything else under the sun). Caucho even
puts it in their own examples.
> James Bell wrote:
>
> Hi everyone
>
> I want to use MySQL with Struts. Although not a Struts specific
> question, what
My code like this:
---
<%
{
java.util.Hashtable ht = new java.util.Hashtable();
ht.put(new Integer(1), "First");
ht.put(new Integer(2), "Second");
ht.put(new Integer(3), "Third");
pageContext.setAttribute("ht", ht, PageContext.P
neither ora8 nor ori8 doesn't work.
I receive exception
java.sql.SQLException: Invalid Oracle URL specified: OracleDriver.connect
rz
- Original Message -
From: "malcolm davis" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Thursday, March 29, 2001 9:33 AM
Subject
Here are some utility methods I use for date validation and rendering to and from
strings. Nothing
fancy.
- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, March 29, 2001 2:53 PM
Subject: Validating dates
>
>
> Does anyone have a code example for va
Hi Craig,
I tried the first example (servlet.findDataSource(null);) but get the following
error when compiling
my source:
"LogonAction.java": Error #: 314 : cannot access class javax.sql.DataSource;
neither class nor source found for javax.sql.DataSource at line 75, column 13
Can you please
I see, you are using the html:image tag not the html:img tag. Looking at the
source for the latest version (the version in 1.0b1 is broken) there is a
bug that stops the altKey attribute working.
I have reported it to bugzilla. See
http://nagoya.betaversion.org/bugzilla/show_bug.cgi?id=1155
58 matches
Mail list logo