Hi,
try:
logic:iterate id=facility scope=session name=surveyForm
property=generalFacilityList
table
tr
td
bean:write name=facility property=code/
/td
td
bean:write name=facility property=description/
/td
td
html:checkbox name=facility
Hi,
maybe the struts templates might help you...
look at the template sample
hope this helps
Alexander Jesse
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 24, 2001 5:50 AM
To: [EMAIL PROTECTED]
Subject: Re: More than one action for a
We also had a lot of problems, so we decided to use iPlanet 6.0 (sp1) and
now, after days of frustration with iPlanet 4.1, it works excellent. So.. my
advise, dont use iPlanet 4.1.
Good luck
Frank
-Oorspronkelijk bericht-
Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Hi,
maybe I asked something realy stupid, but how I display user-messages like
login successfull on my JSP-Page wich comes from my Action-Class. I know
that I have to use something like that:
ActionMessages messages=new ActionMessages();
messages.add(ActionMessages.GLOBAL_MESSAGE,new
Title: Problem creating formbean
Hi,
In order to understand the Struts framework (which I'm currently studying), I was following the Bluestone Struts tutorial.(http://developer.bluestone.com/scripts/SaISAPI.dll/StrutsTrailMap.class/struts-trailmap/default.htm)
When running the
spend almost a week trying to run struts on ip 4.1...
We are now able to use the servlet and util classes, but cant use the
taglibs...
::
Mikkel Bruun
Senior IT Developer
[EMAIL PROTECTED]
Direct: +45 32 88 22 73
Valtech A/S
Kanonbaadsvej 10
DK-1437 Copenhagen
Tel +45 32 88
OK I'll try it, but is this a bug in Struts?
I don't really want to, nor should I have to, change the 'standard' Tomcat
install.
BTW, I have no global classpath, and there's *no way* I'm putting Xerces in
lib/ext folder!
Kevin Jones
Developmentor
www.develop.com
-Original Message-
Hi,
You can't nest jsp tag inside another jsp tag. But, their is a solution
to your problem :
template:put name='HtmlTitle' direct='true'
bean:message key=window.title/'
/template:put
Tricia Ong Cheah Yen wrote:
hi all,
i'm new to struts and i have a qn on the use of
http://www.mail-archive.com/struts-user@jakarta.apache.org/msg14937.html
From: Shea Kelly <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: can html:checkbox indexed??
Date: Mon, 24 Sep 2001 15:15:33 +1000
MIME-Version: 1.0
Received: from [64.125.133.20] by
Hi
After a while I get this exception when I attempt to read from the mySQL
database.
The error disappears after restarting the tomcat server.
- java.sql.SQLException: Communication link failure:
java.net.SocketException
at org.gjt.mm.mysql.MysqlIO.sendCommand(MysqlIO.java:459)
thanks for ur help. i was able to display the messages :)
+trish
-Original Message-
From: Cedric Dumoulin [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 24, 2001 4:57 PM
To: [EMAIL PROTECTED]
Subject: Re: template qn
Hi,
You can't nest jsp tag inside another jsp tag. But,
Title: checkbox: isChecked
I'd like to take the information if the checkbox shoud be checked not from the formbean, but from a different bean.
See the example:
%// the bean where the check-information comes from %
jsp:useBean id=warenkorb class=ufa.database.shop.Warenkorb scope=session
Hi
org.apache.struts.taglib.bean.MessageTag takes replacement parameters
(optional argument) as shown in the following example:
bean:message bundle=MyMsgBundle key=MyMsgKey arg0=aaa arg1=bbb/
This is fine as long as I know exactly how many replaceable parameters to
put.
say I get an unknown
It's not a Struts issue, just conflicts between parser versions.
The configuration mentioned is a documentated alternative for Tomcat.
Many applications need Xerces available this way.
Kevin Jones wrote:
OK I'll try it, but is this a bug in Struts?
I don't really want to, nor should I
Hi
When we try to install our application on tomcat
3.2.3 using struts we recieve a exception
java.lang.ClassNotFoundException:
org.apache.struts.action.ActionFormBean
we have struts.jar in WEB-INF/lib and all our
servlet classes in WEB-INF/classes
We have removed the jaxp.jar and
Title: Who tells the Checkbox if it should be checked or not?
I've been reading through the struts-example-application. It works perfect. The checkbox is allways set correct, even if the Form-Bean would say not checked by default. Sorry I know, that sometimes I ask stuped questions but:
Who
I'm using the latest versions of struts and the commons jars from CVS. I've
been developing with Resin 2.x, but now I need to use an earlier version of
Resin, version 1.2.3. When I try to run my webapp on the earlier version I get
an exception when the ActionServlet runs it's init method. The
If you mean, can you wrap a long column into two or more columns, like a
newspaper article, then there is no html way to do this. You would need to do in
manually somehow.
Will
- Original Message -
From: Shea Kelly [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, September 23, 2001
Title: AW: Who tells the Checkbox if it should be checked or not?
Thanks for your Answer. Can you precise what boolean value you mean? ( Do you men 'private boolean autoConnect = false;' in subscriptionForm?)
But there's one thin I don't understand:
In the struts-example I choose
'Edit
Hi,
quick question, is there any struts or apache sub-project to provide
'portal-like' functionality? basic functionality for users to select
components from a default list that they want to see in their home page.
Our current app is in struts and we'd like to avoid adding more new
I would be very interested in hearing people's views about when to use and
not to use the Struts custom tags for creating HTML. I am building an
application that I eventually want to release open source to an audience
that may only know HTML (and that is all I want them to have to know).
I can
Still haven't had time to formalize these directions, so they are likely to
change once I get time to remove extraeous steps or correct things. :)
rief Preliminary Deployment Instructions for WAS 4.0
· Deploy Application
o Install WebSphere 4.0
o Once completed
if you're gonna add the aligment property... could you please add the
'title' (tooltip) property (not only to the html:text tag, but all the
html tags)?.
Maybe it doesn't sound important, but a tooltip gives a plus to the
understanding of some sites (and also a more complete look).
-
Hi,
I'm involved in
a project that use struts. I have a question to get some advice from you. The
application want to separate clearly layout from the logic. The team manager
want us to use XML, XSL to build html pages. But I don't see clearly how to mix
all that. I have beans that do
hi! All
I am having problems installing struts in VAJ 3.53
I followed instructions on then site:
http://www7.software.ibm.com/vad.nsf/Data/Document2558?OpenDocumentSubMast
Still having some problems initializing ActionServlet
[01.09.23 12:47:23:186 EDT] 2fb6 WebGroup X [Servlet
Hi All,
I'm building a small select.jsp - ReceiveServlet - result.jsp
test webapp.
As I went further, I found I have one problem for select option
value for foreign chars.
in select.jsp:
-
html:form action=/select
html:select
It's not a Struts issue, just conflicts between parser versions.
Why? If I have Xerces in the struts directory then Struts should pick that
up ahead of Crimson in the common/lib directory. Assuming Struts is using
JAXP then there should be no dependency on the parser class names at all. I
have
Hello Frédéric,
but i don't know how to call the transformation of the XML data with a XSL
file to build my final html layout.
one option is to use the xsl-taglib
(http://jakarta.apache.org/taglibs/doc/xsl-doc/intro.html).
I haven't seen any problems with struts.
ciao
mattes
Title: Form layout not specified until runtime...
Hi everyone.
We am building an extremely database driven system where everything (the JSP layout for example)
is suppose to be dynamically generated in runtime.
For example. We do not know in advance how many input fields we are going to
Title: AW: AW: Who tells the Checkbox if it should be checked or not?
As I understand it, value=yes ist the value that will be transmitted if the checkbox is checked. But it does not check the checkbox. I guess that there is no other solution than populating the Form-Bean in an
Agreed - but I shouldn't have to. Let's say, for example, that my ISP uses
Tomcat 'out of the box' and I install an application that uses Xerces, I
wouldn't expect (or want) the ISP to replace crimon/jaxp with
Xerces. I want
the application to work as-is, and the way Tomcat configures
For an extremely database driven application, I'd take a look at
dbForms.org
-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Custom Software ~ Technical Services.
-- Tel +1 716 737-3463
-- http://www.husted.com/about/struts/
Jonas Bonér wrote:
Hi everyone.
We am building an extremely
At Jakarta, we use Ant to build our HTML pages from XML and XSL. See the
Struts source distribution for an example.
I haven't tried it, but I keep thinking it would be interesting to do
the same with JSPs.
This would gives you the flexibility of XML,XLS without changing how you
write your
i'm using weblogic 5.1, which does not allow RequestDispatching to JSPs underneath
WEB-INF. so i'm stuck keeping my JSPs outside WEB-INF. as a result,
i have to secure requests to both JSPs and actions. securing the actions is just a
matter of sub-classing ActionServlet and providing logic
Following are the procedures that can used to apply the style sheet
Once we have already parsed the XML document, the getDocument method from
the parser instance (e.g. DOMParser) should return an object of type
Document (which
Hi, I created a basic Struts prototype web application that creates, edits,
and searches for users. I then used Microsoft Web Application Stres Tool
(WAST) to test the performance of the Generic pool vs. Poolman connection
pooling. I am using an Oracle DB (8.1.6). WAST logs into the app,
Hi,
i'm new to Struts and i'm already working on a project that takes advantage
of it.
The problem is: i'm trying to put a link, and the page attribute depends
upon the value of a bean defined by an iterate tag.
something like:
html:link
You cannot next tags as you are trying to do.
My advice would be to make a forward in your struts-config.xml file that is:
forward name=editServiceReport path=/ServiceReport.do?operation=delete /
Then in your jsp page, you can code your link using a regular a href tag:
a href=html:rewrite
Personally, I would strongly recommend that people use Poolman or the
equivalent in production applications.
It's also possible that the generic connection pool will be deprecated
at some point, once a similar package becomes available through the
commons, and it becomes easier to hook new
Antonio -
Unfortunately you cannot nest tags... you'll have to resort to a scriptlet
in this case:
html:link
page=/ServiceReport.do?operation=deleteoperationActivityId=%=activity.get
Id()%/
This seems to be something that everyone intuitively wants to do - hopefully
the capability will be added
Is there a good way to capture the output from a snippet of jsp into a
String variable that can be reused multiple times in a page?
- Brian
As a simple example, if one needed to have the line:
trth align='left' Name/thtd align='right' html:text
property='name'//td/tr
appear in several places,
YES! I fixed the problem because I changed the startup.sh tomcat script
previously before Struts to include various jars. I should n't have done that.
but copied the proprietary jars in WEB-INF/classes instead. In fact
the Tomcat 3.3 blanks the CLASSPATH and sets only libraries that
appear
If all the JSP's are behind Actions, the problem is mitigated since the
names of the JSPs are not revealed on the address bar, only the Action
shows.
One idea would be to generate a request token for each request that
comes through the Action. That could be a dual use features, since you
could
Or you could just avoid using Microsoft products ;-)
At 12:01 PM 9/24/01 -0400, you wrote:
Hi, I created a basic Struts prototype web application that creates, edits,
and searches for users. I then used Microsoft Web Application Stres Tool
(WAST) to test the performance of the Generic pool
Nesting custom tags that way is not allowed by the specification.
The html:link tag has special properties for assembling hyperlinks from
other beans. It can also accept a map when multiple parameters are
needed.
http://jakarta.apache.org/struts/struts-html.html#link
Personally, I avoid
Hi,
I don't know if this is what you are looking for but I just purchased a book
from Orielly press that deals with Java and XSLT:
http://www.oreilly.com/catalog/javaxslt/
I don't know how I can implement this with Struts.
Hope this is helpful.
Alex
You might want to try this one on the JSP list. The archives are also
quite extensive.
http://archives.java.sun.com/archives/jsp-interest.html
-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Custom Software ~ Technical Services.
-- Tel +1 716 737-3463
-- http://www.husted.com/about/struts/
Brian K. Buckley [EMAIL PROTECTED] wrote:
Is there a good way to capture the output from a snippet of jsp into a
String variable that can be reused multiple times in a page?
- Brian
As a simple example, if one needed to have the line:
trth align='left' Name/thtd align='right'
Can anybody tell me if this issue of RequestDispatching to JSPs under WebLogic 5.1
also exists for WebLogic 6.0+?
On Mon, 24 September 2001, Ted Husted wrote:
If all the JSP's are behind Actions, the problem is mitigated since the
names of the JSPs are not revealed on the address bar, only
Would dbForms be incompatible with Struts
At 11:15 AM 9/24/01 -0400, you wrote:
For an extremely database driven application, I'd take a look at
dbForms.org
-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Custom Software ~ Technical Services.
-- Tel +1 716 737-3463
--
%
BodyContent bc = pageContext.pushBody();
%
trth align='left' Name/thtd align='right' html:text
property='name'//td/tr
%
String namerow = bc.getString();
pageContext.popBody();
%
Matt
--- Brian K. Buckley [EMAIL PROTECTED] wrote:
Is there a good way to capture the output from a snippet of jsp
Hi,
I need some serious help.
I am a novice Java and Struts developer.
I am trying to develope a prototype that will work with backend EJBS..
I have an CustomerSearchForm, Form bean and action bean
my Action class is below.
Questions?
1) Is this the appropriate way to call EJBS (in an action
Hi, I am trying to iterate through a bean and populate a list of radio
buttons. I pass an entity object (en) to a page. The entity object has a
number and name parameter. I want to create a list of radio buttons all with
the same name but the values being the entity number.
For example:
input
This might be useful:
http://www.mail-archive.com/struts-user@jakarta.apache.org/msg14326.html
Brian K. Buckley wrote:
Is there a good way to capture the output from a snippet of jsp into a
String variable that can be reused multiple times in a page?
- Brian
As a simple example, if one
hi all,
I try to use an parameter of my struts.config
actionpath=/h2okoop_uebersicht
type=h2ouapp.H2okoop_Uebersicht_a
name=h2okoop_eingabe_f
scope=session
parameter=hello
validate=false
forward
1) No, but it will work. Look at previous posts on how to properly
implement.
2) Your form should have get and set methods?
3) Collection
4) None that I am aware of.
-Original Message-
From: Strichartz, Beth [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 24, 2001 1:09 PM
To: [EMAIL
I need some serious help.
I am a novice Java and Struts developer.
I am trying to develope a prototype that will work with backend EJBS..
taken those 3 into account, I think you really do need serious help. Not
being funny, but usually people either working with other experienced
developers
Thanks,
My from has sets and gets.
I will try to look for previous posted messages..
Beth.
-Original Message-
From: Barry Glasco [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 24, 2001 1:40 PM
To: [EMAIL PROTECTED]
Subject: RE: Help with Struts and EJBS..
1) No, but it will work.
How do folks generally approach building reusable or composable Struts
components? I'm thinking about a situation where I'd like to define a
reusable sequence (not necessarily linear) of Struts JSPs/actions that can
be invoked as kind of a black box from some other part of the Struts
application
Title: Struts JBoss / Tomcat and From
Gregory
Have you got any examples on how to use
nested properties? My initial assumption would be to use public attributes in
the form bean and multiple dot operators in the .jsp
to populate the fields?
-Original Message-
From: Gregor
Hello all.
I have aquestion regarding the postings
explaining how to correctly use the transaction control mechanism provided
within struts. Most postings mention that struts will forward you to an error
page however I haven't been able to find any mention on how to then forward to a
When I try to run the struts example application, I get the following error
message?
Any ideas ??
Error 503
An error has occured while processing
request:http://localhost:8080/strutsexamples/
Message: Application is currently unavailable for service
Target Servlet: null
StackTrace:
Root
Hi,
I am trying to figure out if I have properly designed my classes.
I have a class that extends ActionServlet. The only reason it does that is
because all my web apps need a couple of generic objects in the application
session before anyone can use the applications.
So I overrode the doGet
Hi,
hopefully someone can comment on an idea I have.
I have a VB backend that I talk to via a socket to handle db access. When a
connection is made to the back end I put a Boolean value of TRUE under the
active key in the application session. If for whatever reason the VB
backend goes down I
If you want to iterate in the order you inserted your objects in the
collection, try using a java.util.Vector.
Regards
Luis Olivares.
[EMAIL PROTECTED]
--
Intelligence is the ability to avoid doing
Alex,
You probably want a connection pool. Your code in an Action class (or
wherever) would be something like:
MyConnection MyConnectionObject;
try {
//get the connection from the pool
MyConnectionObject = MyConnection.getInstance();
//do your stuff
} catch
I am attempting to populate an ActionForm from a ValueObject using
BeanUtils.populate(). The ActionForm has all of the appropriately named
setter methods and attributes, and the ValueObject returns a map with keys
corresponding to the attribute names on the ActionForm. The problem is that
when
I don't see anything wrong with the code. Try removing the struts.jar
and replacing it with a new copy.
-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Custom Software ~ Technical Services.
-- Tel +1 716 737-3463
-- http://www.husted.com/about/struts/
Elmar Zorn (H2Opilot) wrote:
hi all,
I have a search page with some input fields. The values
the user inputs are stored in my search form bean in the request scope called
SearchBean. If the search returns 0 results, I send them to a message page
saying "0 results found" with a link that will take the user back to the search
People typically subclass the Action or the ActionServlet.
Subclassing the Action can be advantageous when some Actions require a
login and others do not. The protected Actions can share a common
subclass that forward to login when someone is not logged in.
The Logged-In ancestor class might
I've just recently read the entire thread on this issue posted
last Wed 9/19/01 and still have the following problem:
When the validate() method of my form bean returns a non-
empty ActionErrors list, struts fails to re-populate the form
fields with the text that was submitted successfully.
Did you try to store the reference in the
session?
- Original Message -
From:
cahana
To: [EMAIL PROTECTED]
Sent: Monday, September 24, 2001 5:59
PM
Subject: passing reference from page to
page
I have a search page with some input fields. The
values the
Try downloading Struts-simple, and porting the affected classes there.
http://husted.com/about/struts/resources.htm#projects
Something strange is wrong. It does actually work as documented ;-0
-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Custom Software ~ Technical Services.
-- Tel +1
As far
as keeping the search in the session, if SearchBean is made session scoped, you
can use the struts HTML form tag (http://jakarta.apache.org/struts/struts-html.html#form)
to build the search form and the user will see their last search whenever they
go to the search page. This can
sorry about the html in my last message, it was:
As far as keeping the search in the session, if SearchBean is made session
scoped, you can use the struts HTML form tag
(http://jakarta.apache.org/struts/struts-html.html#form) to build the search
form and the user will see their last search
Hi,
I would like to control j2ee security in the following way.
1) have my app server use j2ee security for form login (done).
2) have my designated login jsp submit to a struts action (login.do).
3) be able to perform any additional validations I like in the struts login
action.
4) then,
I'd appreciate some help figuring out what I'm doing wrong with my Struts/EJB
application. I'm sure I've made more than one mistake, from architectural to
logical.
I have a simple EJB application. I implemented JAAS using
DatabaseServerLoginModule. I started to build a web app on top of this,
Title:
Harshal,
I am not sure this applies because you are using the Websphere test environment,
but I get this with Tomcat 3.2.3 in VAJ unless I add struts to the classpath as a
jar and not as a project. It did not happen with the Tomcat 3.2.1 test environment
(at least that appears to
Title:
Hi,
Is it possible to use the "value" property of the html:select tag to display
a default selection but *only until* the
user makes their own choice? The user's selection should be selected
thereafter.
In my form, if I specify html:select's "value" property with a default
selection,
79 matches
Mail list logo