Struts Upload File Question

2003-02-03 Thread VEDRE, RANAPRATAP REDDY
I am trying to implement a feature that allows users to upload multiple files at the same time(Similar to Yahoo Mail attachments). user should be able to select upto a maximun of 5 files on a single page and all the files are saved to the database on submitting the form. I am using FormFile in

Active users in a struts web application.

2003-01-15 Thread VEDRE, RANAPRATAP REDDY
Not a struts specific question, but i know where the experts are... I am tring to show the users currently logged into a web application, so that anybody who logs in can see who else is logged in. This functionality is similar to a standard chat program. i am using ServletContextListener and

RE: Struts--- Validator plugin HELP NEEDED!!

2003-01-14 Thread VEDRE, RANAPRATAP REDDY
Validator does not call the validate() method if validate=false you should set validation=true for the plugin to work or call the validate{} method in ur action class. ActionErrors errors = form.validate(mapping, request); -Rana. -Original Message- From: Vijay Khanna To: [EMAIL

RE: How to Access an Application Scope object in a Struts Action Clas s

2003-01-14 Thread VEDRE, RANAPRATAP REDDY
I am working on a similar monitor class to track the users logged into a web application at any given time. This information is displayed when user logs into the web application. i am trying to accomplish this using ServletContextListener and HttpSessionAttributeListener classes in the

RE: Passing data to presentation objects

2003-01-08 Thread VEDRE, RANAPRATAP REDDY
This is how i use value objects. I have a property in my form called view. It is user written class and contains all the information that needs to be available in the jsp. This view object has to be initialized in ur action class before forwarding to the jsp. I find this especially useful

RE: Difficulties with form bean validate() for pre-populated form beans

2002-12-29 Thread VEDRE, RANAPRATAP REDDY
hi micheal, this is a very common problem. u can have validation=false in ur action mapping in struts-config.xml and call the form validation method in ur action class. formInstance.validate(request, errors); by having validation=false struts does not call the validation method in ur

RE: [Declarative Exception] How to access the exception text

2002-12-29 Thread VEDRE, RANAPRATAP REDDY
and here's some sample code %@ include file=/includes/taglibs.inc % bean:define id=exception name=org.apache.struts.action.EXCEPTION type=java.lang.Exception/ bean:write name=exception / pre % exception.printStackTrace(new java.io.PrintWriter(out)); %

RE: 2 submit buttons with different action

2002-12-24 Thread VEDRE, RANAPRATAP REDDY
you can configure your action mapping with validation=false and do the validation in ur action class by calling the validation method of your form(DynaValidatorForm). struts does not call the validation method, as validation=false you can check in ur action class which button was pressed and call

RE: How do I do this, input field retains value

2002-12-24 Thread VEDRE, RANAPRATAP REDDY
you can remove the form from request or session based on the scope in which u stored the form after database is updated succesfully. // Remove the obsolete form bean if (mapping.getAttribute() != null) { if (request.equals(mapping.getScope()))

RE: select, options, define???

2002-12-24 Thread VEDRE, RANAPRATAP REDDY
you can create a collection for the rights and store it in application context when your application starts(may be in an initialization servlet). then use the html:select tag and html:options tag to render the admin picklist(s). you can use ten html:text tags for login fields or look into the

RE: Loosing form data when chaining actions

2002-12-03 Thread VEDRE, RANAPRATAP REDDY
1. make sure u are not creating a new instance of the form bean in the second action and you have name attribute for both the action mappings(they should be same, since u are using same form in both actions). 2. if you are going from the first action to the second action directly(ie., first

RE: Emails

2002-12-03 Thread VEDRE, RANAPRATAP REDDY
sending a mail from struts action is no different from sending a mail from any HttpServlet. u can use JSTL mail library if u want to do it in jpp , but the best option would be to use JavaMail API as u want inside a servlet. -rana. -Original Message- From: Wendy Cameron [mailto:[EMAIL

RE: PropertyUtils.copyProperties() usage in 1.1-b2

2002-11-15 Thread VEDRE, RANAPRATAP REDDY
try getting the latest version of commons-beanutils.jar from commons project version(1.5), if u dont want to upgrade to nightly build of struts, but use struts 1.1b2. In version 1.5 of commons package, PropertyUtils works in both directions. release notes for version 1.5 montions about this

RE: PropertyUtils.copyProperties() usage in 1.1-b2 ; problem using validation with LookupDispatchAction

2002-11-15 Thread VEDRE, RANAPRATAP REDDY
I am able to get copyProperties to work with BeanUtils and PropertyUtils using version 1.5 of commons beanutils. 1. i am using DynaValidatorForm. 2. i have a BeanInfoClass for my bean providing the PropertyDescriptors. try replacing the commons-beanutils.jar with the latest version(1.5) of

RE: Message Resource file location in war file.

2002-10-24 Thread VEDRE, RANAPRATAP REDDY
You can add aaw/WEB-INF to ur classpath. You can keep it anywhere u like as long as it is listed in the classpath. it's usually placed in WEB-INF/classes as WEB-INF/classes automatically in the classpath of ur webserver/servlet engine. hope this helps ... -Original Message- From:

Validation Framework Question..

2002-10-24 Thread VEDRE, RANAPRATAP REDDY
I use html links that point to an action in my jsps, so that i can do some initialization before displaying a jsp. for example: html:link href=department.doNew Department/html:link clicking on link department.do takes the control to the action class(DepartmentAction) which forwards to

RE: [OT] Local DTDs to satisfy DOCTYPE

2002-10-24 Thread VEDRE, RANAPRATAP REDDY
how about using !DOCTYPE web-app SYSTEM instead of !DOCTYPE web-app PUBLIC and refer to the local path instead of the actual http url. u you have to change the path in the xml files if u change tha location of ur DTD's to a different path. -Rana. -Original Message- From: Tony Baity

RE: Custom Submit Button

2002-09-12 Thread VEDRE, RANAPRATAP REDDY
You can use html:img tag no that there are two tags html:img and html:image checkout http://jakarta.apache.org/struts/struts-html.html#img -Rana -Original Message- From: Aladar The Dinosaur [mailto:[EMAIL PROTECTED]] Sent: Friday, September 13, 2002 12:33 AM To: Struts Users Mailing

struts and OSWorkflow

2002-08-21 Thread VEDRE, RANAPRATAP REDDY
we are trying to integrate OSWorkflow with struts for one of our projects. Does any of you know any other workflow engine that works well with struts. The struts workflow extension did not satisfy our needs. any input about how OSWorkflow and struts can be integrated are welcome. OSWorkflow

RE: Multiple Select Problem

2002-06-23 Thread VEDRE, RANAPRATAP REDDY
Look at pager tag library. This was listed in official struts resources page http://jsptags.com/tags/navigation/pager/pager-demo.jsp?style=jsptags -Original Message- From: Dave Weis [mailto:[EMAIL PROTECTED]] Sent: Sunday, June 23, 2002 10:12 PM To: Struts Users Mailing List Subject:

Struts and Voice XML

2002-06-20 Thread VEDRE, RANAPRATAP REDDY
Please share your experiences if any of used Struts to generate Voice XML. Is struts with Transformations stxx a better option? Thanks, Rana -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

RE: blank page

2002-06-20 Thread VEDRE, RANAPRATAP REDDY
please post your action mapping in config file and the form tag used in view component. a. make sure u have the action attribute of form tag and path attribute of action tag in action mappings are exaclty the same. b. if u are forwarding non existing mapping in ur Action class. -Original

RE: Debugging JSP's in Struts.

2002-06-08 Thread VEDRE, RANAPRATAP REDDY
, www.oreilly.com/catalog/orxmlapp - Original Message - From: VEDRE, RANAPRATAP REDDY [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, June 08, 2002 12:01 AM Subject: Debugging JSP's in Struts. | | Can we Debug JSP's in Struts(running in Tomcat) using any of the IDE's in | the market

Debugging JSP's in Struts.

2002-06-07 Thread VEDRE, RANAPRATAP REDDY
Can we Debug JSP's in Struts(running in Tomcat) using any of the IDE's in the market. -Thanks. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

Help using Struts Logic tags.

2002-01-15 Thread VEDRE, RANAPRATAP REDDY
What is the best way to write the following scriptlet code using Logic Tags. I tried to do it with present and notEmpty but couldn't get it to work. % if(session.getAttribute(KEY) != null){ % if(session.getAttribute(KEY).equals(True)) { // Some HTML goes here.

RE: JDeveloper and Tomcat

2002-01-09 Thread VEDRE, RANAPRATAP REDDY
/strutsTutorial/ and ignore the stuff specific to WebLogic. VEDRE, RANAPRATAP REDDY [EMAIL PROTECTED] wrote: Has anybody integrated Tomcat with JDeveloper. I want to know if we can run struts application using Tomcat from JDeveloper. - Do You Yahoo!? Send FREE video

JDeveloper and Tomcat

2002-01-08 Thread VEDRE, RANAPRATAP REDDY
Has anybody integrated Tomcat with JDeveloper. I want to know if we can run struts application using Tomcat from JDeveloper. Thanks. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

RE: Personolized content using Struts. Jetspeed?

2001-12-18 Thread VEDRE, RANAPRATAP REDDY
. If it is content you want have you or anyone else checked out Slide? Kris VEDRE, RANAPRATAP REDDY wrote: I would like to know what is the best way to provide customized content to the user like providing layout and color change etc., similar to portal sites. Is Jet Speed the solution

RE: Personalized content using Struts. Jetspeed?

2001-12-18 Thread VEDRE, RANAPRATAP REDDY
personalization based on Profile and event based, You might want to consider developing some custom tags/classes that will be reading the session tracking info and dynamically delivering specific content, etc.. -Original Message- From: VEDRE, RANAPRATAP REDDY [mailto:[EMAIL PROTECTED]] Sent

RE: Personalized content using Struts. Jetspeed?

2001-12-18 Thread VEDRE, RANAPRATAP REDDY
the session tracking info and dynamically delivering specific content, etc.. -Original Message- From: VEDRE, RANAPRATAP REDDY [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 18, 2001 9:39 PM To: 'Struts Users Mailing List' Subject: RE: Personolized content using Struts. Jetspeed? I have looked

Personolized content using Struts. Jetspeed?

2001-12-17 Thread VEDRE, RANAPRATAP REDDY
I would like to know what is the best way to provide customized content to the user like providing layout and color change etc., similar to portal sites. Is Jet Speed the solution for this?. Are there any competetors. I use Templates Tags in struts on Tomcat and Apache web server. Saw

error-page in web.xml and 404 HTTP error

2001-11-20 Thread VEDRE, RANAPRATAP REDDY
I have tried to use error-page directive in web.xml for 404 http error and direct to a custom error page. But could not get it to work. i know for tomcat 4 the error-page directive has to before the teg lib descriptors. but still does not work. Can anybody please give the syntax and

RE: error-page in web.xml and 404 HTTP error

2001-11-20 Thread VEDRE, RANAPRATAP REDDY
-code404/error-code location/servlet/package.ErrorHandlerServlet?code=404/location /error-page before tablib ... /web-app Make sure you use web-app_2_3.dtd at the top. I'm afraid that if you use web-app_2_2.dtd it will not work. Steve VEDRE, RANAPRATAP REDDY wrote: I have tried to use error

Using more then one properties(resource) file for a language.

2001-10-24 Thread VEDRE, RANAPRATAP REDDY
I guess we need to have a properties file for each language that we support for a web app. If there are a lot of pages in the application its gets messy to have all the message texts in one properties file and difficult to maintain(modify). Can we organize the resource files for a web