Is it JDK

2004-03-03 Thread manish singla
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

Re: splitting struts-config into multiple files

2004-02-28 Thread Manish Singla
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

Re: [OT]Ant Script

2004-02-25 Thread 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]

[OT] Automatic generation of class diagrams

2004-02-24 Thread Manish Singla
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]

Re: Question on iterate

2004-02-11 Thread Manish Singla
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

Re: check this problem: Actions and forms

2004-01-22 Thread Manish Singla
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

Re: Multiple ApplicationResources.properties files

2003-12-08 Thread Manish Singla
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

Re: Dealing with dates

2003-12-08 Thread Manish Singla
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

Re: html:errors Tag Deprecated?

2003-12-08 Thread 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

Re: Struts and XSLT

2003-12-08 Thread Manish Singla
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

Re: Extending DTD and consequences

2003-12-03 Thread Manish Singla
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

Re: struts printing debug mesg regardless what I did

2003-12-03 Thread 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

Re: User defined error messages

2003-12-03 Thread Manish Singla
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

Re: Integration with Reporting Systems (was: How extensively can/is Struts used ?)

2003-12-03 Thread Manish Singla
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

Re: How extensively can/is Struts used ?

2003-12-03 Thread 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

Re: Disadvantages of Struts?

2003-12-03 Thread Manish Singla
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

Re: MessageResource not in HttpRequest

2003-11-26 Thread Manish Singla
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

Re: MessageResources in ActionForm

2003-11-24 Thread Manish Singla
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

Re: ActionForm field not changing when forwarded to Action

2003-11-24 Thread Manish Singla
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

Re: JSTL

2003-11-24 Thread Manish Singla
] For additional commands, e-mail: [EMAIL PROTECTED] -- Thanks Manish Singla x73166 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: multiple modules cannot retrieve mapping not fun!

2003-11-24 Thread Manish Singla
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

Re: Message Resources and Struts Modules (Partially Solved)

2003-11-24 Thread Manish Singla
Messages and more.Download now. -- Thanks Manish Singla x73166 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: ActionForm field not changing when forwarded to Action

2003-11-24 Thread Manish Singla
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

Re: Large scale Internationalization using struts

2003-11-23 Thread Manish Singla
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

Re: chaining actions

2003-11-12 Thread Manish Singla
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

Re: AW: html:text with property maxlength not as a literal

2003-11-07 Thread Manish Singla
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

Re: Having more than one struts-config.xml

2003-11-07 Thread Manish Singla
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

Re: Form variables not reset

2003-11-07 Thread Manish Singla
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

Re: presentation logic

2003-11-05 Thread Manish Singla
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

Struts Best Practices

2003-11-04 Thread Manish Singla
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

Re: Debug output

2003-11-04 Thread 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]

Re: ActionMessage key location

2003-11-04 Thread Manish Singla
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]

Re: Chaining Actions.

2003-11-03 Thread Manish Singla
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

Re: Hidden Field

2003-10-31 Thread Manish Singla
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

Re: sending object with query.

2003-10-31 Thread Manish Singla
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

Re: two resource bundles?!

2003-10-30 Thread Manish Singla
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,

Re: how to use 2 resource files in one struts-config.xml?

2003-10-29 Thread Manish Singla
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

Re: how to use 2 resource files in one struts-config.xml? solved it thanx

2003-10-29 Thread Manish Singla
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

Re: Unit Test Actions

2003-10-28 Thread 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)..

Re: How to use multiple Tiles definition file

2003-10-28 Thread Manish Singla
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

Re: Where and when will we use org.apache.struts.config.ModuleConfig appConfig

2003-10-27 Thread Manish Singla
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

Re: [ANNOUNCE] Struts Message Resource Doc

2003-10-27 Thread Manish Singla
-- 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

Re: question about reset()

2003-10-27 Thread Manish Singla
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

Re: Session-scoped form and synchronization...

2003-10-27 Thread Manish Singla
, Bob - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Thanks Manish Singla x73166 - To unsubscribe, e

Re: question about reset()

2003-10-27 Thread Manish Singla
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

Re: Downloading a file from a database

2003-10-27 Thread Manish Singla
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

Re: Must everything go through an action?...

2003-10-05 Thread Manish Singla
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

Re: Tile philosophy ?

2003-10-02 Thread Manish Singla
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

Re: tiles and parameters

2003-10-02 Thread Manish Singla
would be appreciated. Thanks! -- Thanks Manish Singla x73166 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: ActionErrors and Servlet Filters

2003-09-27 Thread Manish Singla
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

Re: change dynamically ApplicationResources path

2003-09-27 Thread Manish Singla
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

Re: ActionErrors and Servlet Filters

2003-09-27 Thread Manish Singla
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

Re: Accessing action error problem

2003-09-27 Thread Manish Singla
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

Re: Forward Action with redirect?

2003-09-26 Thread Manish Singla
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

Re: RequestProcessor - appConfig deprecated

2003-09-26 Thread Manish Singla
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 =

Re: action chaining and request.getRequestURI()

2003-09-25 Thread 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]

Re: Multi config files and global forward

2003-09-24 Thread Manish Singla
] - 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

Re: Forms with the same name in different modules ???

2003-09-24 Thread 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]

Multiple modules

2003-09-18 Thread Manish Singla
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

Re: Multiple modules

2003-09-18 Thread Manish Singla
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

Re: Struts module and behind WEB-INF both

2003-09-18 Thread Manish Singla
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