,
Mohan
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Sunday, December 08, 2002 1:24 AM
To: Struts Users Mailing List
Subject: Question about adding ActionErrors
Hi,
i have a LoginForm ( ValidatorForm ), which will validate if username and
password is entered
? Doesn't help much.
Thanks,
Mohan
-Original Message-
From: Eddie Bush [mailto:[EMAIL PROTECTED]]
Sent: Saturday, December 07, 2002 2:08 AM
To: Struts Users Mailing List
Subject: Re: Best Practices for Logging?
Sri Sankaran wrote:
-Original Message-
From: Matt Raible [mailto
.
Thanks,
Mohan
-Original Message-
From: Brian Hickey [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 04, 2002 5:56 PM
To: Struts Users Mailing List
Subject: Re: abstract class
Mohan,
Two different behaviors is what you wish then you need to derive from a
concrete base class
then the
action cannot be instantiated.
How is this usually done?
Thanks,
mohan
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
-class of Action1 ?
3. Action2's perform method should be called.
Action1 and Action2 differ . So Action2 is a subclass of Action1.
Mohan
-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 02, 2002 10:27 PM
To: Struts Users Mailing
Hi,
I am looking for information on subclassing actions. Is there a way to
transfer control to the subclass if a certain check in the super action is
valid ?
Is this how this is done ? In normal OO, it happens based on polymorphism.
How is it done with struts ?
Thanks,
Mohan
Hi,
I figured that action mappings can be used to transfer control and the OO
stuff should be left to the struts framework.
Thanks,
Mohan
-Original Message-
From: Mohan Radhakrishnan [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 02, 2002 11:51 AM
To: [EMAIL PROTECTED]
Subject
and changing the color.
It could be something like
logic:iterate id=item name=table1
indexId=index offset=1
logic:equal value=bean:write
name=index/
/logic:iterate
Is this possible ?
Thanks,
Mohan
--
To unsubscribe, e
%
if ( index.intValue() % 2 == 0 ){
%
This is just to check the modulus and alternate colors in the HTML table.
Hope the subject of the mail is imaginative to attract attention.
Thanks,
Mohan
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail
and frameworks,
but between design patterns and architecture patterns that frameworks use.
It is like asking what architecture pattern does EJB use ?
Mohan
-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 25, 2002 11:12 PM
To: Struts Users
.
Solution : I set scope=request in the config. file
So this means that a new form bean will be created every request ?
Performance implications ?
Thanks,
Mohan
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Test
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
this ?
Thanks,
Mohan
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Hi,
Yes. We use this code from within a controller stored in the user
session. Now each user will get the controller from his session and call
this code from within the controller but even then this might be a bit
tricky. Our controller doesn't solve the problem. Isn't it ?
Thanks,
Mohan
you see something wrong here ?
Thanks,
Mohan
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
.
Thanks,
Mohan
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
are not using struts-el.
Thanks,
Mohan
Did you load tld file correctly in web.xml and declare struts-el in your jsp
file?
-Dan
- Original Message -
From: Mohan Radhakrishnan [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, November 17, 2002 5:27 AM
Subject: Struts-el/JSTL/dynamic img
is an example. If multiple users upload, and every file
is saved in the same directory, the java directory handle might have to be
shared. Is that right ? Won't it result in locking of the directory ?
Thanks,
Mohan
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e
= ${sessionScope.reportBean.reportID 39 and
sessionScope.reportBean.reportID 60}
/c:if
reportBean is the variable name put in one of the scopes.
reportID has a matching getter method.
Thanks,
Mohan
--
To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org
For additional
. Is this right ? Is there an and ?
Thanks,
Mohan
-Original Message-
From: Mohan Radhakrishnan [mailto:MohanR;hclcomnet.co.in]
Sent: Thursday, November 14, 2002 3:08 PM
To: 'Struts Users Mailing List'
Subject: logic-match/compare multiple values
Hi,
We need to match a report ID from one
=noDataForm
validate=false
scope=session
forward name=REPORTER path=/reports/report.jsp/
/action
Thanks.
Mohan
--
To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user
();
return errors;
}
} // and validate=false
I don't have any data. So I am just forwarding after setting a bean in the
session.
bean:write name=reportid property=reportID/
Mohan logic:greaterThan name=reportid property=reportID
value=19
Mohan /logic:greaterThan
Hi,
Do you usually check if the user is logged-in in every action ?
I can think of two ways to do this
1. Check the status in every action
2. Block the /context/xxx.action where 'xxx' is anything but 'login'
Am I right ?
Thanks,
Mohan
--
To unsubscribe, e-mail: mailto:struts-user
?
Accessing values like this just to set the selected value seems to be a
roundabout method. I am using collections in the tags.
Thanks,
Mohan
--
To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org
Hi,
Aren't form beans reused ? I thought only the reset is called.
Thanks,
Mohan
-Original Message-
From: Karr, David [mailto:david.karr;attws.com]
Sent: Tuesday, November 05, 2002 9:38 PM
To: Struts Users Mailing List
Subject: RE: Don't want the ActionForm to refill my form.
Is your
. Action is called.
Now if I print the values by accessing the getters in the form ( in my
action ), it should print.
Why would I get nulls for all values ? What could be wrong ? Appreciate any
pointers.
Thanks,
Mohan
--
To unsubscribe, e-mail: mailto:struts-user-unsubscribe
Hi,
If I return a non-empty ActionError from my validate method, struts
should return to the same JSP. This will happen if I specify the input
parameter for the action mapping.
Is this right ? It doesn't seem to work that way. Am I missing
something ?
Thanks,
Mohan
Hi,
Thanks. I though it was automatic ?
bye,
Mohan
-Original Message-
From: Max Kutny [mailto:mkut;umc.com.ua]
Sent: Thursday, November 07, 2002 6:13 PM
To: Struts Users Mailing List
Subject: Re: Return to same JSP
MR Hi, If I return a non-empty ActionError from my validate method
, Struts calls the
ActionForm's validate method.
4. If validate returns a non-zero-length ActionErrors object, Struts
forwards control to the ActionMapping's specified input path rather
than forwarding control to the action class associated with the
mapping
Thanks,
Mohan
-Original Message
?
Thanks,
Mohan
--
To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org
parameters to show? Is there a better
approach ?
bye,
Mohan
--
To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org
-- http://localhost/logoff.action
What is the best way to re-route to the login page when the user logs off?
Thanks,
Mohan
--
To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org
Hi,
I solved my problem by using an action and forwarding to the login page.
html:link page=/logoff.action .
html:img imageName=x src=images/x.gif width=38 height=34
border=0 alt=
/html:img
/html:link/td
Thanks,
Mohan
-Original Message-
From: Mohan Radhakrishnan
Sent: Friday
Hi,
The menus use img tags and href. I haven't tried this but html:link
page=/logoff.do loggoff/html:link is for text links?
bye,
Mohan
-Original Message-
From: Xavier Combelle [mailto:xcombelle;kaptech.com]
Sent: Thursday, October 31, 2002 4:15 PM
To: Struts Users Mailing List
onMouseOut=MM_swapImgRestore()
onMouseOver=MM_swapImage('x','','images/x.gif',1);
html:img name=x src=images/x.gif width=38 height=34 border=0
alt=
/html:img
/html:link
Shouldn't onMouseOut/onMouseOver be attributes of html:img? I will try
this.
Thanks,
Mohan
-Original Message-
From
forward to login.jsp.
Thanks,
Mohan
-Original Message-
From: Marcus Biel [mailto:Marcus.Biel;bmw.de]
Sent: Thursday, October 31, 2002 5:19 PM
To: [EMAIL PROTECTED]
Subject: Re: actions only for html:form ?
Well, of course you can put your image into the link instead of text,
just like
here ?
Thanks,
Mohan
--
To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org
tag if it really helps. The href shown above
already reloads the current page.
I am using a simple NoDataForm as advised.
How can I both reload the current page throught javascript and refresh the
session variable throught an action?
Will html-img help here?
bye,
Mohan
-Original Message
type=com.hcl.smartmanage.web.action.ReloadAction
name=noDataForm
scope=session
input=/x.jsp --- What will this JSP be ?
forward name=SUCCESS path=/mainscreen.jsp/
/action
bye,
Mohan
,
Mohan
--
To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org
like a phantom read ?
bye,
Mohan
-Original Message-
From: Craig R. McClanahan [mailto:craigmcc;apache.org]
Sent: Friday, October 25, 2002 10:12 PM
To: Struts Users Mailing List
Subject: Re: cross context notifications
On Fri, 25 Oct 2002, Mohan Radhakrishnan wrote:
Date: Fri, 25 Oct
Hi,
OK. What about several such arraylists/html:options ? We have around 10
drop-downs that are populated. Can't the reload intervene between arraylists
rather than midway through a single arraylist ? It seems that it can ?
Thanks,
Mohan
It depends on the precise implementation
? J2EE patterns is based on some other
original work.
bye,
Mohan
-Original Message-
From: Rick Reumann [mailto:maillist;reumann.net]
Sent: Tuesday, October 22, 2002 11:44 PM
To: Struts List
Subject: [J2EE] Does struts follow Sun's Core J2EE patterns
Over lunch I was discussing struts
briefcase[
like a session ] . The application itself should continue serving other
users.
There could be a limit on the number of time-consuming reports because the
server can't slow down.
Has anybody done this ? I don't mean the business logic here but the
web part using struts.
bye,
Mohan
Hi,
input=/a/bookSearch.jsp
Could you explain what this parameter means ? We have a similar requirement.
bye,
Mohan
Here is a simple example showing one way to deal with this type of
thing. There are no doubt lots of other ways to handle this.
Use case: library search. User page
Hi,
I am doing just that. Hope it works. Thanks.
bye,
Mohan
-Original Message-
From: Dave Derry [mailto:dderry;acm.org]
Sent: Monday, October 21, 2002 4:52 PM
To: Struts Users Mailing List
Subject: Re: How to add a pre-action
In addition to Phil's advice, if I understand you
and I am getting the correct size
printed on the screen.
jsp:useBean id=wanGroupOptions class=java.util.Vector
scope=application/
%= wanGroupOptions.size() %
What could be the problem ? Any ideas are appreciated ?
bye,
Mohan
This message and any attachments have been scanned for viruses
.
Everything seems to be correct but I see empty option tags in the 'view
source'. This is an ActionForm. Does it make a difference ? This is a copy
of the struts examples.
bye,
Mohan
This message and any attachments have been scanned for viruses during transmission
from HCL Comnet.
--
To unsubscribe
Hi,
Can you show a session timeout page when the session times out ? Do you
just listen to the event and forward ?
Is there a declarative way of doing that?
bye,
Mohan
This message and any attachments have been scanned for viruses during transmission
from HCL Comnet.
--
To unsubscribe, e
));
applicationOptions.add( new LabelValueBean( Label 1,
Value 1 ));
context.setAttribute( applicationOptions,
applicationOptions ); --- Application context.
Everything seems to be correct but I see empty option tags in the 'view
source'.
bye,
Mohan
This message
are
shown in reporterParameterForm, the submit will be to report.action. The
selected values should be retrieved from reporterParameterForm by
com.hcl.smartmanage.web.action.ReporterSelectionAction.
bye,
Mohan
This message and any attachments have been scanned for viruses during transmission
from
Hi there,
How to unsubscribe from the mailing list. Actually I want to change my mail
address because this is my work id.
Regards,
Nirdesh
--
To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
I had tried it many times but didn't work at all
James
I had not received any confirmation mail from them.
James
Yes I did many times but didn't work for me
Biju
makes all the difference 8-)
bye,
Mohan
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Hi,
Could it be done with the help of tag libraries? My tag libraries
don't connect with the database directly. So I use DTO's. They contain the
image and data for reports. Isn't there a way to pass my Stringbuffer to a
tag directly?
bye,
Mohan
-Original Message-
From: Jin Bal
than that of the presentation tier ? Any ideas ?
bye,
Mohan
-Original Message-
From: Andrew Hill [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 11, 2002 11:25 AM
To: Struts Users Mailing List
Subject: RE: Image rendering components
Hang on - you say I have a StringBuffer of HTML
. Any ideas?
bye,
Mohan
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Hi,
Yes. But I see empty 'option' tags being created. The bean is in
application scope.
bye,
Mohan
-Original Message-
From: deepank [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 09, 2002 6:45 PM
To: Struts Users Mailing List
Subject: Re: LabelValueBean
Hi,
is your
Hi guys,
I am just wondering if any one of you help me out in writing following
code...
Here is my problem
if(a0)
then make this button enable
else if(a0 aB)
then make this button disabled
logic:equal name=resDepDTO property=instBilledToDate value=0
html:submit
is there anyway to do this through tags, i mean logic tag
Shreyas, Kumar
am still missing something, i don't know why its not still working for me
Andrew Hill
bean:define id=foo name=resDepDTO property=
instBilledToDate/
logic:greaterThan name=resDepDTO property=installments value=%=foo
%
html:submit property=submitAction value=Delete disabled=true
onclick=return confirm('Do you Really want
to delete the record
Yes I do have this only value=%=foo%
it was typo
Andrew Hill
There are 2 ways either set it into form bean, I mean initialize with some
value
or
html:select property= value=HERE Is YOUR Selected value
.
.
.
.
Nirdesh
You must set your form bean into request
request.setattribute(Any Name, formBeanObject);
and don't forget to define your formBeanObject in your struts-config.xml
eg
form-bean name=InsertUpdateResDepositForm type=CLASS NAME /
action path=/InsertReserveDeposit
.
html:select property=wanLinks size=1
html:options collection=wanLinkOptions
property=value labelProperty=label/
/html:select
bye,
Mohan
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
HI,
O.K. It is ReportParameterForm. I am checking this because of the
following error.
javax.servlet.ServletException: Cannot find bean under name wanLinkOptions
I am referring to the html select example from the Struts examples package.
bye,
mohan
-Original Message-
From
bean name. Mine is similar.
html:select property=wanLinks size=1
html:options collection=wanLinkOptions property=value
labelProperty=label/
/html:select
bye,
Mohan
-Original Message-
From: deepank [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 30, 2002 4
,
Mohan
-Original Message-
From: David Graff [mailto:[EMAIL PROTECTED]]
Sent: Saturday, September 28, 2002 9:06 PM
To: [EMAIL PROTECTED]
Subject: Re: Pre-populating ActionForms
Override the 'reset' method of the ActionForm descendant, set your initial
values in there, then (most likely) when
to use
JSTL(Normal java beans) for this ?
The archives advise against pre-populating ActionForms because Struts has
to create them. Are there tag library examples anywhere ? Tag libraries
really make the Struts learning curve rather steep.
bye,
Mohan
--
To unsubscribe, e-mail: mailto:[EMAIL
documentation available
for tag handlers?
bye,
Mohan
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Hi,
Seems that the documentation for tag handlers is tricky. I've spend a
whole day on this functionality and it is still not working.
bye,
Mohan
-Original Message-
From: Rademacher Tobias [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 27, 2002 4:25 PM
To: '[EMAIL PROTECTED
.
html:select property=wanLinks multiple=true size=2
html:options property=wanLinkOptions/
/html:select
bye,
Mohan
-Original Message-
From: Martin Grebac [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 27, 2002 6:02 PM
To: Struts Users Mailing
are picked up using this
configuration
!-- Process selection of a report --
action
path=/report
type=com.hcl.smartmanage.web.ReportParameterAction
name=reportForm
scope=request
input=/visibleleftpanel.jsp
/action
bye,
Mohan
the selected
values automatically ?
The suggested answer http://www.husted.com/struts/tips/006.html .I
didn't understand this.
bye,
Mohan
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Hi,
I am not sure how Container-managed login security will affect Struts
loginform and loginaction. How do you forward to the main screen after login
in this case?
bye,
Mohan
-Original Message-
From: Eddie Bush [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 24, 2002 10:43 PM
' with the
bootstrap JSP file according to Ted Husted's 'scaffold' samples because the
initial JSP doesn't need any data to be entered.
Is this the right way?
bye,
Mohan
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Hi,
Since the WAR will be deployed on the client side - the whole web
application runs in their intranet - the client can unzip and see what is
inside and change it. So we were thinking of putting the locale information
inside java files.
bye,
Mohan
-Original Message-
From: Eddie
Hi,
Use Case Driven Object Modeling with UML:
A Practical Approach
by Doug Rosenberg and Kendall Scott
is a good reference. Look at the Top 10 mistakes in sequence diagrams. It
says that we should show only interesting and important flows.
bye,
Mohan
-Original Message-
From: alex hun
Hi,
The J2EE blueprints patterns related to MVC that struts implements seems
to be
1. Dispatcher view
2. Service to worker - Where exactly does this apply in struts?
3. View helper
4. Front controller
bye,
Mohan
-Original Message-
From: Narayana Reddy [mailto:[EMAIL PROTECTED
Hi,
Those are security issues like signed JAR's, obfuscation etc.
bye,
Mohan
-Original Message-
From: Brijesh NK [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 18, 2002 12:44 PM
To: Struts Users Mailing List
Subject: RE: Resource bundles
IF the client want to see, he can see
-in and plug-out the reporter business tier/graph
engine without affecting the presentation tier. This could still be possible
with tag libraries.
bye,
Mohan
-Original Message-
From: Susmita Pati [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 18, 2002 6:11 PM
To: 'Struts Users Mailing List
Hi,
Is there any way to load resource bundles with the associated
.properties files ? Though this seems to defeat the purpose, somebody here
thinks that the client can change the text files. Is there a way to put
these inside java files and have struts' tags access them?
bye,
Mohan
Hi,
Ours is a report engine doing just that. Kava, Struts, tomcat, JSP's.
http://cewolf.sourceforge.net/ posted here seems to be good but we already
have a design separating the reporter engine from the rendering
engine(Kava). The struts tier is separate.
bye,
Mohan
-Original Message
Hi,
The patterns that are implemented by struts seem to be
1. View helper
2. Service to worker
3. Dispatcher view
4. Front controller
How does it implement service to worker ?
bye,
Mohan
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto
simple
java classes ) ?
The business delegate and report controller are after the J2EE patterns
catalog. Actually the struts stuff ends before the business delegate in
our design.
Is this right?
bye,
Mohan
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail
back and forth. The DTO's will send report images and tabular data.
Is this approach right ? Should I be using some build-in struct
component for this ? I didn't find any references to any J2EE blueprint
patterns that struts already implements in the book by chuck caveness.
bye,
Mohan
, servlet filters can use XSLT to change the UI.
How is it done with struts?
bye,
Mohan
from:Mohan Radhakrishnan [EMAIL PROTECTED]
date:Fri, 30 Aug 2002 06:37:18
to: [EMAIL PROTECTED]
subject: Re: Personalised web pages.
Hi,
New struts user. We would like to have
Hi,
New struts user. We would like to have personalised web pages with
struts. Are skin designs with simple JSP's the only solution ? Should we be
storing the profile in the session and serve different content based on the
profile ? What other ways are there ?
bye,
Mohan
in the taglib directive.
%@ taglib uri=/WEB-INF/struts-xhtml.tld prefix=xhtml %
xhtml:text property=name/
I hope this works
Regards
Sreeram Mohan
- Original Message -
From: Mike Dewhirst [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, August 17, 2001 4:06 PM
Subject: tag libs (html
Hi
If this is the exact code you forgot to end this tag. close the tag
properly it will work.
html:options name=userAdminFacade property=allUsers
change that line to this
html:options name=userAdminFacade property=allUsers/
Sreeram Mohan
- Original Message -
From: Rajshree
Sreeram Mohan
Hi all !
We're trying to use the forward attribute in the struts-config.xml, and
its
working just fine.
But is it possible to have more than one parameter in the url ?
ex.
forward name = new path =
/contactinformationdetails/contactInformationDetails.do?caller=contactInfor
201 - 294 of 294 matches
Mail list logo