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 struts upload package for the purpose and storing the
FormFile objects in a vector.  what would be the best way to handle this?

Also,how can i show image and text(html markup) on the same page.
if i set the content type for the response to image/gif and  return null for
ActionForward, them image shows up but i cannot display text on the page if
i write it to the output stream. 

dint find the solution to this in the mailing list archive.

any comments/ideas are welcome.

-Rana.







-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




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 HttpSessionAttributeListener classes
in the server API.

Struts 1.1b2, so i can use Plugins if needed.

Any help/ideas about tracking users currently logged into a web application
are most welcome.



Thanks,
Rana.

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




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 servlet API.

Any help/ideas about tracking users currently logged into a web application
are most welcome.

Thanks,
Rana.




-Original Message-
From: Haseltine, Celeste
To: 'Struts Users Mailing List'
Sent: 1/14/2003 7:41 PM
Subject: How to Access an Application Scope object in a Struts Action Clas s

I'm relatively new to Struts, and I am working in Struts 1.02 (since we
are
not comfortable using a beta version of struts on a new project), and I
am
stuck on a simple problem.  If I create a Hashtable bean object called
monitor, with application scope, in my Welcome page using



how do I access this application scope object in all of my Struts action
classes?  I've tried using  Hashtable monitor =
(Hashtable)session.getAttribute(Constants.MONITOR_KEY);
if (monitor != null) {
-do something---
}
and I get a null pointer error, as seen from my error log below:

01/14 18:30:47 error 
java.lang.NullPointerException
at com.NYTC.struts.LogonAction.perform(LogonAction.java:144)

where line 144 is the if (monitor != null) statement.

My objective in using the monitor bean is to keep track of every user
who
logs in, and if they still have an active session, recover any data and
then
invalidate the old session, and create a new session for them.  We were
doing this in our previous web apps, but we were using a Model 1
approach,
so I am having some trouble converting this concept to a Model 2
approach.
In our Model 1 apps, we just used the monitor to keep track of user's
sessions, and invalidate any active session still on server as follows:

if (monitor.containsKey(user)){
HttpSession oldSession = (HttpSession)monitor.get(user);
System.out.println("User already has an active session in memory
"+
oldSession.getId());
---retrieve old data in between here and then invalidate old
session--
oldSession.invalidate();
System.out.println("Got rid of the old session");
} else {
System.out.println("No old session was found");
}   
monitor.put(user, session);

How do I accomplish this using a Model 2 approach??

Thanks in advance for any insight/advice

Celeste




--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




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 PROTECTED]
Sent: 1/14/2003 4:07 AM
Subject: Struts--- Validator plugin HELP NEEDED!!

Hello to all struts users.

I am facing somewhat unusual problem.The cuurent project is being built
on
struts 1.1
All the validations were earlier done is ACTIONFORMS.for good
application
architecture we have decided to go for StrutsValidator/ Validator plugin
which will take care of all the validations.

All common validations are being done using the validation.xml and
validator-rules.xml.
(minlength, maxlength, email, required)
for customised validation we have made validation-custom.xml and
validator-custom-rules.xml.
(field comparison etc)

I have removed the Validate() from the ActionForm and set
validation=false
in the action mapping of struts-config.xml(This was done later as we
thought
setting to true invoked the validate().So we set it to validate=false,
inorder to invloke the plugin).When the application starts-up the
digestor
reads the xml files and hold the validation in struts memory.All the
error
messages are given in the resource file.But we don't understand the
validation is not occuring.We believe struts is not able invoke and
passe it
to the plugin.

Below is an extract from the struts-config.xml.The Tiles plugin works
just
fine ..but Validator plugin does not work at all.















Any ideas from your guys...?

Help is appreciated.

thanx
Vijay



--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




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 when there is a lot of information to be
obtained from a database, to be displayed in a jsp. ActionForm contains only
the fields that the user enters/submits in the html form/page and all other
data is embedded in the view class.

lets say u have have a couple of vectors(Containers) to be initialised from
the database for rendering select boxes.

You can store the vectors int the form, or add each vector seperately to the
request object.

By using a view class which contains two vectors as member variables.
you have to create an instance of the view class and call the set methods to
initialize the two vectors in the instance and then set the ActionsForm
"view" attribute with this instance.
Then in ur jsp,get the view instance from the form and the vectors from it
using  tag or something similar.

It is  bit more work than adding the vector objects directly to the request.
but it has the advantage in that u can easily see which view objects are
used for an Action or JSP just by looking at the form declarations in
struts-config.xml(if u are using dynamic forms)

-Rana.

Sample form declaration using a view attribute.



  
  
  
  
  


-Original Message-
From: Suresh Addagalla
To: [EMAIL PROTECTED]
Sent: 1/8/2003 6:31 AM
Subject: Passing data to presentation objects

Hi,

I have been reading a lot of material on Struts, but I could not get
answer to my question.

What is the recommended strategy (or a design pattern) to pass data to
the view objects (JSPs in my case)?

One reply I got is to use the form-beans associated with the actions to
pass data to the JSPs. I found some situations when this did not work
well (for example, I faced this problem when I am trying to use the same
form-bean for populating data as well as editing/submitting a form).

What are "value objects" and how are they useful in passing data? Can
someone refer me to a good resource on knowing more about this? Any
examples would be highly useful.

Also, is there any sample application I can download and which can be
used as sort of a reference for common tasks required for struts
programming?

Thanks,
Suresh

 <>  <> 

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




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" %>




   
<% exception.printStackTrace(new java.io.PrintWriter(out));
%>  
 

-Rana. 


-Original Message-
From: Karr, David
To: Struts Users Mailing List
Sent: 12/26/2002 12:01 PM
Subject: RE: [Declarative Exception] How to access the exception text

The Exception object is just that, an object.  If you want to call
methods on it to pull information out of it, you can.  You can call the
"printStackTrace()" method to store the stack trace on a stream or
writer (like a "StringWriter").

> -Original Message-
> From: Jerry Jalenak [mailto:[EMAIL PROTECTED]]
> 
> David - thanks for the reply.  Using the 'o.a.s.a.EXCEPTION' in a
>  gives me the basic exception (i.e.
> java.lang.NullPointerException). It would be nice to be able 
> to provide
> additional information - stack trace or something similar.  
> Do I need to
> write a custom ExceptionHandler to do this?
> 
> Jerry
> 
> > -Original Message-
> > From: Karr, David [mailto:[EMAIL PROTECTED]]
> > 
> > Unfortunately, the only thing that is really clear about this 
> > is the code (AFAICS).  The default exception handler will put 
> > the exception into request scope under the key symbol 
> > "Globals.EXCEPTION_KEY", which is the string 
> > "org.apache.struts.action.EXCEPTION".
> > 
> > > -Original Message-
> > > From: Jerry Jalenak [mailto:[EMAIL PROTECTED]]
> > > 
> > > In my struts-config I have a  defined to handle
> > > java.lang.Exception:
> > > 
> > >   
> > >> > type="java.lang.Exception"/>
> > >   
> > > 
> > > On this page I want to be able to display the text from the 
> > > exception (i.e.
> > > e.getMessage()).  How can I get access to this?

--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




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 form. 

i stringly suggest using validation framework. since u are using 1.1b u can
even use DynaValidatorForm. 

 by using validation framework u dont have to write the validation method 
for ur form. u just have to specify the validation in validation.xml file. 



checkout struts in action book or the sample chapter about validation
available at http://www.manning.com/husted/chap12.pdf.

-Rana. 


-Original Message-
From: mech
To: [EMAIL PROTECTED]
Sent: 12/29/2002 11:33 AM
Subject: Difficulties with form bean validate() for pre-populated form beans

Hi,

I'm using Struts 1.1b and one part of my webapp is a registration page
for new users.
I have to say that this thing works already somehow, but not really as
I'd like to have it.

Currently I'm not using the validate() method in my form bean and I'm
doing all form validation in the action class.

This I do for one reason: I need to pre-populate my form bean!

So I don't link from my webpage to "newaccount.jsp" but instead I link
to "newaccount.do" which is partly pre-populating the form bean for my
view newaccount.jsp because I need some data from my DB to dynamically
generate a pull down menu for my registration page.

So my newaccount.do is loaded, populates the form bean from DB,
validates the form data (if there is any at this moment) and forwards to
newaccount.jsp. 
The view now generates the html form and the pull down menu according to
the bean data from DB and waits for the user to submit the data back to
newaccount.do.

This time newaccount.do finds values in the form bean, validates it and
in case of errors submits back to the view displaying the ActionErrors
(still being able to use the db data for the pull down menu) or if
nothing went wrong it generates a new user entry and continues to do
something else.


So far that works, but I wonder if I shouldn't use the validate() method
of the form bean for simple validation checks. E.g. the user must enter
an not-empty email address or whatever.

Here comes my problem after I copied the validation work from the
action's execute() to the form bean's validate(). 

Because I need to pre-populate the form before displaying the view
whenever the validate() method finds an error it returns to the "input"
page. 
But in order to generate the input view, I would need to pre-populate
the form. Unfortunately in case of errors the execute() method that
would usually pre-populate my bean is now never called...

If I set "input" in struts-config.xml to "newaccount.do" I only get an
endless loop, after submitting wrong form data.
But if I choose "newaccount.jsp" I will get jsp errors because the html
form can't be build because of the missing form data.

So what do else?

The only examples that I found in my books about Struts where validate()
is used are too simple and just consider the case that the input form
doesn't need any pre-populated form data and would just sit and wait for
data. 

So I hope that anyone could give me a hint how to handle this problem
and could tell me how to use validate() + pre-populated forms or maybe
there are other more reasonable ways to tackle this issue.

Thanks
Michael


--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




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  tag and  tag to render the admin
picklist(s).

you can use ten  tags for login fields or look into the
possibility of using an array for login fields.

-rana.





-Original Message-
From: Jitendra Singh [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 24, 2002 7:25 AM
To: [EMAIL PROTECTED]
Subject: select, options, define???


I am still fighting .. help help!!

I have a form with 10 login id displayed as text field and ther admin rights
chosen from a drop down lists .. all drop down lists are same.

looks like this ..

Login Id1   AdminRight1
Login Id2AdminRight2
Login Id3AdminRight2
.
.
.
Login IdnAdminRight1

How do i do it ???

any help, suggestion, advice hint .. all welcome .. 

thanks in advance ...
Jitendra 

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




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()))
request.removeAttribute(mapping.getAttribute());
else
session.removeAttribute(mapping.getAttribute());
}

this will make struts create a new form.

-rana.




-Original Message-
From: Ashish Kulkarni [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 24, 2002 10:26 AM
To: Struts Users Mailing List
Subject: How do I do this, input field retains value


Hi,

I have one jsp page with 2 text fields, I am using
DynaValidatorForm, 
I have an action form where in i call an program to
update the database with these vaues.
and reloads the same jsp
Now the problem is
1> I have defined the 2 text fields as following


When there is some error, i get the error message and
also the retain the values entered by the user in
these fields.
But the values are also retained even if those are
updated in data base??
so how can i avoid reloading of these values when
there is no error


=
A$HI$H

__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




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 the
validate method only when submit is pressed.
you still dont have to write ur validate method as long as u have the form
in the validation.xml.

to check which button was pressed you can use the following in ur jsp


Submit


Back


and in ur action class 

  String buttonPressed = form.getAction();
  if(buttonPressed.equals("Submit"))
form.validate(request.errors);

  if(!errors.empty) 
   {
return mapping.getInputForward();
   }

  
 note that action should be a property in ur form. as u are using
dynavalidator form it should be present in ur form declaration in ur
struts-config.xml

-rana



-Original Message-
From: Arnaud HERITIER [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 24, 2002 11:14 AM
To: 'Struts Users Mailing List'
Subject: RE: 2 submit buttons with different action


In this page :
http://jakarta.apache.org/struts/userGuide/dev_validator.html

the doc says :

The most fundamental change is the ability to conditionally require
validator fields based on the value of other fields. It allows you to define
logic like "only validate this field if field X is non- null and field Y
equals "male".

I think it is possible to do what you want with the validator but don't know
how.


> -Message d'origine-
> De : Arnaud HERITIER [mailto:[EMAIL PROTECTED]]
> Envoye : mardi 24 decembre 2002 17:07
> A : 'Struts Users Mailing List'
> Objet : RE: 2 submit buttons with different action
>
>
> Sorry but I don't use yet the DynaValidationForm, so I don't
> know how to
> configure it :-(
>
> I don't know how is defined a validation.xml file but it is
> not possible to
> define dependencies between several fields ??
>
> If this field equals "bidule" then this other field should be
> equal to truc
> ???
>
> If it doesn't exist, it could be a good enhancement to
> propose I think.
>
> Arnaud
>
> > -Message d'origine-
> > De : Ashish Kulkarni [mailto:[EMAIL PROTECTED]]
> > Envoye : mardi 24 decembre 2002 16:53
> > A : Struts Users Mailing List; [EMAIL PROTECTED]
> > Objet : RE: 2 submit buttons with different action
> >
> >
> > Hi,
> > I m using DynaVaidationForm so struts automatically
> > checks for the validation depending upon the
> > defination in validation.xml
> > is there a way out by using DynaValidationForm
> >
> > Ashish
> > --- Arnaud HERITIER <[EMAIL PROTECTED]> wrote:
> > > you can define a property in your form bean with a
> > > different value if you
> > > use one button or the other.
> > >
> > > In your validation method you test this property to
> > > verify if you check the
> > > others fields or not.
> > >
> > > Arnaud
> > >
> > > > -Message d'origine-
> > > > De : Ashish Kulkarni
> > > [mailto:[EMAIL PROTECTED]]
> > > > Envoye : mardi 24 decembre 2002 16:29
> > > > A : Struts Users Mailing List
> > > > Objet : 2 submit buttons with different action
> > > >
> > > >
> > > > Hi,
> > > >
> > > > I have 2 buttons on one jsp, one is submit button
> > > and
> > > > the other is back. I want to use only one action
> > > form
> > > > to handle both the events, I am using
> > > > DynaValidatorForm.
> > > > So the problem i amfacing is, the fields get
> > > validated
> > > > even if i press the back button,
> > > > Is there a way to make sure that the validation
> > > occurs
> > > > only when i press submit button
> > > >
> > > >
> > > >
> > > > =
> > > > A$HI$H
> > > >
> > > > __
> > > > Do you Yahoo!?
> > > > Yahoo! Mail Plus - Powerful. Affordable. Sign up
> > > now.
> > > > http://mailplus.yahoo.com
> > > >
> > > > --
> > > > To unsubscribe, e-mail:
> > > >
> > > 
> > > > For additional commands, e-mail:
> > > > 
> > > >
> > >
> > >
> > > --
> > > To unsubscribe, e-mail:
> > > 
> > > For additional commands, e-mail:
> > > 
> > >
> >
> >
> > =
> > A$HI$H
> >
> > __
> > Do you Yahoo!?
> > Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
> > http://mailplus.yahoo.com
> >
> > --
> > To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>


--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: OptionsCollection

2002-12-13 Thread VEDRE, RANAPRATAP REDDY
You can either use attribute collection="users" for options tag if you store
in request
or you can use   name="formName" property="myList"   if you have
a getMyList() method for the form(You have to fill call formName.setMyList()
in your action class before forwarding to a jsp).


checkout http://jakarta.apache.org/struts/userGuide/struts-html.html#options
if you have not looked at the documentation.

-rana.


-Original Message-
From: Mark [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 13, 2002 5:36 AM
To: Struts Users Mailing List
Subject: OptionsCollection


Hello

I've a number of collections already defined that end up being passed to my
jsp's via the request object.

Users in this case is a map defined in my business logic class that does db
queries.
 
users = (ListUsers).getUsers();

request.setAttribute("users",users);


I itertate through this collection using iterate. But now i want to use this
in a select menu. 

Should I be thinking about making my collection available to my FormBean i.e
making a getMyList() method.

Thanks in advance

mark


--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




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 PROTECTED]]
Sent: Tuesday, December 03, 2002 4:42 PM
To: Struts Users Mailing List (E-mail)
Subject: Emails


How do you send an email from inside a servlet using the struts framework?

Does anyone know of some sample code etc? or a good tutorial?

Regards Wendy

--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




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 action is not forwarding to a view/jsp),u dont even have to keep the
form in session(request scope also works fine). struts uses the same form
instance in the second action if  it finds a form instance in request or
session added/filled in first action.

hope this helps ...

-Original Message-
From: Etienne Labonté [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 03, 2002 4:11 PM
To: Struts Users Mailing List (E-mail)
Subject: Loosing form data when chaining actions


Hi,

I defined 2 actions in session scope referring the same form. The first
action sets some properties in the form and then forwards the request to the
second action. The second action sets some more properties and then forwards
to a JSP page which contains the html form. The problem is only the data set
by the last action remains... This makes me think the form-bean is not
shared between actions. I understand this can be desired behaviour. Any
insight would be appreciated. thanks!



Etienne

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




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
commons beanutils.

 i have one more issue, has anybody succesfully combined Validator
Framework, Dynamic Forms and LookupDispatchAction .

I am using DynaValidatorForm, but my form us not validated even if have
validate="true" in my action mapping.

validation of DynaValidatorForm worked fine before using
LookupDispatchAction.

-rana.



-Original Message-
From: Brian Topping [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 15, 2002 8:16 PM
To: [EMAIL PROTECTED]
Subject: Re: PropertyUtils.copyProperties() usage in 1.1-b2


> 
> 
> 
> On Fri, 15 Nov 2002, Brian Topping wrote:
> 
> > Date: Fri, 15 Nov 2002 12:10:53 -0800 (PST)
> > From: Brian Topping <[EMAIL PROTECTED]>
> > Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> > To: [EMAIL PROTECTED]
> > Subject: PropertyUtils.copyProperties() usage in 1.1-b2
> >
> > Hi all, happy friday (again... :)
> >
> > I'm trying to figure out what I am doing wrong with
> > PropertyUtils.copyProperties().  From within my Action, I have:
> >
> > User user = ;
> > DynaActionForm regForm = (DynaActionForm) form;
> > PropertyUtils.copyProperties(regForm, user);
> >
> > When I look at what copyProperties is doing, it's getting a
> > PropertyDescriptor array from getPropertyDescriptors() with the user
> > bean correctly, then it iteratively tries to see if the regForm has any
> > of the properties found in the user bean.  But calling
> > getPropertyDescriptor(regForm, ) seems to be comparing the
> > (correct) field names from the bean against the *structure* of the
> > DynaActionForm component (i.e. the multipartRequestHandler, dynaClass,
> > servlet, etc), instead of the DynaFields that I set up in my
> > .
> >
> 
> Which CVS version number of PropertyUtils are you looking at (second line
> of the sources?  The version I'm looking at, 1.32 (i.e. the current
> nightly builds), does not call getPropertyDescriptors() on a DynaBean.

I was using 1.30, but the code I was looking at seems to be the same on
both 1.32 and 1.30.

> > I don't think nested properties are the answer, and copyProperties() is
> > supposed to work with DynaBean in the source, destination, both or
> > neither.
> >
> > Any ideas?  The code seems to work fine when the source and destination
> > are reversed.  I'm using 1.1-b2.
> >
> 
> Please try a recent nightly build.  Besides bugfixes in Struts, there have
> been bugfixes in the Commons packages as well.

Yes, trying that now, no luck.  I guess it sounds like a local issue,
since you probably would have recognized if I had been doing something
silly :)

I'll keep looking, it just doesn't seem to be doing an instanceof on the
dest bean anywhere in the call chain to see if it should treat the
DynaBean differently.

> 
> > Thanks a bunch,
> >
> > Brian
> 
> Craig

thanks again,

-b

--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




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 fix.

You may also want to look at BeanUtils.copyProperties(bean, bean)

-Rana


-Original Message-
From: Brian Topping [mailto:topping@;spies.com]
Sent: Friday, November 15, 2002 3:11 PM
To: [EMAIL PROTECTED]
Subject: PropertyUtils.copyProperties() usage in 1.1-b2


Hi all, happy friday (again... :)

I'm trying to figure out what I am doing wrong with
PropertyUtils.copyProperties().  From within my Action, I have:

User user = ;
DynaActionForm regForm = (DynaActionForm) form;
PropertyUtils.copyProperties(regForm, user);

When I look at what copyProperties is doing, it's getting a
PropertyDescriptor array from getPropertyDescriptors() with the user
bean correctly, then it iteratively tries to see if the regForm has any
of the properties found in the user bean.  But calling
getPropertyDescriptor(regForm, ) seems to be comparing the
(correct) field names from the bean against the *structure* of the
DynaActionForm component (i.e. the multipartRequestHandler, dynaClass,
servlet, etc), instead of the DynaFields that I set up in my
.

I don't think nested properties are the answer, and copyProperties() is
supposed to work with DynaBean in the source, destination, both or
neither.  

Any ideas?  The code seems to work fine when the source and destination
are reversed.  I'm using 1.1-b2.

Thanks a bunch,

Brian

--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: [OT] Local DTDs to satisfy DOCTYPE

2002-10-24 Thread VEDRE, RANAPRATAP REDDY
 how about using mailto:tonybaity@;yahoo.com]
Sent: Thursday, October 24, 2002 10:49 PM
To: [EMAIL PROTECTED]
Subject: [OT] Local DTDs to satisfy DOCTYPE



  
Hello, 
Lets say I make a Struts application that runs on a private network... sort
of an intranet kind of App. with no connection to the internet. 
Where do I put the DTDs locally to satisfy the DOCTYPE in the XML files? 
-Tony (if XFORMS is the answer, what was the question)



-
Do you Yahoo!?
Y! Web Hosting - Let the expert host your web site

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Validation Framework Question..

2002-10-24 Thread VEDRE, RANAPRATAP REDDY

  i guess i can have an action mapping with validate="false"

  Thankyou ...

  
  
  
  


-Original Message-
From: Tony Baity [mailto:tonybaity@;yahoo.com]
Sent: Thursday, October 24, 2002 10:11 PM
To: Struts Users Mailing List
Subject: Re: Validation Framework Question..



Hi,
Could  you perhaps use a different path for new departments... for
instance...
"newDepartment.do"
that maps to DepartmentAction but does not do the validation?
-Tony (is it close enough to Friday to post a [FRIDAY] yet?)
 "VEDRE, RANAPRATAP REDDY" <[EMAIL PROTECTED]> wrote:
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:
New Department

clicking on link "department.do" takes the control to the action
class(DepartmentAction) which forwards to department.jsp

I use validation framework to validate my form(DepartmentForm).

as i have a ".do" link, validation fails due to validator framework,
since the newly created form is empty and as a result my input which is
department.jsp is displayed with validation errors even for the first time
its displayed.

i use the same action(DepartmentAction) for creating,editing too. i want
to "bypass" the validation framework when the action is executed by clicking
the .do link, but "active" when submit button(for create , edit) is clicked.


if i do the validation in my action class by coding the validation in a
validate method , i can bypass calling the validation method in the action
class when link is clicked and call the validate method only for create ,
edit when submit button is used.

This is not a problem if i link directly to a jsp using 
New Department 
but by doing this i am navigating to a jsp(view) from another jsp(view)
without the controller in between thus breaking MVC.
what is the best solution to this problem. any commnets are welcome.
thanks 


name="departmentForm" 
type="DepartmentForm">


type="DepartmentAction"
name="departmentForm"
scope="request"
validate="true"
input="department.jsp">


















--
To unsubscribe, e-mail: 
For additional commands, e-mail: 



-
Do you Yahoo!?
Y! Web Hosting - Let the expert host your web site

--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@;jakarta.apache.org>




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:
 New Department

  clicking on link "department.do" takes the control to the action
class(DepartmentAction) which forwards to department.jsp

  I use validation framework to validate my form(DepartmentForm).

   as i have a ".do" link, validation fails due to validator framework,
since the newly created form is empty and as a result   my input which is
department.jsp is displayed with validation errors even for the first time
its displayed.
 
 i use the same action(DepartmentAction)  for creating,editing too. i want
to "bypass" the validation framework when the action is executed by clicking
the .do link, but "active" when submit button(for create , edit) is clicked.

 
  if i do the validation in my action class by coding the validation in a
validate method , i can bypass calling the validation method in the action
class when link is clicked and call the validate method only for create ,
edit when submit button is used.
  
   This is not a problem if i link directly to a jsp  using 
   New Department 
   but by doing this i am navigating to a jsp(view) from another jsp(view)
without the controller in between thus breaking MVC.
  what is the best solution to this problem.  any commnets are welcome.
thanks 


 


  
  
  
  

  

  

   
  
  
  






--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




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: Christian Nelson [mailto:cnelson@;slac.com]
Sent: Wednesday, October 23, 2002 8:51 PM
To: Struts Users Mailing List
Subject: Message Resource file location in war file.



Greetings,

I love struts, but I'm currently getting my ass kicked... please help. :)

I'm trying to use Message Resources in my web application, but I can't get
struts to find the resources.properties file.  This is how I'm trying to
structure my web-application:

Note: "aaw" is the top-level directory.

aaw/
aaw/
aaw/WEB-INF/web.xml
aaw/WEB-INF/struts-config.xml
aaw/WEB-INF/resources.properties// note this line.
aaw/WEB-INF/tlds
aaw/WEB-INF/tlds/
aaw/WEB-INF/lib
aaw/WEB-INF/lib/
aaw/WEB-INF/classes
aaw/WEB-INF/classes/

Now, what do I set the  tag/parameter to in my
struts-config.xml so that the resources.properties file above will be
found???

All of the examples I'm finding have that file in some strange (to me)
location, like "src/..." or "classes/...".  Can't I just have in at the
top-level of the WEB-INF directory???

Thanks in advance!
Christian

---
 Christian 'xian' Nelson  [EMAIL PROTECTED]
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
"Don't ask yourself what the world needs.  Ask yourself what makes
  you come alive, and go do that, because what the world needs is people
  who have come alive." -- Howard Thurman
---


--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Custom Submit Button

2002-09-12 Thread VEDRE, RANAPRATAP REDDY

You can use  tag  no that there are two tags  and


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 List
Subject: Custom Submit Button


Hello,

I'm planning on using custom image (submit) buttons with the HTML forms
while utilizing struts form beans. However, I can't seem to figure out how
to do it.

For example, on a plain HTML file I would use











Now, with struts ...











Can someone help me how I can make use of the custom "submit.gif" for a
submit button?



Thank you.

Scott






--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




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 link : http://opensymphony.com/osworkflow

 Thanks,
  -Rana

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




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: Re: Multiple Select Problem


On Sun, 2002-06-23 at 17:57, Sandeep Takhar wrote:
> try using an array list.  I think you need something
> that can be converted to an iterator??
> > I'm trying to make a multiple select on a form. I
> > can't seem to get the
> > correct type signatures on the getter and setter in
> > the form. When I
> > make them both Vectors like this:

Thanks for the help, it was a type mismatch in another section of the
form.

I have a new question, is there an easy way to iterate over a collection
and print output in, for instance, groups of 5? In other words, I have a
list of products in a catalog and I want to display a table on a page
with 5 items per row and as many rows as needed. Is there a method to do
so built already?

dave



--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




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 Message-
From: Billy Ng [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 20, 2002 7:36 PM
To: Struts Users Mailing List
Subject: blank page


I did the , but I got a blank page after I hit the submit
button.  I have a feeling the Action object is not being hit.  What did I do
worng?

Billy Ng

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




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:   
For additional commands, e-mail: 




RE: Debugging JSP's in Struts.

2002-06-08 Thread VEDRE, RANAPRATAP REDDY


 i am fan a of JDeveloper myself(also because oracle has free version).

 Actually, i tried running the embedded container but could not get
debugging "Struts" JSP's. 
 Can we debug Struts JSP's with breakpoints in jsp directly using
JDeveloper.  

Thanks..

-Original Message-
From: Steve Muench [mailto:[EMAIL PROTECTED]]
Sent: Saturday, June 08, 2002 9:47 AM
To: Struts Users Mailing List
Subject: Re: Debugging JSP's in Struts.


|  Can we Debug JSP's in Struts(running in Tomcat) using  any of the IDE's
in
| the market. 

Oracle9i JDeveloper supports quick, no-deploy-required running
and debugging on its embedded Oracle9iAS J2EE container, or
can do remote debugging of any Java code, including Tomcat.

While debugging on the Oracle9iAS JSP engine, extra line info
is generated to do JSP-source-level debugging, too, instead
of having to debug the generated servlet (yuck!).

http://otn.oracle.com/products/jdev

__
Steve Muench - Developer, Product Mgr, Java/XML Evangelist, Author
Simplify J2EE and EJB Development with BC4J
http://otn.oracle.com/products/jdev/htdocs/j2ee_bc4j.html
Building Oracle XML Apps, 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. 
| 
|  -Thanks.
| 
| --
| To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
| For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
| 
| 


--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




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:   
For additional commands, e-mail: 




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.
   }

<% } %>

-Thanks 

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: JDeveloper and Tomcat

2002-01-09 Thread VEDRE, RANAPRATAP REDDY

I could run Tomcat from jbuilder and debug my Application from within
JDeveloper 9i.It's also possible to debug jsp's from JDeveloper 9i. 

I am trying to get CVS for my struts app work in JDeveloper.Any Experts
about this in our struts mailing list..

-Original Message-
From: Reid Pinchback [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 09, 2002 4:04 PM
To: Struts Users Mailing List
Subject: Re: JDeveloper and Tomcat



 
 I"m not a JDeveloper user, but as I recall it is (or at least was)
an IDE based on JBuilder and licensed by Borland/Inprise to
Oracle.  If that is still the case then maybe you need to follow
the same steps to integrated Struts with JDeveloper as you 
would for JBuilder.  That means installing the open tool to
add the *.tld files to the war you build and remove struts.jar
from the Tomcat classpath.  Try looking at:
http://www.netstore.ch/mesi/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 emails in Yahoo! Mail.

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




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:   
For additional commands, e-mail: 




RE: Personalized content using Struts. Jetspeed?

2001-12-18 Thread VEDRE, RANAPRATAP REDDY

Thanks this is exactly what i was looking for.

Struts mailing list worked again!

 do you have info about how jetspeed works with struts. 

 any sites built using struts with jetspeed.

Thanks



-Original Message-
From: Yerramreddy, Sridhar [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 18, 2001 11:29 PM
To: 'Struts Users Mailing List'
Subject: RE: Personalized content using Struts. Jetspeed?


Please refer to the below for more Jetspeed User preferences section: 

http://jakarta.apache.org/jetspeed/site/customizer.html


-Original Message-----
From: VEDRE, RANAPRATAP REDDY [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 18, 2001 9:55 PM
To: 'Struts Users Mailing List'
Subject: RE: Personalized content using Struts. Jetspeed?


 
 i am looking for something on the user level.

 for example we have yahoo themes where we can change the appearance of
wesite and also ordering of the menus like content management preferences
for users i.e., a user can choose where his menu's(tables) are displayed and
when he logs the next time they should be in place where ho left the menus
when last logged. this is similar to most portal sites like yahoo and msn.

Thanks.




-Original Message-
From: Yerramreddy, Sridhar [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 18, 2001 10:44 PM
To: 'Struts Users Mailing List'
Subject: RE: Personalized content using Struts. Jetspeed?


If you look at the Jetspeed implementation carefully, It does provide
content entitlements based on role and user group. Basically, You can
customize and personalize the content presented at user community level. If
you are looking for deeper 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: Tuesday, December 18, 2001 9:39 PM
To: 'Struts Users Mailing List'
Subject: RE: Personolized content using Struts. Jetspeed?


I have looked the apche slide web page but it does not mention amything
about proving customization(personalized content) for users.

 yes, jetspeed does not do much help either.

 please let me know if you have any other info about customized content
using struts.

Thanks.

-Original Message-
From: Kris Thompson [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 18, 2001 1:15 PM
To: Struts Users Mailing List
Subject: Re: Personolized content using Struts. Jetspeed?


 From what I have heard Jetspeed is tightly coupled with Turbine and no 
talk of a port to struts yet.

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 for this?. 
>  Are there any competetors. I use Templates Tags in struts on Tomcat and
>Apache web server. 
>
> Saw a few sites with jetspeed on jakarta site.  I am not sure if those
>sites were built using struts.
>
> Interested in getting links to sites providing customization build using
>struts.
>
>- Thanks 
>
> 
>
>--
>To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>



--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>

--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>

--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>

--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>

--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




RE: Personalized content using Struts. Jetspeed?

2001-12-18 Thread VEDRE, RANAPRATAP REDDY

 
 i am looking for something on the user level.

 for example we have yahoo themes where we can change the appearance of
wesite and also ordering of the menus like content management preferences
for users i.e., a user can choose where his menu's(tables) are displayed and
when he logs the next time they should be in place where ho left the menus
when last logged. this is similar to most portal sites like yahoo and msn.

Thanks.




-Original Message-
From: Yerramreddy, Sridhar [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 18, 2001 10:44 PM
To: 'Struts Users Mailing List'
Subject: RE: Personalized content using Struts. Jetspeed?


If you look at the Jetspeed implementation carefully, It does provide
content entitlements based on role and user group. Basically, You can
customize and personalize the content presented at user community level. If
you are looking for deeper 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: Tuesday, December 18, 2001 9:39 PM
To: 'Struts Users Mailing List'
Subject: RE: Personolized content using Struts. Jetspeed?


I have looked the apche slide web page but it does not mention amything
about proving customization(personalized content) for users.

 yes, jetspeed does not do much help either.

 please let me know if you have any other info about customized content
using struts.

Thanks.

-Original Message-
From: Kris Thompson [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 18, 2001 1:15 PM
To: Struts Users Mailing List
Subject: Re: Personolized content using Struts. Jetspeed?


 From what I have heard Jetspeed is tightly coupled with Turbine and no 
talk of a port to struts yet.

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 for this?. 
>  Are there any competetors. I use Templates Tags in struts on Tomcat and
>Apache web server. 
>
> Saw a few sites with jetspeed on jakarta site.  I am not sure if those
>sites were built using struts.
>
> Interested in getting links to sites providing customization build using
>struts.
>
>- Thanks 
>
> 
>
>--
>To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>



--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>

--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>

--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>

--
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

I have looked the apche slide web page but it does not mention amything
about proving customization(personalized content) for users.

 yes, jetspeed does not do much help either.

 please let me know if you have any other info about customized content
using struts.

Thanks.

-Original Message-
From: Kris Thompson [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 18, 2001 1:15 PM
To: Struts Users Mailing List
Subject: Re: Personolized content using Struts. Jetspeed?


 From what I have heard Jetspeed is tightly coupled with Turbine and no 
talk of a port to struts yet.

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 for this?. 
>  Are there any competetors. I use Templates Tags in struts on Tomcat and
>Apache web server. 
>
> Saw a few sites with jetspeed on jakarta site.  I am not sure if those
>sites were built using struts.
>
> Interested in getting links to sites providing customization build using
>struts.
>
>- Thanks 
>
> 
>
>--
>To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>



--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




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 a few sites with jetspeed on jakarta site.  I am not sure if those
sites were built using struts.

 Interested in getting links to sites providing customization build using
struts.

- Thanks 

 

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: in web.xml and 404 HTTP error

2001-11-20 Thread VEDRE, RANAPRATAP REDDY

  when i used "http://java.sun.com/j2ee/dtds/web-app_2_3.dtd";
it dint work so i checked out this url and it gives a mesage saying the url
has changed and servlet 2.3 should use
 "http://java.sun.com/dtds/web-app_2_3.dtd"; i.e., without the j2ee.

 no clue what is the problem. 

still i get an error when i start my tomcat witht the new 2.3 dtd and error
page still does not work.

please let me know if you know about this.


 I am not sure if there is something to with struts or tomcat or servlet api
version on my pc.

stack trace when i start tomcat:
=

XmlMapper: Can't find resource for entity: -//Sun Microsystems, Inc.//DTD
Web Application 2.3//EN --> http://java.sun.com/dtd/web-app_2_3.dtd "null"

register('-//Apache Software Foundation//DTD Struts Configuration 1.0//EN',
'jar
:file:C:\Tomcat\jakarta-tomcat-3.2.3\webapps\WebEval3\WEB-INF\lib\struts.jar
!/or
g/apache/struts/resources/struts-config_1_0.dtd'

register('-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN',
'jar:file:C:\
Tomcat\jakarta-tomcat-3.2.3\webapps\WebEval3\WEB-INF\lib\struts.jar!/org/apa
che/
struts/resources/web-app_2_2.dtd'
 

-Original Message-
From: Steve Zhang
To: Struts Users Mailing List
Sent: 11/20/2001 1:43 PM
Subject: Re:  in web.xml and 404 HTTP error

http://java.sun.com/j2ee/dtds/web-app_2_3.dtd";>

...
after 


  404
  /servlet/package.ErrorHandlerServlet?code=404


before 
...


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  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 placement in web.xml for
catching
> 404 error.
>
>  -Thanks.
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>


--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




in web.xml and 404 HTTP error

2001-11-20 Thread VEDRE, RANAPRATAP REDDY


 I have tried to use  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 placement in web.xml for catching
404 error.

 -Thanks.

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




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 application into groups so
that each language can have more than one resource file.

For example :   
   For english
   english.resource1
   english.resource2

   For japanese
   japanese.resource1
   japanese.resource2

 I could not find anything like this in documentaion. Did anybody use
something like this? 

-Thanks