Have you tried:
bean:write name=numberOfArticles scope=application /
-AP_
http://www.alexparansky.com
Java/J2EE Architect/Consultant
http://www.myprofiles.com/member/view.do?profileId=127
-Original Message-
From: Juan Alvarado [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 11, 2002
Dear All
In my jsp page, I have a checkbox named Select All that will automatically select
all the checkboxes that are loaded dynamically according to the number of records I
have in the database. And I'm trying to do this using javascript like the following:
function CheckAll(){
var len;
You should be able to do that. In-fact, that's one of the ways to re-use
common page presentations. If you do your job write, then your main page is
composed of a bunch of includes to render different parts of the result
"tree". Be-careful, however, the last time I checked the nested tags only
Your first statement,
...I have a form that can have N number of images...
Does not warrant the use of nested tag library. Simply use the standard
iterator, and indexed properties of the html:file tag, to properly output
your file names as file[1], file[2], file[3].
-AP_
The nested tags as of probably a month and a half ago, the nested tags
penetrate dynamic includes.
I tried to mail the few (but vocal :) people that were throwing things
at me to get it done, you may have been the one that got away. Apologies.
Putting up a tutorial on my site tonight to show the
.jsp pages have access to the a reference named application from which you can gain
access to
objects stored in your servlet context. I believe you should use the following method
to access
context scoped objects within your jsp pages.
You can extract the reference to your treemodel with the
You can write your own ComplexMenuItem as you suggest. Enable it by specifying its
class name in the
item tag :
item value=Administration
link=/administration/index.jsp
subListName=submenu
classtype=de.cas.bmon.beans.ComplexMenuItem
Also, you need to
The problem is now resolved with Struts 1.0 and tilesForStruts1.0.jar.
You should be able to use directly action ... forward=aDefinition / in
Struts1.0 as well as in Struts1.1.
Cedric
[EMAIL PROTECTED] wrote:
Hi,
After searching the archives and receiving helpful suggestions from
This should have no effect as the name attribute in the struts html tag
relates to the bean to be used the name is derived from the property tag;
e.g. This tag;
html:checkbox name=Clintons property=Bill value=Hilary /
results in this HTML
input type=checkbox name=Bill value=Hilary
-Original
for the last 4 months and don't mind it. I see it as a poor
mans EJB.
Poor man's EJB ? :-)
No, EJB deals with very different problems.
Also, seems like Struts is more useful for smaller
companies and EJB is
more suitable for large corporations. Is this pretty much a valid
Subject: logic-tags related to beans not derived from ActionForm?
From: Johannes Wolfgang Woger [EMAIL PROTECTED]
===
Hallo,
I need logic:equal/present etc. etc in my application
to make them more dynamic depending on the permissions of a user. The
information for these tags
should not appear
Title: Message
html:link page="/dotest1/test"
html:img
src="javascript:void(0);" linkName="assess" width=97
height=32 border="0"/html:link
it is giving me the
following error.
Attribute value
should be quoted, stack: org.apache.jasper.compiler.ParseException:
an example of same
type
width=97 height=32 border=0 /html:link
--
Peter Pilgrim ++44 (0)207-545-9923
Swamped under electronic mails
Message History
From:
html:link page=/dotest1/test
onmouseover=assess.src='/myimages/images/ing_3_f2.gif'
onmouseout=assess.src='myimages/images/ing_3.gif'
html:img src=/myimages/images/aessing_3.gif width=97
height=32 border=0//html:link
You needed quotes on the sizes and linkName is not a valid attribute
In the world of software, standard and stable are two very different
things and if you don't know enough to articulate the difference between
them, you had better find another line of work and not expect people who do
know the difference to read your mind.
Mark
-Original Message-
From:
A sodium hydroxide-based cleaning agent; most social situations.
Mark
-Original Message-
From: Yugandhar_Reddy [mailto:[EMAIL PROTECTED]]
Sent: Saturday, April 13, 2002 3:27 AM
To: Struts Users Mailing List
Subject: RE: Soap and Struts
Hi,
Cud u please tell me what a SOAP is and where
Yes, of course, it's possible. There is no requirement that class you work with must
be derived from ActionForm.
A class derived from ActionForm is a bean.
Logic tags also can work with cookies, request headers etc. ( see doc. of logic tags
)
I'd suggest you to create some JavaBean ( in
Thank you Maris,
exactly what I needed. I suppose that is the way to
overcome the restriction that an Action can have only one
ActionForm.
Wolfgang
- Original Message -
From: Maris Orbidans [EMAIL PROTECTED]
Newsgroups: Struts
Sent: Monday, April 15, 2002 1:29 PM
Subject: RE:
Hi,
I have this piece of code on my JSP:
Script language = javascript
function fnGetStates()
{
country = document.searchAcctForm.cboAcctAddrCountry.value;
alert(country);
document.write('% Hashtable states = new Hashtable(); %');
Title: Message
how to make a radio
button checked by default in group of radio buttons?
html:radio
property="affiliation" value="C"/ Cbrhtml:radio
property="affiliation" value="P"/ Pbrhtml:radio
property="affiliation" value="U"/ Ubr
how to make the
first one checked?
Thanks and
Regards
I don't know exactly why you want to do that ?
Why don't you use
% Hashtable states = new Hashtable();
states = Combo.getStates(country);
%
and then you use
Country: %=country.toString()%
You don't need to use this javascript stuff, cause the disadvantage
is that you execute this
Hi everybody,
I wanna know if is it possible to use setRedirect and add parameter
like in request.senRedirect(htpp?...)
Thanks
Regards
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Nope
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 15, 2002 2:40 PM
To: [EMAIL PROTECTED]
Subject: Add parameter to a setRedirect
Hi everybody,
I wanna know if is it possible to use setRedirect and add parameter
like in
If I understand what you're tryin to do, you want your Javascript code to
write JSP scriptlet (?)
Javascript is executed on the client, instead JSP code is executed on the
server. So a scriptlet can dynamicaly generate javascript code, but the
oposite has no sense.
You cannot execute any JSP
Why don't you try it like this,
your Option list could be derived from a collection which is stored as an
attribute of the page.
Each time you select a value you can call a javascript funtion which filters
this collection.
Maybe your data is stored like that
germany.bavaria.nuremberg
I am having the same issue. The docs are no help.
On 4/15/02 8:36 AM, Muthukumar Subramanian [EMAIL PROTECTED] wrote:
how to make a radio button checked by default in group of radio buttons?
html:radio property=affiliation value=C/ Cbr
html:radio property=affiliation
Hi Oliver,
The main issue here is that I don't want to reload the page.
Is there some way this could be done without reloading the page ?
Thanks
Sanjeev
-Original Message-
From: Oliver Reflé [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 15, 2002 6:26 PM
To: Struts Users Mailing List
Nope not with JSP's. The problem is that the jsp
is generated on the server side. So each time you
want to change something dynamicly you have to reload
the page, so the container can build up the correct
static page.
So for that problem i have no solution sorry.
Oliver
-Original
You will have to write JavaScript code to repopulate your State-select on
onChange event of your country-select.
Your could define javascript objects to encapsulate the datas (as a
javascript tree), that could be initialized by JSP code from your HashTable.
Hi Oliver,
The main issue here is
I believe that for the $100 my company spent on the IDE I use, they have
gotten their money's worth 10 times over. Tell me this, what happens after
you add your famous println with your famous xemacs editor. You go shut
down the app. server restart it and then you finally get to debug your
To begin with, I don't see the need for an IDE to debug JSPs. My main need
of debugging comes on the business side of things.
I guess there must be thousands if not hundreds of thousands of code
weenies around the world doing their java development. I'm also sure these
people are not developing
Thanks,
missing comercial support is often a argument against
open source software , some decition maker think that
way. They should have visited this wonderfull newsgroup
Wolfgang
- Original Message -
From: Maris Orbidans [EMAIL PROTECTED]
Newsgroups: Struts
Sent: Monday, April 15, 2002
Hey, lighten up everyone. I'm sure he was only having a laugh (although
don't sue me
if I'm misrepresenting your views, Mark!).
System.out.println(Take chill pill now...);
:-)
__
Steve Earl
-Original Message-
From: Juan Alvarado (Struts List)
If you are doing Javascript validation client side, which has it's pros, I
would still validate at the server. To easy to copy your html and submit the
same form minus the Javascript validation.
-Original Message-
From: Bhaskar Gopalan [mailto:[EMAIL PROTECTED]]
Sent: Monday, 15 April
Try declaring the value of the radio button you wanna checked by default using the
following:
String affiliation = C
Note: This sets the first radio button with the value C to be selected by default.
This also applies if you wanna set the value to U or P too.
regards :)
--
On Mon, 15 Apr
Hi,
I encountered a resource access problem when I tried to make our application
cluster-safe, i.e. I added serialization markers to all classes of which
objects are stored in the session. To test out the proper serialization and
de-serialization, I added some code to my mock test-cases that
People can disable the javascript from there browser and they can bypass
your validation. I think, it's a good idea to do it at the server. Even if
you're using javascript, you still need to validate at the server level.
-Original Message-
From: Bhaskar Gopalan [mailto:[EMAIL
On Fri, 2002-04-12 at 13:30, [EMAIL PROTECTED] wrote:
Yes, I have the sample working. It just doesn't provide any links
underneath each menu item. Actually, when you select an item from the
Yes, I should probably define more links in the example.
dropdown menu, it pops up a new browser
I think I understood exactly what he meant. But I've only been in this
line of work for a little over thirty years so I too may have something to
learn. An answer that addressed when it would be out of beta might have
helped more than your answer. An additional sentence about your assumption
Hi,
There are people who are happy with println() and there are people happy
with IDE debugger. It is matter of experience and personal preference.
my $ .02 :-)
Peter
PS: Let's stop debugging wars. BTW not everybody can dedicate 256+ MB RAM to
Java IDE with debugger...
Original
I agree with you Bill. Some people in this list have no idea what
friendliness is and they always have to find a way to make smart ass
comments about just about every post that they don't like just to make
themselves feel better and boost their egos or lack thereof.
But please don't let that
I am trying to get authentication working in a war file that is running
on WebSphere 4.0.2 through a struts based ui. I have a login page that
does form based auth and that works just fine. But when I link to a
struts controlled url the app loses its user Principal. A call to
I have spent some time lately figuring out how I can generate beans
on-the-fly with fields completely specified at run-time, since this would
be an enourmeous help when working with JDBC and Struts in an informal
matter (which is why I ask here :-)
I have used Apache Jakarta BCEL to construct
I think that two validations are needed, because:
-javascript validation avoids server validation efforts,
badwidth and network time.
-server validation avoids validation bypass by script kiddies and cross-site scripting
specialists.
bye!
_
Pello Xabier
I am using struts with J2EE authentication. I am using Orion server,
however. Here are some of the things which I did.
When you setup your J2EE authentication, you typically tell it what path to
protect, so for example if you make /member/* a password protected
resource make sure that all the
I'm sure this is not the politically correct answer, but iPlanet is the
preferred web server in my environment so here is what works for me.
As for the LogFactory error... I'm not sure how you (Juan) are referencing the
logging facilities. I'm using Log4J and it is working as expected.
As
You have a wonderful habit, Mark, of not answering peoples' questions that
seem simplistic to you, but instead exercising your limpid wit. If your
ego must be massaged with inanities shot toward people new to
this-and-that, try doing it off line? Thanks. I personally do not like
to be
struts-evangelism
The ability to draw trees in a flexible, efficient and ultimately
expandible manner is really hard. But Struts, JSP's and the Nested Tags
in Struts1.1beta can do it easily and in a very elegant fashion... (or
with Struts1.0/1.0.1 with a nested tags distrib younger than a
You have no idea how much I really need your sort of help, Mark. What is:
a gorrant?
At 07:08 AM 4/15/02 -0400, you wrote:
In the world of software, standard and stable are two very different
things and if you don't know enough to articulate the difference between
them, you had better find
Hi,
I'm new to struts and have this question:
I have a jsp that talks to a form bean. After successful validation, this
formbean is
passed to action.perform(). Now I am creating a bean (corresponding to a db
row) in
the action class using the data from the formbean. Now, where do I store
this
- First the response:
Have a look that from Jakarta documentation:
http://jakarta.apache.org/struts/userGuide/building_controller.html#action_classes
The controller servlet creates only one instance of your Action class, and
uses it for all requests. Thus, you need to code your Action class
I'd like to have an action without an associated form. Any suggestions?
Many thanks,
boz
This is exactly what DynaBeans were invented for.
Using BCEL to generate classes on the fly is impressive, but wouldn't it be
simpler to just use the DynaBeans, which I believe are in 1.1?
Niall
-Original Message-
From: Thorbjørn Ravn Andersen (Scandiatransplant)
[mailto:[EMAIL
Use an usual HTML form.
Adolfo
From: Jennings, Christofer J. [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Subject: Action without a form.
Date: Mon, 15 Apr 2002 12:05:17 -0700
I'd like to have an action without an
I don't use form here.
action path=/jobopp/sortOpportunity
type=SortJobOppAction
scope=request
forward name=success path=/jobopp/listSetup.do /
/action
-Original Message-
From: Adolfo Miguelez [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 15, 2002 3:09 PM
To: [EMAIL
I guess what you mean by this is that you don't want a form bean
associated with your action mapping, but you still want to pass data
either through another bean or in the request?
Could you clarify?
-Original Message-
From: Jennings, Christofer J. [mailto:[EMAIL PROTECTED]]
Sent:
JSTL (Standard Tag library - requires Servlet 2.3/JSP 1.2).
or I developed custom tags to do this (if/else/elseif/and/or and
switch/case/default) which Ted Husted put on his site at:
http://husted.com/struts/resources/logic-niallp.htm
Also I have a slightly improved version, see:
Exactly what I was looking for,
cheers,
adolfo
From: Niall Pemberton [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: RE: comparations with OR, AND, NOT... in CustomTags
Date: Mon, 15 Apr 2002 20:13:56 +0100
JSTL
Do you need to store more than one instance of your db-row bean per
session? If not, then I would just store the bean in the session like so:
request.getSession().setAttribute(MyActionClass.dbRowBeanClassName,
dbRowBeanInstance)
Of course, you're free to use whatever identifier you like, but I
Newbie question here.
If I have a bean called article, how do I form an html:link that is a
mailto for the property: article.email ?
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
http://javascript.internet.com/forms/auto-drop-down.html
Have fun
JM
-Original Message-
From: sanjeev_dutt [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 15, 2002 8:32 AM
To: Struts Users Mailing List
Subject: Passing JavaScript variable to a Java Scriptlet on a JSP page
Hi,
This one is driving me crazy. I've already checked the archive but found
nothing relevant. I get the following error whenever I run the following
action:
No action instance for path /addToCart could be created
The other actions are found, just not this one. Here's the relevant parts
of my
take out the name=
JM
-Original Message-
From: Jason B Menard [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 15, 2002 4:44 PM
To: Struts Users Mailing List
Subject: No action instance for path [/path] could be created
This one is driving me crazy. I've already checked the
oops...sorry, wrong action
JM
-Original Message-
From: Jason B Menard [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 15, 2002 4:44 PM
To: Struts Users Mailing List
Subject: No action instance for path [/path] could be created
This one is driving me crazy. I've already checked
This one is driving me crazy. I've already checked the archive but found
nothing relevant. I get the following error whenever I run the following
action:
No action instance for path /addToCart could be created
The other actions are found, just not this one. Here's the relevant parts
of my
What are you using for servlet container?
JM
-Original Message-
From: Jason B Menard [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 15, 2002 4:52 PM
To: Struts Users Mailing List
Subject: (Corrected) No action instance for path [.path] could be
created
This one is driving me
I'm using Tomcat-4.0.1.
- Original Message -
From: James Mitchell [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Monday, April 15, 2002 4:44 PM
Subject: RE: (Corrected) No action instance for path [.path] could be
created
What are you using for servlet
Hi guys,
A friend of mine and I are developing a new application using struts,
but not for any company, just for ourselves.
We are looking for some site hosting service, free ones.
Does anybody here know about that ?
Is there anyone here that has already done that ?
Thanks a lot
Jefferson
--
If you search the archives of this list, you'll find lots of potential
places.
Jay
On Mon, 15 Apr 2002, Jefferson Rodrigues de Oliveira e Silva wrote:
Hi guys,
A friend of mine and I are developing a new application using struts,
but not for any company, just for ourselves.
We are
Yes, it is null.
-Original Message-
From: Jennings, Christofer J. [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 15, 2002 4:14 PM
To: 'Struts Users Mailing List'
Subject: RE: Action without a form.
Does this result in null being passed for the ActionForm parameter of
perform?
,boz
Here are all the hosts I've heard about, mostly from the newsgroups:
GeoCities
AO Industries
good java support,Tomcat 3.2.1
Great customer service
Avasta
Similar to Loudcloud, but also services non-web based enterprise
applications.
CWIHosting
$30/mo, 30 GB of
http://www.netregistry.com.au/hosting/hosting.html#themarketer
http://www.estation.com.au/java.jsp
These are just a couple of Aussie sites hosting JSP/Servlets, remembering
that 53 cents US buys $1 Aussie. So it's close to a half price sale.
-Original Message-
From: Dan Cancro
Members Equity Email System
I'm trying to get Struts 1.02 working with Resin 2.1.0.
I have an app which works fine under Tomcat, but throws a JSPException under
Resin. The stacktrace shows the error occurs in the doEndTag method. Is this
a known problem? Are there any work arounds?
Thanks
Rob
Look at the processActionCreate() method in the RequestProcessor. This is
where the problem surfaces. Here's a fragment:
try {
instance = (Action)RequestUtils.applicationInstance(className);
instance.setServlet(this.servlet);
actions.put(className, instance);
} catch
#1 is true, but I don't think it has much to do with security. Probably more like the
path on the
server may not be the same as the path on the client and the OS might be different,
too.
You can get around this silly limitation if necessary. Just add a hidden field to
your HTML and
add some
Subject: Custom tag class/package naming conventions
From: Bill Wohler [EMAIL PROTECTED]
===
Looking at struts.jar, it appears that the class and package naming
conventions for custom tag libraries are as follows:
Package containing business logic:com.business.logic
Class containing
Hi
I have a common base class called EtrackAction that checks for a valid
session. All action classes subclass this base class. What I want to do is -
if a valid session does not exist (which may occur due to sesison timeout) I
want to forward the request to another site which is actually a web
Greetings,
I am nearing the completion of the code and it should be on sourceforge in
the next day or two. I will be following it up with documentation and
examples over the next week.
FYI - I am finishing up an overhaul on the code so that it fits into the
container managed security and yet
Hi I've got a Select All checkbox in my jsp that dynamically checks all the
checkboxes upon clicking on it. However I've got major problem trying to retrieve the
value for my checkboxes. Not only do I get a Syntax error alert box, the checkboxes
also doesn't get checked when I click on the
Hi I've got a Select All checkbox in my jsp that dynamically checks all the
checkboxes upon clicking on it. However I've got major problem trying to retrieve the
value for my checkboxes. Not only do I get a Syntax error alert box, the checkboxes
also doesn't get checked when I click on the
This Javascript works in IE and NN 6.02
function CheckAll(form){
for (var i=0;iform.elements.length;i++){
var e = form.elements[i];
if ((e.name == 'announcementID') (e.type=='checkbox')) {
e.checked = true;
}
}
}//end of function
-Original
Hi,
I can successfully use Struts 1.02 with WAS 3.5.4, but when I try to upgrade
to Struts 1.1b, the ActionServer cannot be initialized.
I got the error message from the stderr :
javax.xml.parsers.ParserConfigurationException: Namespace not supported by
SAXParser
I used to use jaxp.jar +
Thanks Joe, it works great, but upon unchecking the checkbox, it doesn't uncheck the
rest of the checkboxes. Do you have any solutions(anyone out there has any solution to
offer too)?
regards
--
On Tue, 16 Apr 2002 13:32:16
Joe Latty wrote:
This Javascript works in IE and NN 6.02
function
Your AddToCartAction class does not appear to be a public class. Have you
tried making the class public?
-AP_
http://www.alexparansky.com
Java/J2EE Architect/Consultant
http://www.myprofiles.com/member/view.do?profileId=127
-Original Message-
From: Jason B Menard [mailto:[EMAIL
e.checked = !e.checked to toggle existing, or
e.checked = selectAllCB.checked
-Original Message-
From: days [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, 16 April 2002 3:34 PM
To: Struts Users Mailing List
Subject: (Urgent) Please help - validating checkboxes
Thanks Joe, it works great,
function CheckAll(form, cBox){
for (var i=0;iform.elements.length;i++){
var e = form.elements[i];
if ((e.name == 'announcementID') (e.type=='checkbox')) {
e.checked = cBox.checked;
}
}
}//end of function
Here is your checkbox
pSelect All: input
Adolfo,
The problem with putting or implementing a tag that performs complex AND,
ORs, NOT expressions, is that getting the data for those expressions to work
on could be tricky. There are just so many places that the data can come
from (page, request, session, application, beans, custom api
You have a number of options:
1. If you want to store the data for a while, then put it in to a session.
While you should not probably put the entire ResultSet into the session, you
might read a single row in a java bean, and store the bean in the session.
2. If it's a single row that you have
88 matches
Mail list logo