My friend is getting following erroe when he uses JDK
1.4.1_02.
But his code runs fine on JDK 1.4.1_03.
[ServletException in:_form.jsp] Unable to compile
class for JSPNote: sun.tools.javac.Main has been
deprecated.
../ClassCache/https-srs/_form_jsp.java:2321: Variable
_jspx_th_html_password_2
May be Ant task can help in your environment.
HTH
Manish Singla
Jim Anderson wrote:
We have many apps that require the same global forwards. Rather than
copy this info into the config file for each app, we'd like to be able
to place it in a struts-config file that lives somewhere
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Thanks
Manish Singla
x73166
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hello :
Please suggest any 'Ant tool' which automatically generates class
diagrams from source code.
Thnx
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
bean:write cannot support index as bean:write just writes as plain text.
See if html:text with configuration of attributes works for you
HTH
Manish Singla
Patrick Cheng wrote:
Hi all,
I guess it should be an easy question about logic:iterate.
I can do this:
logic:iterate name=myForm
It will not work. How are you passing mapping :-).
You may forward action to another action and again to third action.
(or else write common business functions outside actions and call them in actions).
HTH
Manish Singla
Raman wrote:
Hi Freinds,
I have a page where i need to show data
There can be only one default message-resources.
Second message-resources should have key attribute.
You have to use this key attribute in jsp custom tags or... to locate
second message-resources..
HTH
Manish Singla
Clark Kent wrote:
All,
I am trying to have 2 ApplicationResources.properties
include a String our a Date type for date input
fields ?
ActionForm will be String only. And after that you have to do validation.
Do you know about some documentation I could help for this purpose ?
Fred
HTH
Manish Singla
It is explained well here
http://jakarta.apache.org/struts/userGuide/struts-html.html#messages
HTH
Manish Singla
John Topley wrote:
I read somewhere that the html:errors tag is going to be deprecated and that
html:messages should be used instead. What's the correct syntax for using it
to display
how can I load different resource bundles(if I have many message
resources)
from struts in stylesheet?
Using XSLT makes no difference. You may use same struts custom tags in
XSLT as you may use without XSLT. It works in our implementation.
Manish Singla
Peng, Meimin wrote:
Hi,
I got
the
SecurityConstraint bean to my sample action mapping.
Impatiently waiting for your answers
regards
Sebastian
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Thanks
Manish Singla
Since you are setting
log4j.rootLogger=warn, rolling
log4j.category.org.apache=warn, rolling
Thus, you should not see DEBUG messages of commons.
Problem is somewhere else.
HTH
Manish Singla
PS:: Setting debug level in web.xml i.e. init-param is deprecated.
Thus, I will configure logging
You can connect to database by extending PropertyMessageResources of
struts.
PropertyMessageResources has loadLocale method wherein struts use
getResourceAsStream(proprtyFileName)... Thus, instead of that you have
to connect to database to load it.
Manish Singla
and we don't have to rely
renderer..
Manish Singla
Kirk Wylie wrote:
See below.
Linus Nikander wrote:
Then I have lots of display information only-pages. Most of these are
tables that are based on some sort of DB table. Right now I:
Call a struts Action.
The Action retrieves the data, populates a boatload of Beans.
The Beans
]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Thanks
Manish Singla
x73166
-
To unsubscribe, e-mail: [EMAIL PROTECTED
that keeps a page stack, and is able to push and pop pages so that
the user can always be sent back one step (or more).
--
Thanks
Manish Singla
x73166
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL
WntFramework is in application context and not in request.
Manish Singla
Matt Minyard wrote:
Hi,
I have defined a Message Resource defined in my struts-config.xml file like:
message-resources parameter=wnt-FrameworkResources key=WntFramework null=false/
I can access the key
Hi
Use following
MessageResources mr = ((MessageResources)
request.getAttribute(Globals.MESSAGES_KEY));
Instaed of
MessageResources mr = request.getMessageResources();
HTH
Manish Singla
Honza Spurn wrote:
Hi there,
I'm able to read values from MessageResources in JSP files. But in special
Because when you forward to Action B, at that time Struts Request
Processor again processes Action Form. (FYI: In Action B, request is
still having old values from Form F. Thus, values are reset and populated)
HTH
Manish Singla
bort wrote:
Hi all
I have an application which exhibits two
]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Thanks
Manish Singla
x73166
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Use this
/author/loginAuthor.do
in html-el:form
HTH
Manish Singla
Matt Pease wrote:
Hi all --
I'm trying to move to struts 1.1 multiple application modules
am getting a very frustrating error that I can't seem to move around. I've
searched the archives haven't found a solution. Bummer
Messages and more.Download now.
--
Thanks
Manish Singla
x73166
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
in ActionMapping (for Action A) which
will store bean in request/session scope. After that you have to create
instance in Action B
HTH
Manish Singla
Eric Saya wrote:
Thanks for this answer Manish,
what would you do if you need to change the value of one form parameter in
action A and you
Linus Nikander wrote
As a single textfile is used, when there are several thousand entries it
will become difficult to manage.
As somebody already suggested you may use multiple bundles.
I have extended struts to have inheritance between bundles.
Thus wrote own factory/class for message
for respective ActionForms.
Request parameters to set values in ActionForm will be available in both
actions.
Thanks
Manish Singla
Yury Rabiankou wrote:
Hello everybody,
I cannot understand the following passage from Ted Husted's Struts in
Action (p.228):
If you forward from one Action to another
Use bean:define.../ to retrieve value from properties file and store value as
scripting variable.
Example:
bean:define id=varSize
bean:message key='login.jsp.size.user'/
/bean:define
html:text property=user
size=%= varsize%/
By the way, your both ways will give compilation error
Example in web.xml
param-nameconfig/param-name
param-valuestruts-default.xml,struts-config1.xml/param-value
Now, above may cause naming collision.
Thus, name actions may be like mod1_ActionsOfModule1.do
Other way is struts modules...
Parthasarathy Kesavaraj wrote:
Is it
When you forward to ActionB, than ActionB has request object.
Thus ActionFormB is populated
Following code explains
requestDispatcher.forward(request, response);
Rajani Gudi wrote:
Hi
I have 2 form beans in request scope. Say formbean A and formBean B. I
have some fields common in both
of the bean:write
tag..and can i use it to round off numbers in the presentation layer to
the number of significant digits i want?
thanks in advance.
rajat
--
Thanks
Manish Singla
x73166
-
To unsubscribe, e-mail: [EMAIL PROTECTED
I am looking for resources (links/books/suggestions) for Struts best
practices.
We are migrating a huge WEB app from (40% struts 60% in 4 other MVC
frameworks) to 100% struts.
We want to document/standardize as our team is at 5 different geographic
locations.
Thanks
Manish Singla
.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Thanks
Manish Singla
x73166
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Thanks
Manish Singla
x73166
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
action class will be
available even to the second action
class in the chain?
Regards,
Ashutosh
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Thanks
Manish Singla
x73166
You may use
html:hidden property=keyValue value=%= username%/
just a note:
you may use .
bean:parameter id=username name=REMOTE_USER value=null/
instead of
request.getRemoteUser();
Manish Singla
Caroline Jen wrote:
html:hidden property=dispatch value=author/
works well because author
of passing 'parameters' not 'attributes'.
So even if I pass a collection in this way I am getting string representation of
collection, not the collection object.
How should I go about it.
Help please. thanx a lot
Imran.
Imran
--
Thanks
Manish Singla
x73166
Try this..
// second bundle
MessageResources res2 = (MessageRessource)request.getAttribute(prop2).
I assume you are not using struts modules.
see following also...
org.apache.struts.action.Action
protected MessageResources getResources(javax.servlet.http.HttpServletRequest request,
You may try following (from your example)
bean:message key=approval.001 bundle=message1/
where bundle attribute maps to key attribute in message-resources ...
tag
You may have one default bundle.
Thus for default bundle ...no need to give key in message-resouces
...tag..
for that bundle
to use 2 resource files in one
struts-config.xml?
Date: Wed, 29 Oct 2003 08:56:53 -0800 (PST)
Hi,
some how bean:message key=approval.001
bundle=message1/
does not work i still get the missing resource
error,
how do i define the default bundle??
i am not using struts module
Ashish
--- Manish Singla
Yes, you can and that is what is true definition of unit testing.
My two cents:
Look for In Container testing while testing Servlets, EJBs, and Struts (Actions). It
may be little difficult to generate all objects generated automatically by containers
(Servlet/EJB) and frameworks(Struts)..
You may list all tiles-def files with comma delimiter in struts-config.xml.
eg tiles-def1.xml,tiles-def2.xml
hmmm I have not tried it but may be place tiles-global.xml in front of
tiles-client.xml. If last one overwrites than you may achieve inheritence..
Manish Singla
[EMAIL PROTECTED] wrote
attributes while declaring
RequestProcessor. thus above will provide you all attributes
Manish Singla
Mahin Jeyachandran wrote:
Good day,
I'm new to struts framework...
Where and when will we use the following code...?
org.apache.struts.config.ModuleConfig appConfig
--
ApplicationResouces_xx_ZZ.properties ( which is DEFAULT Locale) --
ApplicationResources.properties
Thanks
Manish Singla
Nick Heudecker wrote:
Afternoon all,
I've written a short article detailing usage of the message resources
functionality with Struts. It seems like a lot of people are having
problems
Actionform as such:
String userName = ((LoginForm) form).getUserName();
We downcast in Action because in Action we receive base class ActionForm.
Thanks,
SB
Manish Singla
--
NOTICE: If received in error, please destroy and notify sender. Sender
does not waive confidentiality or privilege, and use
,
Bob
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Thanks
Manish Singla
x73166
-
To unsubscribe, e
can rule out reset() as the source of the
problem.
Thanks.
SB
Manish Singla wrote:
Please see below ..
Sonam Belbase wrote:
I'm trying to understand ActionForms a bit better and here is my
question:
If the servlet controller automatically invokes the reset() method
before passing the ActionForm
clean them up, so streaming it is ideal.
If it matters, we are using JBoss 3.2.2 as the app server.
Thanks in advance,
Robb
--
Thanks
Manish Singla
x73166
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail
Keith Pemberton wrote:
Experts,
I'm struggling with using the View Helper pattern. In my logical way of
thinking, when a request to any jsp page is made, then the request goes to
the ActionServlet. The ActionServlet then looks up the appropriate view
helper initiallizes it with any
for insertion?
example of 2 page:
tiles:insert definition=.layout.main
tiles:put name=body
here goes bwhatever/b body you had in mind...
/tiles:put
/tiles:insert
Thanks for input,
Yann
--
Thanks
Manish Singla
x73166
would be appreciated.
Thanks!
--
Thanks
Manish Singla
x73166
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
you may use following
request.setAttribute(Globals.ERROR_KEY, errors);
to set global parameter of errors..
set action error as usual...
Nate Drake wrote:
I have a Servlet Filter that checks that the user has permission to
access the requested page. If the user does not, I want to send them
You may use following to set bundleName defined in struts-config.xml...
request.setAttribute(Globals.MESSAGES_KEY, bundleName);
but bundleName is MessageResources object . and bundleName is key
attribute of message-resources in struts-config.xml...
OR
If above do not meet your
In addition to below reply:
you may set name in html:error and .
request.setAttribute(name, errors)
errors can be string, string[], ActionErrors, ErrorMesssages
Manish Singla wrote:
you may use following
request.setAttribute(Globals.ERROR_KEY, errors);
to set global parameter of errors
a) Get ServletContext of Globals.ERROR_KEY.
b) Typecast to ActionErrors
c) Use errors.get(property)
d) (c) wil return Iterator ..
Sgarlata Matt wrote:
You can use the attached JSPs to display all the attributes in the request.
Just look for the attribute that stores the errors. In
by return email and delete this communication and destroy all copies.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Thanks
Manish Singla
x73166
Yes, you are right... got to use ModuleConfig..
Ventin, Vince wrote:
I am following an example in the book Programming Jakarta Struts by
Chuck Cavaness, published by O'Reilly press.
The example is on page 227 and uses the statement:
ForwardConfig config =
]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Thanks
Manish Singla
x73166
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Thanks
Manish Singla
- http://www.WebMailSPro.com -
Créer votre WebBased email pour avec votre propre nom de domaine
--
Thanks
Manish Singla
x73166
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
What are the advantages of having multiple struts-config modules defined in
web.xml vs comma separated struts-config.xml from design point of view.
I am ok with slight overhead of multiple struts-config file (in web.xml
approach).
Thanks
What are the advantages of having multiple struts-config modules defined in
web.xml vs comma separated struts-config.xml from design point of view.
I am ok with slight overhead of multiple struts-config file (in web.xml
approach).
Again, what design problem multiple struts-config problem
You may set an attribute (..can't recall which one ) which specifies the path for
every module.
Puneet Agarwal wrote:
One step ahead.
I read the RequestUtils and RequestProcessor code and came to know that it
will not prefix the module name if there is no / in the begining of the
So I am
61 matches
Mail list logo