Hi Chetan,
There are no books available at this time though 2 are currently being written that I
know of. However, they will not be available for a while. The best place to start is
to go to the website jakarata.apache.org and search under struts. there is A LOT of
good information there.
Thankz Amir...
-Original Message-
From: Amir N. Nashat [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 30, 2002 10:20 AM
To: [EMAIL PROTECTED]
Subject: Re: Hi
Hi Chetan,
There are no books available at this time though 2 are currently being
written that I know of. However,
I'd be interested in those reviews as well.
Dave Derry
[EMAIL PROTECTED]
- Original Message -
From: Amitkumar J Malhotra [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Tuesday, January 29, 2002 10:13 PM
Subject: RE: OReilly Struts book
Has anyone tried
Sending a redirect to the PDF file might work better for your situation.
-Max
- Original Message -
From: Mark Woon [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Tuesday, January 29, 2002 11:28 PM
Subject: Problem With Forwarding to a non-HTML file
Hi all.
Thankz Luis, thats definitely a great help
-Original Message-
From: Luis M. Rosso [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 30, 2002 1:56 PM
To: Struts Users Mailing List
Subject: Re: Hi
Hi Chetan,
in my case, the following article, which includes samples and appears
[EMAIL PROTECTED] (Rubens Gama) wrote:
Well, dreamweaver also have support struts,now..
But it still have problems related to nested tags...
Is this an extension, or a new version? Is so, what version?
Duncan Harris
~~~
Hartford, Cheshire, U.K., Tel:
Extension called 'cpwr_optimalj_jsp.mxp'.
Do you know?
-Mensagem original-
De: Duncan Harris [mailto:[EMAIL PROTECTED]]
Enviada em: quarta-feira, 30 de janeiro de 2002 11:23
Para: [EMAIL PROTECTED]
Assunto: Re: RES: Tool for Building Visual Java Server Pages
[EMAIL PROTECTED] (Rubens
Did you set up your struts-config.xml. It appears that it did not find the
configuration.
_
Send and receive Hotmail on your mobile device: http://mobile.msn.com
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For
Em Ter, 2002-01-29 às 17:48, Bryan P. Glennon escreveu:
I must be missing something...
I have a class, Foo, whose data I want to display in a form. I have
defined an action (NavigateAction) that is invoked when the user makes a
selection which will move him/her to the page to disply Foo.
Em Qua, 2002-01-30 às 05:28, Mark Woon escreveu:
I'm using an Action to figure out which document I need to serve, and
the document could be a pdf file. The problem is that when I forward to
a PDF file, the browser still thinks that it's on the action (get.do),
and tries to save the file as
Has anyone been able to capture login information in a struts action and
then send it on for j2ee container managed security.
I currently have a struts application that uses j2ee container managed
security.
New requirements state that the password is to be stored in encrypted form
which means I
Hi All,
It would appear that the FormTag does not have a title attribute. WebLogic
will not deploy Struts apps as the struts-html.tld has a title attribute for
the form tag.
Is this a bug in Struts. It looks like it...if so can it be fixed in the
nightly build? I'm guessing it's just the tld
Hi Michael,
Try http://strutstestcase.sourceforge.net/
Jon.
-Original Message-
From: Michael Mehrle [mailto:[EMAIL PROTECTED]]
Sent: 30 January 2002 05:18
To: Struts Users Mailing List
Subject: How to perform junit testing of Struts classes?
Of course I can imagine writing a junit
Hi Michelle,
You may need to look at JAAS for this, see:
http://java.sun.com/products/jaas/
Alternatively your container may provide bespoke hooks.
Jon.
-Original Message-
From: Michelle Popovits [mailto:[EMAIL PROTECTED]]
Sent: 30 January 2002 15:01
To: '[EMAIL PROTECTED]'
Subject:
Chetan,
There is at least one book available on the Struts framework out called Struts Fast
Track by Vic Cekvenich. You can check it out on Amazon at
http://www.amazon.com/exec/obidos/ASIN/0971661901/qid=1012403446/sr=8-1/ref=sr_8_3_1/102-2150136-4095349.
I own this book and personally don't
How can I prepopulate the radio buttons with the value coming from database
and also be able to reselect a different value when I am submitting the
form again.
My scenario is I have a save task where I save the value selected for radio
button to the database. I come back again and retrieve this
Fellow users:
I have been using struts now for a short time and I am impressed, however I
am wondering
if I am making a mountain out of a mole hill here and was wanting a bit of
assistance.
My particular issue is that I have a third order normalized table
using integers as the ids for the
I'm looking for good examples of using struts templates for building a UI.
I'm trying to figure out how to display the current tab as selected using
templates, haven't found any example that helps me do that.
Also, is Tiles the recommended way of templating screens or should Struts
templates
Hi Sriram,
I'm not quite sure, but you can try here
http://www.netstore.ch/mesi/strutsTutorial/index.html
bye
- Original Message -
From: Sriram Nookala [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, January 30, 2002 5:34 PM
Subject: examples of struts
[EMAIL PROTECTED] wrote:
How can I prepopulate the radio buttons with the value coming from database
and also be able to reselect a different value when I am submitting the
form again.
Most of the time I try to just sit and watch as everyone asks these very specific
questions with very
I've suddenly started receiving a parse error : null when I try to access
any page that contains a reference to struts logic tld.
Any ideas guys/gals?
The only thing I've changed recently is changing struts-confix.xml and
web.xml to reference dtd's on my own system.
Please Help!
Jin
--
To
Newsgroups: Struts @ news.basebeans.com
References: [EMAIL PROTECTED]
One Struts book at http://www.basebeans.com/book.jsp
Amir N. Nashat wrote:
Hi Chetan,
There are no books available at this time though 2 are currently
being written that I know of. However, they will not be available
Hi Duncan,
Actually Dreamweaver doesn't per se.. However those clever taglib chaps have
built an extension. Go over to the Apache taglib site and check out the CTLX
project. It uses Dreamweaver's extention capabilities to add taglibs... if you
can add taglibs you can add struts. U better have
Another book with a lot of information on Struts is JSP and Tag Libraries
for Web Development,
available at Amazon and BN. Check the publisher's page at:
http://www.newriders.com/books/title.cfm?isbn=0735710953.
It is heavily focused on Tag Libraries and Struts is discussed on the light
of that.
Hello all, My name is Matt Lobur and i am new to the
STRUTS framework.
My question involves submition of a form in a multiple
frame page. If i sumbit a form in 1 frame but the
information submitted will effect many of the frames
in my page, how would I refesh the other pages because
the
Matt,
Due to the fact that the HTTP protocol is stateless, once the other frames
in your page are loaded, the only way to refresh them after the submission
of your form is through some javascript that is activated by the resulting
page of the submission in the frame that has changed. This is
Is there any way to have Beanutils.populate call a setter method with a date
signature on a bean?
I'm trying to populate a bean with *lots* of properties, some of which are
dates stored in string format. My source bean has dates in date objects.
Target bean fields/methods:
String
Better said, some sort of script (or applet? brrr) activated by that.
Wellington
-Original Message-
From: Lacerda, Wellington (AFIS)
Sent: Wednesday, January 30, 2002 7:15 PM
To: 'Struts Users Mailing List'
Subject: RE: Beginner question: Actions for Multi-frame page
Matt,
Due
Thanks, David...very interesting. Too often, I think, Java programmers take
error handling for granted and do not think past the compiler objecting to
an unhandled possible error condition by insisting that the exception be
thrown or caught. I think it's clear that the decision to declare an
Like I said, it can take a real time expression. So you can do
html:select property=selectProperty
value=%=(String)request.getAttribute(xyz)%
html:options property=values labelProperty=names/
/html:select
You have to have scriptlets or expressions to set the value dynamically.
After a long, long hiatus (thanks mostly to a bunch of scumbag movers
who took over a month to deliver my worldly possessions!), I have
released a new version of StrutsTestCase.
StrutsTestCase v1.6 fixes several bugs, improves support for Struts
1.0.1 and the Servlet 2.3 specification, and
I know it can take a realtime expression, but that means unpacking
my nested bean from the request and then calling methods from it.
This kind of ``code'' I would like to avoid having been placed
inside the .jsp.
I could create a custom tag that outputted the property I was
interested in but
That would be great, but how do you get a reference to the form bean?
Or perhaps I misunderstand.
Thanks
A much better way to do it is set the value in your form bean in your *action*
before you forward to the page, thus having it dynamic, but not resorting to
scriptlets.
Cheers,
check the perform() method signature of your action - it has the ActionForm
associated with it. You can then cast it into the appropriate form:
public ActionForward perform(ActionMapping mapping,
ActionForm form,
Hi Kevin:
Here is how I used the html:link, but it is used with a bean.
This code:
html:link page=/delete.do?type=user paramId=userName
paramName=userSearchResults paramProperty=userNameDelete/html:link
produces:
http://protege:8080/physiome/delete.do?type=useruserName=JFERNANDEZ
basically,
I've been working on this a little. You can add a header:
Content-Disposition: attachment; filename=mypdf.pdf
Seems to work on ie 5.5, haven't tested other browsers.
-Original Message-
From: Mark Woon [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 30, 2002 11:22 AM
To: Struts
It would be nice if the Struts online documentation included examples
for all their tag libraries.
Hint. Hint.
HI,
Our application is a web application. Now everything is in English like
displaying the forms, user inputting the data, storing the data in DB and
displaying the results of the user request, properties file etc are in
English.
If I want to make my application to accept the input and display
Hello:
I am migrating an application from tomcat 3.2 to 3.3. But I got an
exception like:
2002-01-30 10:59:44 - Ctx() : Exception in R( + /agent.jsp + null) -
org.apache.jasper.JasperException: Unable to compile
/var/spool/tomcat3/DEFAULT/ROOT/mailagent_1.java:284: No method matching
I have noticed that the value attribute of the select
tag, which is said to be a run-time expression in the
struts tag documentation, does not seem to work that way.
I have the following select statement:
html:select property=%= OrganizationForm.PARENT_ORG_ID %
How can I prepopulate the radio buttons with the value coming from database
and also be able to reselect a different value when I am submitting the
form again.
My scenario is I have a save task where I save the value selected for radio
button to the database. I come back again and retrieve this
Has anyone used Struts in an environment where some of pages are
dynamically generated. In this case an action would write the html
directly to the output stream instead of forwarding to a jsp.
Anything to consider here?
Is it still advantageous to use Struts in this kind of situation?
Are
Sorry for this stupid tiles question, but I need to make sure I understand
this.
When I tried tiles, it appeared to severely affect performance. This seemed
to be because a new JSP was *constructed* on each request and then
*compiled* before finally being run, which then served up the HTML to
this should work:
a href=javascript:void openWidgetWindow()
- Original Message -
From: John M. Corro [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, January 29, 2002 9:31 AM
Subject: Non-Struts Related JS Question
Does anyone know how to call a javascript function from an html
Hi
We have two Struts applications (front end back end) that share several classes.
Where should we put them in the Tomcat folders so that both applications can 'see'
them?
Any help/advice will be much appreciated.
TIA
Lyndon Smith
PS. We also have a similar problem with the tlds for
Hi all,
I've written an input form that uses a multiple html:select.
The user selects the options they want and these options are
subsequently inserted into the database.
The problem is, that due to an apparent limitation of the html:select
value property, if I want to use it to update
[EMAIL PROTECTED] (Mark Woon) wrote:
Sorry, I guess I should also have added that PDF files are ocassionally
generated on the fly., in which case there's really nothing to redirect or
forward to. Is there anything I can do in these situations?
The Inland Revenue site in the UK does this, if
Not necessarily documented in the tag library, but working examples are in
the samples bundled in the distro. Of course, one could make the friendly
arguement that energies used complaining why something isn't right are
better spent making it so (hint, hint : )
- Original Message -
There was something posted within the last day or so regarding an XML/XSLT
struts modification, similar to the cocoon idea.
http://www.openroad.ca/opencode/stxx/documentation.html
Because JSPs are so flexible, I just leave struts as it is and do this in
the JSP:
%=content%
-Original
After a hard day of work I have solved this...see my documentation below.
-Michelle
J2EE Container Authentication and Struts
Overview
There was a need to provide a custom handler of the user authentication
information (userid, password) prior to container authentication. This
includes
The next step...
A challenge with container managed authentication is that you generally
can't predict what url the user originally requested and thus can not do any
post-authentication processing. Let's say whenever a user successfully logs
in I want to log to an audit trail. I could do this
I'm developing an application in Forte, and I've mounted the struts.jar
file. When I derive my action class I go to have Forte automatically
generate the code for the 'execute' method, and it's not there.
At first I thought maybe I had the wrong binary release. I went to download
the current
Create a Test.jsp as follows and run it. It will open Excel in a browser.
HTH!
!DOCTYPE HTML PUBLIC -//IETF//DTD HTML//EN
HTML
HEAD
TitleExcel Format/Title
%
response.setContentType(application/vnd.ms-excel);
response.setHeader(Content-Disposition,inline );
ServletOutputStream outStream
I am using Struts 1.0. According to the Javadoc, the
MultipartRequestWrapper.getParameter() method does the following:
/**
* Attempts to get a parameter for this request. It first looks in the
* underlying HttpServletRequest object for the parameter, and if that
* doesn't
Someplace at the end of your Action Class you could
set the mime type and:
String contentType = application/xls; //i believe
this is the correct mime type for excel
byte[] fromDB = lobHandler.getByteStreamFromDB();
if (contentType.equals(text/richtext))
Syed Niaz wrote:
Hi
Can anyone send me a sample code for opening an MS-EXCEL using struts .
... or some tips on how/where to set the content-type ,etc
You can either use:
request.setContentType(application/msexcel);
in your Action (or a scriptlet), or
%@ page
How can I prepopulate the radio buttons with the value coming from database
and also be able to reselect a different value when I am submitting the
form again.
My scenario is I have a save task where I save the value selected for radio
button to the database. I come back again and retrieve this
Hi
Struts form class which returns the two dimentional
array, Could any one tell me the tag librarry to
render the values.
public Object[][] getCellValues()
thanks
manju
__
Do You Yahoo!?
Great stuff seeking new owners in Yahoo! Auctions!
Here's a code sample that I pulled from one of our actions that does that
very thing. I didn't write, but I know
that it works fine.
Chuck
// create the label and value StringBuffers
StringBuffer labels = new StringBuffer();
StringBuffer values = new StringBuffer();
// This calls a local
Srinivas,
This has come up a little while ago and I've added to the nested
extension to allow for it. The problem is, is that if you have other
nested tags inside an iterate tag or similar, they will work on a
property returned from that object from the list etc. What was needed
was to
I don't think that there is one. Or at least in Struts.
The two dimensional array bean property is not a part of the bean spec.
You could probably hack the iterate tag and write it yourself, it will
have all the logic there to show you how to do the looping etc.
Arron.
manjunatha honnappa
Hi Arron,
I used the ./ and this/ as the property name and i get an error:
No getter method for property shares1[0].computer[1].options. of bean
serviceForm
now it tries to append a . to the property.
If necessary i can mail u all the source files.
regards,
srinivas
-Original
I've noticed that the initial compile takes longer, but once the JSP is
compiled, the performance cost should dwindle. The best thing is to run
your own load tests, since a number of factors can affect performance
and scalabilty. It sounds like something else is wrong here.
Andy Noble wrote:
The simplest thing to reset is to do an actual redirect, rather than a
forward. This would clear all the request parameters, including the
cancel one.
forward name=return path=/admin/admin.jsp redirect=true/
or have an actual one for cancel
forward name=cancel
Did you download a new version of the nested extension?...
It was only added on the 23rd of January. I'm quite certain this is the
reason for this error.
It's trying to step back through the parent tag and tries to append an
empty property, hence the dot on the end.
Arron.
srinivas wrote:
hi arron,
it worked. thank you very very much.
regards,
srinivas
-Original Message-
From: Arron Bates [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 31, 2002 2:12 AM
To: Struts Users Mailing List
Cc: srinivas
Subject: Re: how to use strus HTML tags when i have a collection of
items
Hi
Is there anyway in the struts-config.xml file to specify a parameter and
its value to be passed to an action, ie I am looking for something like
parameter name=action value=new
actionpath=/listNewDepartments
type=com.bogusdomain.bogusproject.ListDepartments
Hi,
Setting a cookie in a servlet, chaining to another servlet and trying to
read the cookie for
display in a Struts based JSP page.
The first time the cookie is set, when I try and read it, it doesnt
exist.
Second time I set it, the value is set to the first value.
Third time, it has the second
When you set a cookie it is only a 'suggestion' to the client. When you
read a cookie it is coming back from the client for the current request.
1. client requests page 1
2. set cookie in first servlet
3. chain to second servlet
Here you will not see the cookie because the client has yet to
Well, heres my problem.
I have a servlet that takes in a form, parses the data and then
forwards off to another site. Before it posts, it puts the users
ID (encrypted) into a cookie and sets it.
That site then does its little thing and does a HTTP post BACK to my
site.
requesting a file
My pleasure.
Arron.
srinivas wrote:
hi arron,
it worked. thank you very very much.
regards,
srinivas
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
I'm developing an application in Forte, and I've mounted the struts.jar
file. When I derive my action class I go to have Forte automatically
generate the code for the 'execute' method, and it's not there.
At first I thought maybe I had the wrong binary release. I went to download
the current
The cookies have to come from the browser. So, like Sam said below:
You have to set the cookie(s) then send a redirect to the browser giving the
url
to the other site, causing the cookies to get sent to the browser first
(make sure and set the cookies before calling response.sendRedirect()) and
Perhaps I misunderstand the flow of events that occur but aren't
the bean propertys populated prior to the Actions form method
being called?
Is the flow of execution between the form, form-bean and action
explained somewhere in the struts documentation? If so where?
Thanks for your patience
taken from: http://husted.com/about/scaffolding/catalog.htm
action path=/Entry
type=org.wxxi.polls.http.Client
name=pollForm
validate=false
parameter=input
forward name=continue path=/WEB-INF/pages/Entry.jsp/
/action
and just use mapping.getParameter()
- Original Message -
From:
Check out:
http://www.servletsuite.com/servlets/exceltag.htm
Its a custom tag library for excel.
-Rakesh
[EMAIL PROTECTED]
www.ayilliath.8m.com
---
- Original Message -
From: Ajay Chitre [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL
Hi,
I'm using Struts connection pooling in my Struts application. If the database goes
offline temporarily the only way I know of to re-establish the pool is to stop and
start the application server (in this case WebSphere 3.5.5 which is quite a tedious
process!).
Is there a smarter way
Have you tried Poolman to do your connection pooling? It provides a way to
specify a validation query which periodically checks to see if the database
is still accessible. If it doesn't, it'll keep trying to connect to the
database until it comes back up. The url is www.codestudio.com
-
per the ActionMapping api...
Additional properties can be added by a subclass, simply by providing
appropriate public getter and setter methods.
you can use (for example)...
set-property property=foo value=test /
...as long as the subclass has getFoo/setFoo methods defined, you tell
struts to
Hi
I want to use the validate functionality in a Form. What I want to know is if an non
empty ActionErrors object is
returned does it always get forwarded to a jsp page? I actually want it rather than
getting forwarded to a jsp page
to be forwarded to an action. Can I do this somehow using
try something like this; it will open the pdf viewer in your browser
public class ShowDocumentAction extends BasicAction {
public ActionForward perform(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServletResponse response)
throws IOException, ServletException
Re: lost form data when validate returns errors
Ted Husted wrote:
Dan Tanner wrote:
I'm having the problem of losing form data when my action class returns
errors. The error displays properly, but I lose all the form data.
If you are talking about form data that is generated by an Action,
82 matches
Mail list logo