I did not notice any book recommendations in answers to your question, and
frankly, I am not surprised. For learning a new technology I prefer a good,
well-written and well-structured book to harvesting scattered web pages to
critical pieces of information. Unfortunately, I have read three
On the Desk AND always on the harddisc (the eBook-version). JUST in case the
hardcopy is too far away (eg. when working on the laptop in the garden...)
-Original Message-
From: David Friedman [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 19, 2004 8:43 AM
To: Struts Users Mailing List
I also found this useful in addition to Struts in Action:
Struts Survival Guide (ebook, very cheap) - Srikanth Shenoy with
Nithin Mallya. Object source publishing
Richard Aukland
49 Ravensmere, Beccles,
Suffolk, UK. NR34 9BE
Tel/Fax. +44(0)1502 470162
Cell.+44(0)7906 094578
mailto: [EMAIL
I haven't yet. Just skimmed through Amazon example pages, and it seems like
a proper book. (item from the example application: Commodore 1541.
Brilliant!) Amazon user reviews were not that good, so I initially skipped
this one, damn...
From: Jesse Alexander (KXT) [EMAIL PROTECTED]
Reply-To:
The SimpleDateFormat has a setTimeZone() method (coming from DateFormat).
The locale doesn't have timezone information, locale is about language
and countries. Countries may have several different timezones so there
is no accurate way to map them to timezones. I normally allow users to
pick
You may combine mod_rewrite and mod_proxy in Apache and do all kinds of
wunderful and
strange URL mangling things:
E.g. for all URLs ending in .jsp stripping the /apps/ in the path
or for all *.jpg, *.gif, *.html beginning with /modulename/ addinf /apps/
before
or even generate http subrequests
Hi Viral,
I have a Date stored in GMT format in database. Now I need to display
this date to user depending on his/her LOCALE. I found SimpleDateFormat
and few other classes to convert the Date Format, but I am not able to
find how to change the Date value as per user locale.
Example:
what happens when I write the below in mypage.jsp?
tiles:insert path=template.jsp
put name=currentModule value=mymoudle /
putList name=tabList
item value=vchart tooltip=Chart link=/rb/chtprop/VChart.jsp/
/putList
tiles:insert
Is currentMoudle a bean? if it is ,what scope it exists
Could you please provide the code snippet of this..??
-Original Message-
From: Jason Lea [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 19, 2004 12:59 PM
To: Struts Users Mailing List
Subject: Re: [OT] Date Localization
The SimpleDateFormat has a setTimeZone() method (coming from
Hai all
when we use Struts Validator in client side, it creates too big and many
unwanted functions in the client side,
is it possible to reduce or copy all javascript functioins into .js file
and attach them so client dont want to read too much codes ?
any solution there in Struts 1.1
Thanks,
Hi Rajesh,
when we use Struts Validator in client side, it creates too big and many
unwanted functions in the client side,
is it possible to reduce or copy all javascript functioins into .js file
and attach them so client dont want to read too much codes ?
Take a look at
hi
I used the same actionform for a few JSP pages, which I guess is good
practice. The problem occurs when I add in validation in my ActionForm.
Because in the struts-config, only one input is specified for every
Action. Therefore, whenever validation fails and struts display the
error
Hai
you mean dynamicJavascript=false
what will happen if i give it.
normally html:javascript will create a main function called
validateformname(form) {}
will this function writes ? if so then where all the other functions goes ?
Rajesh
Shinobu Kawai wrote:
Hi Rajesh,
when we use Struts
Hi Mike,
what happens when I write the below in mypage.jsp?
tiles:insert path=template.jsp
put name=currentModule value=mymoudle /
putList name=tabList
item value=vchart tooltip=Chart link=/rb/chtprop/VChart.jsp/
/putList
tiles:insert
template.jsp gets inserted
SimpleDateFormat sdf=new SimpleDateFormat(-MM-dd HH:mm);
TimeZone tz1 = TimeZone.getTimeZone(America/Los_Angeles);
TimeZone tz2 = TimeZone.getTimeZone(Asia/Karachi);
Date now=new Date();
//time in LA
sdf.setTimeZone(tz1);
System.out.println(Time in LA: +sdf.format(now));
//time in LA
Hi ,
I did post a question regarding the problem I am facing in dealing with check
boxes in struts. I did not get a proper reply. I am just explaining the scenario . It
will be good help from your side if somebody can guide as how this can be done .
We have a previous/ Next
Erik,
i don't quite understand what you call a hand-rolled
java component (maybe because of my english).
Anyway, it seems to me that you're not using JAAS to
completely control application's security, are u?
I don't know if it possible, but if so, would you post
your setup and basic classes?
I'm
An ugly girl in the 3rd grade?
-Original Message-
From: Wiebe de Jong [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 18, 2004 6:46 PM
To: 'Struts Users Mailing List'
Subject: RE: [OT]1,2,3,4 I declare a pun war!
On the topic of sheep,
Where does that 100% virgin wool come from
Sorry, by hand-rolled I just mean one that is written specifically for
the application (written by you).
The general idea is something like this:
Make a BaseAction class.
Implement a checkLogin method in the BaseAction class that looks in the
current request's HttpSession for a User object,
Hi ,
we are developing an application. We are using Struts's DynaForms.
problem ).
we have 12-13 froms each form containig around 100 input text
fields.if I define all the form-beans under form-bean and
form-property Using DynaForms .then my struts-config.xml will be very
huge with
You can split your struts-config.xml in 12-13 files and by
subapplication .Then specify them in web.xml.
servlet-nameaction/servlet-name
servlet-classorg.apache.struts.action.ActionServlet/servlet-class
init-param
param-nameconfig/param-name
Thank you very much for your time Erik, i'll try to
get some study around it!!!
I don't know if it's possible (probably not, i
know...) , but if you could send me your LogonAction
class (and associated stuff) would awsome! But i you
can't, that's allrigth, i completely understand!
Regards,
Sebastian Ho [EMAIL PROTECTED] wrote on 08/19/2004 05:19:35
AM:
hi
I used the same actionform for a few JSP pages, which I guess is good
practice. The problem occurs when I add in validation in my ActionForm.
Because in the struts-config, only one input is specified for every
Action.
[EMAIL PROTECTED] wrote:
You may combine mod_rewrite and mod_proxy in Apache and do all kinds of
wunderful and
strange URL mangling things:
That's all well and good, so long (AFAIK) as the original client's
request is maintained when the servlet is called. Otherwise, as a
servlet developer, I
Hi All,
Good day. I have a code snippet like following :
bean:write name=WrkqRetailSummaryForm property=totalWSCost
format=$###,###,###.00/
But format key do not work here. Do I have to specify these keys
somewhere else? I am trying to use this first time.
Regards,
Bibhu
Information
Return Receipt
Your need help on format attribute of bean:write
document:
Excellent explanation, Erik. Consider adding this to the Struts Wiki for
posterity? Must be a place for it in there somewhere ...
Erik Weber [EMAIL PROTECTED] wrote on 08/19/2004 08:31:08 AM:
Sorry, by hand-rolled I just mean one that is written specifically for
the application (written by
Jignesh,
I think your problem is not related to checkbox or multibox but to maintain a
list of modified records. To keep it simple I would suggest that you maintain a
Collection (Map, HashMap, List, etc.) of the modified records (which were
checked or unchecked) in the session. I think you can
You can also put an execute method in the base action that does the
'logged-in' check, and use a global forward to forward to login page.
If you do this, then add an abstract method eg executeAction with the same
signature as execute, and call it.
The main advantage of this is to stop you
Sebastian, the short answer is to set the object as a request attribute.
You would do something like the following in your action:
public ActionForward execute(...) {
Foo myFoo = FooService.getFoo();
request.setAttribute(myFoo, foo);
return mapping.findForward(success);
}
Then on the success
We are in a bind so I reposting under a different topic. Sorry, but ...
We are trying to limit user input to the following ranges in ISO-8859-1:
32-126
160-255
As well as characters 9, 10 and 13.
We have tried various things but have run into problems with the #'
characters, plus it is
Not sure, but if you run out of time, write your own pluggable validator
for those fields. See the Struts docs, or the example on Matt Raible's
site for a twofields pluggable validator. It's easy.
Erik
Brown, James wrote:
We are in a bind so I reposting under a different topic. Sorry, but ...
Solved my own problem. Just for those that do not know ...
Since mask is based on regular expressions, you can use:
$[\x21-\x7E\xA0-\xFF]*
to match characters 32-126 and 160-255 of a character set.
-- James
THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
HI Janne,
Thanks for your comments on books. I was hoping to avoid having to
read a book to write my first Struts app, which is basically a small web
app to let a user search a database table according to one of three sets
of search criteria. I thought this would be relatively simple. My
-Original Message-
From: Kenneth Litwak [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 19, 2004 8:53 AM
To: Struts Users Mailing List
Subject: RE: Learning the basics
HI Janne,
Thanks for your comments on books. I was hoping to
avoid having to
read a book to write
I'm trying to do something with Tiles like this:
definition name=.mainLayout page=/tiles/mainLayout.jsp
put name=header value=/tiles/header.jsp
put name=footer value=/tiles/footer.jsp
put name=title value=${title}/
put name=body value=${body}/
/definition
definition name=.nestedLayout
-Original Message-
From: struts Dude [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 18, 2004 9:14 PM
To: Struts Users Mailing List
Subject: Help on Action implementing thread for checking user
registration thru email?
Hi,
I am going to write an app that allow user to
-Original Message-
From: Sebastian Ho [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 19, 2004 2:20 AM
To: Struts Users Mailing List
Subject: different inputs in struts-config
hi
I used the same actionform for a few JSP pages, which I guess is good
practice. The problem
-Original Message-
From: Bibhu Kalyan [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 19, 2004 6:36 AM
To: Struts Users Mailing List
Subject: need help on format attribute of bean:write
Hi All,
Good day. I have a code snippet like following :
bean:write
I've found Struts - The Complete Reference by James Holmes very helpful.
It's organized well with good overviews before detail and complete code
listings not just snippets.
Bart
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
Often times it is necessary to make a link act as a form by appending
a whole bunch of query parameters and issuing a GET request. In
struts, it is necessary to supply a bean name which points to a Map
containing these data values. I thought of something that might be a
touch easier. Perhaps
-Original Message-
From: Kenneth Litwak [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 19, 2004 9:18 AM
To: Struts Users Mailing List
Subject: RE: Learning the basics
Hi Jim,
I was hoping to
avoid having to
read a book to write my first Struts app, which is basically
This might help:
http://www.quartzscheduler.org/
It is not strictly for struts, but it is a solution for what you want to
do.
Pritpal Dhaliwal
-Original Message-
From: Jim Barrows [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 19, 2004 9:16 AM
To: Struts Users Mailing List
Subject:
+1 :)
[EMAIL PROTECTED] wrote:
I've found Struts - The Complete Reference by James Holmes very helpful.
It's organized well with good overviews before detail and complete code
listings not just snippets.
Bart
-
To unsubscribe,
Hi all,
My situation is List inside List and I am using Struts 1.0. There is no
beans. I need access to List by index(using Struts).
For ex.
logic:iterate id=list2 name=list1 scope=session
tr
tdbean:write name=list2 property=list2[0]
tdbean:write name=list2 property=list2[1]
Hi all,
My situation is List inside List and I am using Struts 1.0. There is no
beans. I need access to List by index(using Struts).
For ex.
logic:iterate id=list2 name=list1 scope=session
tr
tdbean:write name=list2 property=list2[0]
tdbean:write name=list2 property=list2[1]
You probably only need a javax.management.timer.Timer -- a single Thread
that runs forever, invoking an event listener every so often. The Timer
can be initialized and started by a ServletContext listener at
application startup. The event listener queries the database, looking
for new
test
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
I previously posted a message on how i did this as a struts plugin, so i've
reposted below.
To do what you require, instead of scheduling a job for each entry after
24hrs, i would include a timestamp in the database, then say every hour,
check for expired entries and delete them.
All this sounds very complex, what's wrong with encoding the time in the
url (securely) and testing it when you perform the action? Alternatively
store the request time and id on the server.
Paul
Global Equity Derivatives Technology
I second the below - when you pull the user info from the database check
the timestamp and in it's greater then 24hrs, delete it and kick the
user out... then you can just cleanup the database daily, weekly, etc at
off peak times... this way nothing is dependent on a job running...
Mike
Well, zip attachements aren't allowed, and ppt file is just over 100KB
limit! I'll send it to you privately, Ken.
cheers,
David
- Forwarded by David Hay/Lex/Lexmark on 08/23/2004 01:54 PM -
|-+
| | David Hay|
| |
Try the strategy listed at the bottom of the below url
http://www.jamesholmes.com/struts/
On Thu, 19 Aug 2004 18:08:55 +0530, Krishna Murthy .U
[EMAIL PROTECTED] wrote:
Hi ,
we are developing an application. We are using Struts's DynaForms.
problem ).
we have 12-13 froms each form
Hi David,
Thanks much for the document.
Ken
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Monday, August 23, 2004 10:56 AM
To: [EMAIL PROTECTED]
Subject: RE: Learning the basics
Well, zip attachements aren't allowed, and ppt file is just over 100KB
Who owns/can update http://struts.apache.org/resources/articles.html?
The powerpoint slides are on there, but are an old version. How do I get
it updated? I'm getting several requests for it, and it would be easier to
stick it there!
cheers,
David
|-+
|
Post a diff to dev list.
Even the web site is in CVS.
.V
[EMAIL PROTECTED] wrote:
Who owns/can update http://struts.apache.org/resources/articles.html?
The powerpoint slides are on there, but are an old version. How do I get
it updated? I'm getting several requests for it, and it would be easier
Apparently, in weblogic (which is the server we are currently using)
it is possible to hardcode the context-root into the weblogic.xml
file (if not specified in the EAR application.xml file). All the
sysadmin needs to do is let the request come through unscathed and
we can at least remain
I often times run into the conflict, when developing a Struts
application, of which form to choose for a given action. The scenario
is such that one form is being populated by the request while the
other form needs to be populated for the output. An example would be
a sequence of pages
I have a form which has a save (html:submit ...) and continue
(html:cancel ...) button.
The save should validate and process the data in the form.
The continue button should go to the next page, skipping any
validation and processing.
I have been using the validator plugin, with all of my
-Original Message-
From: Dan Allen [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 19, 2004 12:18 PM
To: [EMAIL PROTECTED]
Subject: input and output form
I often times run into the conflict, when developing a Struts
application, of which form to choose for a given action.
Extend your action class from
ValidatorLookupdispatchAction class by Brandon
Goodin.
___
Do you Yahoo!?
Win 1 of 4,000 free domain names from Yahoo! Enter now.
http://promotions.yahoo.com/goldrush
-Original Message-
From: Robert Miller [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 19, 2004 12:25 PM
To: [EMAIL PROTECTED]
Subject: Conditionally Validating an Entire Form Based Upon the
buttonpressed
I have a form which has a save (html:submit ...) and continue
The suggestion is good. But you might run into
localization problems. The better approach is to
extend the ValidatorLookupDispatchAction class by
Brandon Goodin which extends the
LookupDispatchAction. The buttons get their label
texts from the properties files.
If you are not thinking of
Given the following form, I am using a map backed form, basically as
described in:
http://struts.apache.org/userGuide/building_controller.html#map_action_form_classes
This form is in the QuestionGroupAction class as this:
* @struts.action name=mapValueForm path=/answerQuestionGroup
*
-Original Message-
From: struts lover [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 19, 2004 12:35 PM
To: Struts Users Mailing List
Subject: RE: Conditionally Validating an Entire Form Based Upon the
buttonpressed
The suggestion is good. But you might run into
Which
-Original Message-
From: Robert Miller [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 19, 2004 12:25 PM
To: [EMAIL PROTECTED]
Subject: Conditionally Validating an Entire Form
Based Upon the
buttonpressed
I have a form which has a save (html:submit ...)
and continue
struts lover wrote:
The suggestion is good. But you might run into
localization problems. The better approach is to
extend the ValidatorLookupDispatchAction class by
Brandon Goodin which extends the
LookupDispatchAction. The buttons get their label
texts from the properties files.
If you are not
Bill Schneider wrote:
I'm trying to do something with Tiles like this:
definition name=.mainLayout page=/tiles/mainLayout.jsp
put name=header value=/tiles/header.jsp
put name=footer value=/tiles/footer.jsp
put name=title value=${title}/
put name=body value=${body}/
/definition
definition
Michael McGrady wrote:
Bill Schneider wrote:
I'm trying to do something with Tiles like this:
definition name=.mainLayout page=/tiles/mainLayout.jsp
put name=header value=/tiles/header.jsp
put name=footer value=/tiles/footer.jsp
put name=title value=${title}/
put name=body value=${body}/
Are spanish characters not retained either?
Are you using Tomcat, and if so, are you using the SetCharacterEncoding
Filter? (Look in the Tomcat WebApps examples.war)
Inquiring minds want to know this stuff :-)
-Original Message-
From: struts lover [mailto:[EMAIL PROTECTED]
Sent:
I just tried this method and it works for me.
Thanks!
I may study the other suggestions as time permits.
Thanks everyone for your suggestions!
Robert
[EMAIL PROTECTED] 8/19/2004 2:30:18 PM
-Original Message-
From: Robert Miller [mailto:[EMAIL PROTECTED]
Sent: Thursday, August
I think the issue here is that user will never return.
So struts dude needs some kind of mechanism to check every so often to
see if the user has not returned in 24 hours. If the user has not came
back, he wants to delete that record.
So some timer mechanism is needed. His options.. Use resin
Hi Joe,
Which examples.war are you talking about??? I dont see
any examples.war.
All special characters in the text fields get
distorted.
--- Joe Hertz [EMAIL PROTECTED] wrote:
Are spanish characters not retained either?
Are you using Tomcat, and if so, are you using the
Instead of commenting out your validate() method
You can do something like this
public ActionErrors validate(ActionMapping mapping, HttpServletRequest request){
ActionErrors errors = super.validate(mapping, request);
// If we see the cancel key in the request, since your continue button
is a
struts lover wrote:
Yes, go ahead and override the validate method,
checking which button
was pressed, and then call super.validate() as usual.
The framework does have a page component, so the
validataion will only
validate the pages submitted.
Or you can just do what I do and manually call the
(I haven't tested the following, but I have heard that it works)
I believe the problem is that a different system is used for reading form fields when
a file upload is used. The current Struts system doesn't use the encoding supplied,
so it assumes the default Latin-1 encoding. I believe there
Hi,
I have an application written in struts and i want to return xml in the
response to the request. The request is being made from a client which makes
http connection to my servlet and posts the request to it. I was wondering
whats the best way to send the response back.
Option:
Setting the
-Original Message-
From: Gupta, Sahil [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 19, 2004 1:42 PM
To: 'Struts Users Mailing List'
Subject: Returning xml stream from struts
Hi,
I have an application written in struts and i want to return
xml in the
response to the
Wow, u guys r super. So many help.
I will go with Daniel's solution. To maximize portability, I think the best
solution is
not to depend on DB timestamp to delete it as different DB will have
different
ways of doing it, hence learning new things if change new DB.
Thanks guys.
:D
- Original
This is a general 'how do you do it if you do it' question about web
application design.
Here is the scenario.
Web Form:
-
ORDER HEADER
Order No: 0010
Order Date: 15/08/2004
Customer: __ LOOKUP CUSTOMER
Customer Name: ?
Anuj,
Thanks for you reply. But My concern is as follows.
e.g.
I display these records with checkbox on my JSP as follows
logic:iterator id= list name=name of the bean property=Name of the property
html:checkbox name=list property=chkflag indexed=true/
td /td
/logic:iterate
Hi
The following is the strategy I use. It may help. It may
also be bad practice so feedback welcome.
I am writing a simple app right now that only checks whether user
is logged in as ordinary user or admin. I use an utility class
UserUtil.java that has static methods for other Action to call.
Thanks Susan.
Refer to my comments below
Sebastian Ho
On Thu, 2004-08-19 at 21:23, Susan Bradeen wrote:
Sebastian Ho [EMAIL PROTECTED] wrote on 08/19/2004 05:19:35
AM:
hi
I used the same actionform for a few JSP pages, which I guess is good
practice. The problem occurs when I add
For diags: Can you just do a simple non tag el in a jsp w/o declaring?
.V
Erez Efrati wrote:
Hi,
I am working with Struts 1.1 + JST 1.0 tags.
I wish to use some of the fine features of JSP 2.0 like EL expression
everywhere I like instead of always putting c:out ... JSTL 1.0 tag.
I would also
Is there any way I can make URL's generated by struts, be absolute
including the protocol, hostname and port?
Thanks
***
This message is intended for the addressee named and
may contain confidential information. If you are not the
Erez Efrati wrote:
for using the html:hidden value=${some-el-expression} /
Just to note that the html:hidden refers actually the html-el:hidden.
What am I missing? Do I need another version of JSTL, Struts or what?
Make sure you are pointing to the correct html-el tag tld:
Can't remember if
I'm back!
After getting some jaas studies, i'm a little bit
better, so i can now formulate a better question.
Here it is... (I know that this is not only a Struts
question, because it envolves jaas, but i'm pretty
sure that people over here could give me some advise
on how to handle the problem).
keep the form in the session. When you click the
submit button, the changes get committed to the
database.
--- Jignesh Kapadia [EMAIL PROTECTED]
wrote:
Anuj,
Thanks for you reply. But My concern is as
follows.
e.g.
I display these records with checkbox on my JSP as
If the login is successful, keep the user object in
the session. In every action class, you can check
whether the user object/user exists in the session or
not. If not, redirect to login.jsp.
Maybe you can have the check in some super action
class so that you dont have to repeat the code in each
Try using the attribute/formAttribute in the action
mapping. I think it should work.
--- Sebastian Ho [EMAIL PROTECTED] wrote:
Thanks Susan.
Refer to my comments below
Sebastian Ho
On Thu, 2004-08-19 at 21:23, Susan Bradeen wrote:
Sebastian Ho [EMAIL PROTECTED] wrote
on
You can have a variable called action in your action
form. You can set that variable as view or edit. Now
for the first time, the action can be view. You lookup
for the customer. If you find, you display. If you
dont find, (check this with some c:if tag ) you
display a text field and a ADD
Hi,
I am migrating my Struts application from 1.1 to
1.2.1. I try to use ActionMessage(s) instead of
deprecated ActionError(s). However, the validate()
method in ValidatorForm still uses ActionErrors and in
some cases, I extend ValidatorForm to write my
customized validate() method. How do I deal
I have a definition like the below
definition name=temp
put name=var1 value=var1 /
putList name=tabList
item value=vchart tooltip=Chart link=tmp1.jsp/
item value=option tooltip=Properties link=tmp2jsp/
/putList
/definition
I write in my jsp file
tiles:insert definition=temp
Well did anyone?
I find them complicated, not useful, hard to use, maybe it's just me and =
because not many
documentation on these.
Can anyone provide links of tutorial to these?
BTW, ProcessBean is like a DTO, so there are a lot more better choice of =
tools
to use than ProcessBean right? say
Leandro, perhaps I didn't explain very well. As far as I know, there is
no way for you to intercept the login request and process the j_username
and j_password parameters yourself -- you have to let the container
receive the form submittal and process the login. This is why I said,
your login
Sorry, I may have mislead you here:
Erik Weber wrote:
Leandro, perhaps I didn't explain very well. As far as I know, there
is no way for you to intercept the login request and process the
j_username and j_password parameters yourself -- you have to let the
container receive the form submittal
96 matches
Mail list logo