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
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
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
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
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
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
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));
%
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
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()))
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
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
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
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
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
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:
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
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
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
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
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:
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]
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
, 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
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]
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.
/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
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]
.
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
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
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
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
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
-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
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
34 matches
Mail list logo