/
--
Peter Pilgrim ++44 (0)207-545-9923
Swamped under electronic mails
Message History
From: Galbreath, Mark [EMAIL PROTECTED] on 30/04/2002 18:15 AST
=com.acme.struts.digester.ActionProcessor
--
Peter Pilgrim ++44 (0)207-545-9923
Swamped under electronic mails
Message History
From: [EMAIL PROTECTED] on 26/04/2002 07:46 AST
and downloadable and plug-in able.
Unless my understanding my of XML and namespaces is completely wrong
this should in theory work in principle?
--
Peter Pilgrim ++44 (0)207-545-9923
Swamped under electronic mails
Struts could be helpful.
Web architecture diagram.
May be a UML diagram might help here.
--
Peter Pilgrim ++44 (0)207-545-9923
Swamped under electronic mails
Message History
on the books I buy. So I am always making tough decision
about any books especially in this touch economic environment,
but I felt this new one was worth the £28.50.
--
Peter Pilgrim ++44 (0)207-545-9923
Swamped under electronic mails
width=97 height=32 border=0 /html:link
--
Peter Pilgrim ++44 (0)207-545-9923
Swamped under electronic mails
Message History
From
bookstore/newsagent that opened in London, Oxford,
Cambridge a few years back. I picked up my copy of JavaPro at
Borders in Charing Cross Road, in London's West End.
--
Peter Pilgrim ++44 (0)207-545-9923
Swamped under electronic mails
I got this copy, and I think, it's great.
--
Peter Pilgrim ++44 (0)207-545-9923
Swamped under electronic mails
Message History
From
I actually type in the code very badly. The accessor method should have
been this
public CcyItem getCurrencyItem( String ccy ) {
return (CcyItem)mapItem.get( ccy );
}
--
Peter Pilgrim ++44 (0)207-545-9923
know the property key have to be `java.lang.String' ?
--
Peter Pilgrim ++44 (0)207-545-9923
Swamped under electronic mails
Message History
From
) { }
publicvoidset{ AttributeName}( String key, {XYZ} value ) {
}
--
Peter Pilgrim ++44 (0)207-545-9923
Swamped under electronic mails
Message History
wrote a HTML Input Text field like so
html:text property=currencyItem(USD).amountAsText size=10 maxlength=20 /
but it does not work because I think that Struts 1.1 does not populate mapped
properties!
Is it me or is it Struts?
Can someone else verify that it is working?
--
Peter Pilgrim
; }
public void setCreditDetail( CreditDetailDAO c ){ this.cred = c };
}
Then JSP can be written like so bean:write name=obj
property=creditDetail.authority /
--
Peter Pilgrim ++44 (0)207-545-9923
Swamped under electronic mails
Well this would solve some URL: design problems. FInally
mapped URL `http://jcorporate.com/products/expresso' can become a reality.
More seriously where is this path-mappings XML coming from?
I have never seen this grammar before.
--
Peter Pilgrim ++44 (0)207-545-9923
.
--
Peter Pilgrim ++44 (0)207-545-9923
Swamped under electronic mails
Message History
From: Matt Raible [EMAIL PROTECTED] on 06/03/2002 07:41 PST
getAccessibleMethod()
back into the new file. Change the lines to revert back to
return ( getAccessibleMethod(descriptor.getReadMethod()) );
return ( getAccessibleMethod(descriptor.getWriteMethod()) );
Recompile Struts 1.0.2 using Ant
Should work now
--
Peter Pilgrim
://www.theserverside.com/resources/article.jsp?l=Expresso-Struts
http://www.theserverside.com/resources/articles/Expresso-Struts/Expresso_Framework_Struts.pdf
In this article, Peter Pilgrim looks at the best practice of using a popular web
application toolkit, The Expresso Framework. The Expresso Framework, until
nasty especially the underscores but I think it could work.
Comments
--
Peter Pilgrim ++44 (0)207-545-9923
Swamped under electionic mails
--
This e-mail may contain confidential and/or privileged information. If you
, that
every navigation invokes an ACTION that generates a VIEW
and I never navigate to VIEW directly
then you can write logic to reactivate beans that have been timed-out,
or take appropriate countermeasure in your Struts Action.
--
Peter Pilgrim ++44 (0)207-545-9923
.
The sleeper or swiper continuous timer wakes up every
10 minutes or so iterates through the attributes in the session
looking especially for Leasable object. Remove any Leaseable
object that has expired the maximum idle time.
I do not how this scale across application servers, though.
--
Peter Pilgrim
NO!
Either create the simple date format for each user;s session
public final static String UNIVERSAL_DATE_FORMAT_KEY= UNIVERSAL_DATE_FORMAT
session.setAttribute( UNIVERSAL_DATE_FORMAT_KEY,
new SimpleDateFormat( -MM-dd ) );
or put it in the application context.
--
Peter
for someone to write for Struts 1.1!!!
--
Peter Pilgrim ++44 (0)207-545-9923
Swamped under electionic mails
Message History
From: Ted Husted [EMAIL
. Not sure what is means, though.
--
Peter Pilgrim ++44 (0)207-545-9923
Swamped under electionic mails
Message History
From: John Menke [EMAIL
Hi
Just a quick note
This might be relevant to those of you interested Jakarta Struts and Expresso.
--
Peter Pilgrim ++44 (0)207-545-9923
Swamped under electionic mails
-- Forwarded by Peter Pilgrim on 24/01
his is exactly same problem that I had for dynamic javascript handlers for say
htm:button.
--
Peter Pilgrim ++44 (0)207-545-9923
Swamped under electionic mails
Message History
-
directly, because the discussion like this one,
should take place under expresso mailing list.
I dont wanna swamp other people with mail.
=== MOVE DISCUSSION OFF LIST =
--
Peter Pilgrim ++44 (0)207-545-9923
objects, especially if you work database-driven
applications. It is missing communication with store procedures
though.
HTH
--
Peter Pilgrim ++44 (0)207-545-9923
Swamped under electionic mails
) /
%-- orderForm.getBusinessObject().getField( ProductId ) --%
So I am looking forward to next release, of course!
--
Peter Pilgrim ++44 (0)207-545-9923
Swamped under electionic mails
Message History
Expresso setting is usually:
username: Admin
password: blank
--
Peter Pilgrim ++44 (0)207-545-9923
Swamped under electionic mails
Message History
.
Oh well.
HTH
--
Peter Pilgrim ++44 (0)207-545-9923
Swamped under electionic mails
Message History
From: Vaughan Jackson [EMAIL PROTECTED] on 09/01
an old Struts example into an Expresso one. It should
be made easier or as easy as possible. I would Expresso 4.0 is still new,
and these issues dont get played until someone try to build
an application with the intention of going __live__.
0.02P
--
Peter Pilgrim ++44 (0)207-545-9923
Source) at
org.apache.tomcat.util.threads.ThreadPool$Contr
--
Peter Pilgrim ++44 (0)207-545-9923
//_\\
Mathematics is essentially the study of islands of ===
disparate subjects in a sea of ignorance
You could also try expresso frameworks.
Somewhere between EJB / J2EE and bare bones Struts
http://www.jcorporate.com/
--
Peter Pilgrim ++44 (0)207-545-9923
Message History
From: Vic Cekvenich
Great Ball Of Fire!!!
Still it work with tomcat 4.0 at least. Except production environment is Tomcat 3.2!
--
Peter Pilgrim ++44 (0)207-545-9923
Message History
From: Cedric Dumoulin [EMAIL
Search the archive for transaction forward. Because I proposed a solution.
Put a forward mapping in the action mapping that redirect to the state to the initial
prompt form.
--
Peter Pilgrim ++44 (0)207-545-9923
server in the real session.
Has any one done this before?
Also more info at
http://jakarta.apache.org/commons/httpclient/api/index.html
--
Peter Pilgrim ++44 (0)207-545-9923
--
This e-mail may contain confidential and/or privileged information. If you are not the
intended
I want to customise the errors messages for invalid data entry.
Where can I get my hands on the html:messages tag?
This tag does not exists Struts 1.0 ?
Or how can use the present tags to iterate through the
error messages?
--
Peter Pilgrim ++44 (0)207-545-9923
like it will be a tiny custom tag action
project somebody.
pp:errorCollection id=oneError indexId=counter
bean:write name=oneError filter=false /
pp:errorCollection/
Let me know how you get on!
--
Peter Pilgrim ++44 (0)207-545-9923
in to the database again [double-insertion] which
is what transaction tokens are designed to protect. So the user ends
up getting very __frustrated__ after going round and around in circles.
Not good for any professional web application!
http://www.xenonsoft.demon.co.uk/axioms2.html
--
Peter Pilgrim
to the restart page
html:button value=Continue /
/html:form
/logic:present
I know html:form does not support a forward tag attributes. Any Suggestion?
--
Peter Pilgrim ++44 (0)207-545-9923
//_\\
Mathematics is essentially
Is this J2EE standard feature sessio.setAttribute() or is it web logic specific?
--
Peter Pilgrim ++44 (0)207-545-9923
//_\\
Mathematics is essentially the study of islands of ===
disparate subjects in a sea of ignorance
Use a either TreeSet for your label keys.
Or convert the collection to java.util.List then use Collections.sort( List )
provided you make your elements Comparable.
--
Peter Pilgrim ++44 (0)207-545-9923
//_\\
Mathematics
with promptForm (provided of course it has accessor/mutator
DVDActionForm extends DefaultActionForm {
String action=;
String getAction() { }
void setAction(String) { ... }
}
--
Peter Pilgrim ++44 (0)207-545-9923
there is
DataMissing ?
My thought for the day:
One day I hope X/HTML 5.0 will introduce ComboBoxes
combobox value=Default Text
option value=aalpha/option
option value=aalpha/option
/combobox
--
Peter Pilgrim ++44 (0)207-545-9923
much worked out.
So I dont expect a lot changes to JSP standard action. Although you could add
standard index property jsp:getIndexProperty index=0 ... /. I expect changes
to be in behaviour of custom tags though.
--
Peter Pilgrim ++44 (0)207-545-9923
mapping.findForward(nextStrutsAction );
--
Peter Pilgrim ++44 (0)207-545-9923
//_\\
Mathematics is essentially the study of islands of ===
disparate subjects in a sea of ignorance. || ! ||
Andrew Wiles
Are you sure that you can see the scoped bean. Try some debugging
to the console.
%
System.out.println( *ACE* news letter form bean =+
pageContext.findAttribute( newsletterForm ) );
%
--
Peter Pilgrim ++44 (0)207-545-9923
') /
html:submit value=Remove It!
onclick=FormSetValueHiddenParam('action','remove') /
html:submit value=Change It!
onclick=FormSetValueHiddenParam('action','change') /
/htm:form
Comprende , Kappich, Understand
U.T.F.O
--
Peter Pilgrim
The javascript bible says that select does not have the form property.
You have to probably pass the form ID as a parameter.
--
Peter Pilgrim ++44 (0)207-545-9923
//_\\
Mathematics is essentially the study of islands
Unfortunately the current html:options requires that you use bean:define
indirectly to use the tag.
define:bean id=brokerLabelValues
name=brokerForm
property=brokers /
html:options collection=brokerLabelValues
property=value labelProperty=label /
--
Peter Pilgrim
\
\
E
\
\
A(T)
It may be as simple as mergeing `init( ServletConfig )' methods,
let us know how you get on!
--
Peter Pilgrim ++44 (0)207-545-9923
//_\\
Mathematics is essentially the study of islands
to flush().
That should be it unless any body knows otherwise.
--
Peter Pilgrim ++44 (0)207-545-9923
//_\\
Mathematics is essentially the study of islands of ===
disparate subjects in a sea of ignorance. || ! ||
Andrew
().equals(process)) {
...
}
else if (acmeForm.getAction().equals(rollback)) {
...
}
}
}
--
Peter Pilgrim ++44 (0)207-545-9923
//_\\
Mathematics is essentially the study
collection=privateDancer
property=optionValue
labelProperty=optionName /
Eh voila!
--
Peter Pilgrim ++44 (0)207-545-9923
//_\\
Mathematics is essentially the study of islands of ===
disparate
() = optionLabel
valueAccessor - defines the name of the property that from the current
collection retrieves the value.
getOptionValue() = optionValue
--
Peter Pilgrim ++44 (0)207-545-9923
//_\\
Mathematics
and put that in the ActionForm base
class.
class BaseActionForm {
public static ActionErrors addActionErrors(
ActionErrors e1, ActionErrors e2 ); //DOH!
}
--
Peter Pilgrim ++44 (0)207-545-9923
//_\\
Mathematics
);
... // post -process checking U desire
return forward;
}
--
Peter Pilgrim ++44 (0)207-545-9923
//_\\
Mathematics is essentially the study of islands of ===
disparate subjects in a sea of ignorance
I am developing with Jakarta projects like Struts and Log4J right here at Deutsche
Bank,
OTC Derivatives IT, London
--
Peter Pilgrim ++44 (0)207-545-9923
//_\\
Mathematics is essentially the study of islands
( ) { }
public void runProcessLoginState( ) { }
public void runPromptSubscriptionState( ) { }
public void runProcessSubscriptionState( ) { }
}
--
Peter Pilgrim ++44 (0)207-545-9923
//_\\
Mathematics
#2
ActionA extends Action
{
ActionForward perform(...)
{
response.sendRedirect( response.getEncodedURL(
request.getContextPath()+/actionB.do?command=XY) );
return null;
}
}
--
Peter Pilgrim ++44 (0)207-545-9923
=description/
HTH
--
Peter Pilgrim ++44 (0)207-545-9923
//_\\
Mathematics is essentially the study of islands of ===
disparate subjects in a sea of ignorance. || ! ||
Andrew Wiles
property=currentDate /
/pp:text
Which produces this HTML
input type=text name=currentDate value=25-Oct-2001
How do write an ActionForm method mutator that converts the
String form 25-Oct-2001 to a proper java.util.Date.
Should I write a void setCurrentDate( String ) method?
--
Peter Pilgrim
(
value, new String[] { dd-MMM- , dd-MM- } );
bo.setCurrentDate( date );
}
}
--
Peter Pilgrim ++44 (0)207-545-9923
//_\\
Mathematics is essentially the study of islands of ===
disparate subjects
--
Peter Pilgrim ++44 (0)207-545-9923
//_\\
Mathematics is essentially the study of islands of ===
disparate subjects in a sea of ignorance. || ! ||
Andrew Wiles
Pilgrim ++44 (0)207-545-9923
//_\\
Mathematics is essentially the study of islands of ===
disparate subjects in a sea of ignorance. || ! ||
Andrew Wiles __
-- Forwarded by Peter
I am receiving mail from the struts user.
But I cant see any mail that I sent to the list earlier today (?!).
Mailserver down?
--
Peter Pilgrim ++44 (0)207-545-9923
//_\\
Mathematics is essentially the study of islands
Ted . s the mailing listserver working?
--
Peter Pilgrim ++44 (0)207-545-9923
//_\\
Mathematics is essentially the study of islands of ===
disparate subjects in a sea of ignorance. || ! ||
Andrew Wiles
Leave it with me I see what I can do.
--
Peter Pilgrim ++44 (0)207-545-9923
//_\\
Mathematics is essentially the study of islands of ===
disparate subjects in a sea of ignorance. || ! ||
Andrew Wiles
be? I would like place a lot of the content in this
custom tag? I am wondering if this is good idea or if there is a pitfall
in performance or memory Cedric?
--
Peter Pilgrim | |++44 (0)207-545-9923
of the above, allows for multiple beans
and condensing it to smaller size:
app:guardPage
beanList=SUBSCRIPTION_LIST|LOGIN_PROFILE|REPORT_PROFILE
page = /SelectSubscription.do?action=List
/
--
Peter Pilgrim | |++44 (0)207-545-9923
a hard core
XML to HTML transformation. inJjava
--
Peter Pilgrim | |++44 (0)207-545-9923
\ \ ___ / / ... .
- ( * ) --- --
_Cafe_Savannah,_San Antonio,Ibiza__
Message
You find out about RSS from
`http://groups.yahoo.com/group/rss-dev/files/namespace.html'
This is the RSS 1.0 though
--
Peter Pilgrim | |++44 (0)207-545-9923
\ \ ___ / / ... .
- ( * ) --- --
_Cafe_Savannah
and the OutOfMemoryException.
I am thinking more along these lines, smells like custom tag again.
But is it worth it, if Jonathon is absolutely correctly?
thoughts...
--
Peter Pilgrim | |++44 (0)207-545-9923
Where is the Tiles Project?
--
Peter Pilgrim | |++44 (0)207-545-9923
\ \ ___ / / ... .
- ( * ) --- --
_Cafe_Savannah,_San Antonio,Ibiza__
--
This e-mail may contain confidential and/or privileged
Interesting I tried the first URL and I got a connection timeout.
Now it working for me again. It must be NET NAPPY here at work!!!
--
Peter Pilgrim | |++44 (0)207-545-9923
Still another way is to do what Debassish suggest and then add the
action listener classes in the way that Gary Geary suggests
in his Advanced Java Server Pages book. In the book
action events (nothing to do with JFC/Swing) are fired in the Preprocess
and the Postprocess stages.
--
Peter
--
Peter Pilgrim | |++44 (0)207-545-9923
\ \ ___ / / ... .
- ( * ) --- --
_Cafe_Savannah,_San Antonio,Ibiza__
--
This e-mail may contain confidential and/or privileged information. If you
it if it has not done it yet? If you can do
that then you could call the action by pseudo action
to populate the bean?
Can you call an action without an action form?
--
Peter Pilgrim | |++44 (0)207-545-9923
are receiving are correct?
--
Peter Pilgrim | |++44 (0)207-545-9923
\ \ ___ / / ... .
- ( * ) --- --
_Cafe_Savannah,_San Antonio,Ibiza__
Message History
Ah! but what if your action redirects to a view JSP, and then they book mark that?
Are we talking the same lingo here. What do you mean by link to action mappings ?
--
Peter Pilgrim | |++44 (0)207-545-9923
the best solution is to use JavaScript to move items from
select list to select list on the client side.
Look at the configuration option in I think, http://my.netscape.com/
to what they do over there.
--
Peter Pilgrim | |++44 (0)207-545-9923
Yes look in struts-config.xml for the answer. There should be a reload action
unless you deleted it. Type in the URL in to your browser
`http://localhost:8080/web-app/admin/reload.do'
Bookmark it!
--
Peter Pilgrim | |++44 (0)207-545-9923
{
String firstName=foo, lastName=bar;
getFirstName() { ... }
...
}
It worked as expected. Damn!
--
Peter Pilgrim | |++44 (0)207-545-9923
\ \ ___ / / ... .
- ( * ) --- --
_Cafe_Savannah,_San
If it aint broke, why fix it?
--
Peter Pilgrim | |++44 (0)207-545-9923
\ \ ___ / / ... .
- ( * ) --- --
_Cafe_Savannah,_San Antonio,Ibiza__
--
This e-mail may contain confidential and/or privileged
Looks ok, except for message from the CEO!!!
--
Peter Pilgrim | |++44 (0)207-545-9923
\ \ ___ / / ... .
- ( * ) --- --
_Cafe_Savannah,_San Antonio,Ibiza__
calls. Since everytime
you call DataForm.getVo().getHello() you are making
another an RMI call with network overhead. The only way to stop
this is to pass another container object back and forth
between the UI bean and the EJB.
Thoughts?
--
Peter Pilgrim | |++44 (0)207-545-9923
)?
Is it worth future-proofing non-J2EE web apps now?
Thoughts
--
Peter Pilgrim | |++44 (0)207-545-9923
\ \ ___ / / ... .
- ( * ) --- --
_Cafe_Savannah,_San Antonio,Ibiza__
td
html:password name=ejb.valueobject.password maxlength=16 /
/td
/tr
/table
/form
I would like my action form populated like so:
getEjb().getValueObject().setPassword( password-entered );
Does this work ?
--
Peter Pilgrim | |++44 (0)207-545-9923
Then it must be me, then, because my Struts is not finding the form.
In the Action.perform() method form parameter is a NullPointerException!
--
Peter Pilgrim | |++44 (0)207-545-9923
-config.xml and it looks correct to me.
How do a find out what the bug is ? Any tips, hints?
Ta very much
--
Peter Pilgrim | |++44 (0)207-545-9923
\ \ ___ / / ... .
- ( * ) --- --
_Cafe_Savannah,_San Antonio
PArser then you should copy the xerces.jar into $TOMCAT_HOME/common/lib
Moral:Check your classpaths.
--
Peter Pilgrim | |++44 (0)207-545-9923
\ \ ___ / / ... .
- ( * ) --- --
_Cafe_Savannah,_San Antonio,Ibiza__
in that CORE J2EE PATTERNS book.
--
Peter Pilgrim | |++44 (0)207-545-9923
\ \ ___ / / ... .
- ( * ) --- --
_Cafe_Savannah,_San Antonio,Ibiza__
Message History
property=tableRowBackgroundHTML
...
tr
/table
Thoughts on this cheap and nasty __personalisation__ strategy.
--
Peter Pilgrim | |++44 (0)207-545-9923
\ \ ___ / / ... .
- ( * ) --- --
_Cafe_Savannah,_San
How do I get a *.css file recognised as valid Java Server Page?
--
Peter Pilgrim | |++44 (0)207-545-9923
\ \ ___ / / ... .
- ( * ) --- --
_Cafe_Savannah,_San Antonio,Ibiza__
;
h1 | green | color:#00FF00 ;
h1 | blue | color:#FF;
select Element , Defn from CSSDEF where Name=Red and Element=h1
I will think about this a bit more, still fuzzy ...
--
Peter Pilgrim | |++44 (0)207-545-9923
'
You dont have to wrote about the issue then
Also rather than storing the style definitions in the database it might be better
to store just the class name themselves associated with each HTML Element
and then define the style as normal in the CSS internal or external
--
Peter Pilgrim
Where can I find out more information about your ValueObjects
What are the pros ? What are the cons?
--
Peter Pilgrim | |++44 (0)207-545-9923
\ \ ___ / / ... .
- ( * ) --- --
_Cafe_Savannah,_San Antonio
=enterprise / /
--
Peter Pilgrim | |++44 (0)207-545-9923
\ \ ___ / / ... .
- ( * ) --- --
_Cafe_Savannah,_San Antonio,Ibiza__
Message History
Has any one written a number format tag or date format tag for Struts?
I written a simple subclass of the org.apache.struts.taglib.bean.WriteTag , but
if there is something better ...
--
Peter Pilgrim | |++44 (0)207-545-9923
.
--
Peter Pilgrim | |++44 (0)207-545-9923
\ \ ___ / / ... .
- ( * ) --- --
_Cafe_Savannah,_San Antonio,Ibiza__
Message History
1 - 100 of 111 matches
Mail list logo