RE: Radio button CHECKED ???

2004-01-21 Thread Nimish Chourey , Tidel Park - Chennai
In this tag ...
It checks the property with value , if they are same , then it shows that
raio button as checked ..

In this case your bean property is initialized to false , hence it always
shows that radio butoon as checked ..





-Original Message-
From: Mauricio T. Ferraz [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, January 21, 2004 3:48 PM
To: Struts Users Mailing List
Subject: Radio button CHECKED ???


Help!!
I have a actionForm with a boolean property and set and get
and in my jsp



The radio checked always is the second, where is "false". How I put the
first to be checked when de jsp is loaded?


thanks


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


RE: indexed properties mini(est) HOWTO

2003-12-16 Thread Nimish Chourey , Tidel Park - Chennai
What if I have a DynaAction form . In that case how do I handle the
getter/Setter method ...

-Original Message-
From: Rajat Pandit [mailto:[EMAIL PROTECTED] 
Sent: Sunday, December 14, 2003 3:16 PM
To: Struts Users Mailing List
Subject: indexed properties mini(est) HOWTO


hello,
am positng a quick HOWTO to get started with using indexed properties, 
as i guess almost everyone has had to deal with it atleast once.

pls post any suggestions/additions etc to improve on it. i might add on 
the JSTL version a little version of it. (only the view part changes in 
that case) just removes the inline scripting in that case.


In the View
---
 />

_put_form_bean_name_here_ => put your form bean name here. currIdx = is the
indexId from the  bidAmount one of the values form the
indexed property, property

In the formBean

u should use the property has arrayList as it can grow in size as required.

its basically very obvious to guess what will be arguments for the 
getter and the setter will be, if u look at the view

getter (in case bidAmount arraylist stores float type)
--
public Float getBidAmount(int idx) {
 if (idx < bidAmount.size()) {
 return this.bidAmount[idx]
 } else {
 return new Float(0);
 }
}

setter (this was the tricky one)

public void setBidAmount(int idx, Float value) {
 // the while loop will increase the size
 // to what is required
 while (idx >= this.bidAmount.size()) {
 this.bidAmount.add(new Float(0));
 }

 // now just replace the value at the requried position.
 this.bidAmount.set(idx,value);
}





-- 


Rajat Pandit | [EMAIL PROTECTED]
IT Consultant
Phone: +91 612 3117606




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


RE: dynamically populating options in form

2003-11-20 Thread Nimish Chourey , Tidel Park - Chennai
Yes .. Have a look at the docs for LookupDispatchAction .. 
That would solve your purpose .. 

-Original Message-
From: Anindito De [mailto:[EMAIL PROTECTED] 
Sent: Thursday, November 20, 2003 2:25 PM
To: Struts Users Mailing List
Subject: RE: dynamically populating options in form


Is there someway we can do the same thing, without making a server call on
every change event of the first select control ? 
Again, we want to make minimal use of JavaScript. 

Thanks in advance

Anindito


-Original Message-
From: Nimish Chourey , Tidel Park - Chennai
[mailto:[EMAIL PROTECTED] 
Sent: Thursday, November 06, 2003 5:43 PM
To: Struts Users Mailing List
Subject: RE: dynamically populating options in form


Something like Below ..

The "Onchange" event will trigger the Submission to another action which
then keeps the collection in request/session scope and select Box B is then
populated ..See the code below ..





RE: DynaValidationForm

2003-11-13 Thread Nimish Chourey , Tidel Park - Chennai
You can make two action mappings say 

For Retrieveing details 




For Editing 




Notice that the action is same , only the value of validate attribute is
changed 

Nimish


-Original Message-
From: Ghanakota, Vishu [mailto:[EMAIL PROTECTED] 
Sent: Friday, November 14, 2003 1:36 AM
To: 'Struts Users Mailing List'
Subject: DynaValidationForm


Hi,
Is there a way to make DynaValidationForm not to do the validation based on
a certain attribute other than sub-classing it? That's not that difficlt to
do, but I was wondering if there is a better way, here is my scenario. I
have an account table and I have one form and one action for all the
usecases associated with account (add/edit/update/view/list/delete). For
edit scenario, I need to retrieve the row in one interaction and update in
the other. I am relying on the form that gets created when edit is called
and setting all the fields to that form. This worked fine until I introduced
validation. With validation, during the first interaction, it tries to
validate and returns the form back. I want it not to validate for the first
request.

thanks,
Vishu

"MMS " made the following
 annotations on 11/13/2003 12:05:44 PM

--
"THIS E-MAIL MESSAGE AND ANY FILES TRANSMITTED HEREWITH, ARE INTENDED SOLELY
FOR THE USE OF THE INDIVIDUAL(S) ADDRESSED AND MAY CONTAIN CONFIDENTIAL,
PROPRIETARY OR PRIVILEGED INFORMATION.  IF YOU ARE NOT THE ADDRESSEE
INDICATED IN THIS MESSAGE (OR RESPONSIBLE FOR DELIVERY OF THIS MESSAGE TO
SUCH PERSON) YOU MAY NOT REVIEW, USE, DISCLOSE OR DISTRIBUTE THIS MESSAGE OR
ANY FILES TRANSMITTED HEREWITH.  IF YOU RECEIVE THIS MESSAGE IN ERROR,
PLEASE CONTACT THE SENDER BY REPLY E-MAIL AND DELETE THIS MESSAGE AND ALL
COPIES OF IT FROM YOUR SYSTEM."

==


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


RE: Problem with - tag

2003-11-13 Thread Nimish Chourey , Tidel Park - Chennai
Try  this :-




-Original Message-
From: Peter Friesleben [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, November 12, 2003 6:50 PM
To: 'Struts Users Mailing List'
Subject: AW: Problem with  - tag


Thanks for the hint Nimish. That`s how it is usually done. My problem is
slightly different. I want to use another form than the one which is mapped
to the action in the struts config. So if action A is mapped to form B in
the struts config, I want my options tag to retrieve values from form C.
Otherwise I would have to rewrite in B some attributes which are exist
already in C and I don`t want to do that. (Neither would I like to
delegate). 

I supposed it is possible to get a reference to any bean which is set to the
session by tbe name attribute of the options tag. But maybe this is not the
case for the html tags, though it works fine with the bean write tag.

-Ursprüngliche Nachricht-
Von: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Im Auftrag von Nimish Chourey , Tidel Park - Chennai
Gesendet: Mittwoch, 12. November 2003 13:10
An: Struts Users Mailing List
Betreff: RE: Problem with  - tag

Probably .. The form tag has the action , which is linked to some different
form .

Ie say you have form tag like this 


And in struts config , the action is mapped to some form say form name B ,
then your html options tag should be like 

 

In case of bean write , it wont look up for the form mapped to the action ..
Hence that works ..

Check this thing ..

Nimish




-Original Message-
From: Peter Friesleben [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, November 12, 2003 1:52 PM
To: [EMAIL PROTECTED]
Subject: WG: Problem with  - tag


I'm receiving this error using Tomcat 4.1 and Struts 1.0

"javax.servlet.ServletException: No getter method available for property
vendors for bean under name null" 

I'm using the  tag this way:




Since formbean "SomeForm" is reused from another context it is explicitly
initialized and set to the session in the ActionClass defined in the
  tag of this JSP.

Funny thing is if I'm doing  in the same JSP I see the complete list of vendors.

Any suggestions?


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


RE: Problem with - tag

2003-11-12 Thread Nimish Chourey , Tidel Park - Chennai
Probably .. The form tag has the action , which is linked to some different
form .

Ie say you have form tag like this 


And in struts config , the action is mapped to some form say form name B ,
then your html options tag should be like 

 

In case of bean write , it wont look up for the form mapped to the action ..
Hence that works ..

Check this thing ..

Nimish




-Original Message-
From: Peter Friesleben [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, November 12, 2003 1:52 PM
To: [EMAIL PROTECTED]
Subject: WG: Problem with  - tag


I'm receiving this error using Tomcat 4.1 and Struts 1.0

"javax.servlet.ServletException: No getter method available for property
vendors for bean under name null" 

I'm using the  tag this way:




Since formbean "SomeForm" is reused from another context it is explicitly
initialized and set to the session in the ActionClass defined in the
  tag of this JSP.

Funny thing is if I'm doing  in the same JSP I see the complete list of vendors.

Any suggestions?


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


RE: Servlet filter and Struts

2003-11-11 Thread Nimish Chourey , Tidel Park - Chennai
You can also sub class the processRole method in Request Processor and then
check whether the user logged in has a particular role . The accepted roles
are declared in the action tag , there by giving you a action level Security
. 


-Original Message-
From: Steffen Gransow [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 11, 2003 3:40 PM
To: 'Struts Users Mailing List'
Subject: RE: Servlet filter and Struts


But that would be somewhat of an overkill, if all I need is securing some
pages/actions, wouldn't it? I now have a simple servlet filter that
redirects to login page if a simple object isn't to be found in session.
User passwords (that is, hashes) will later be retrieved from a database. Is
this approach wrong or not secure enough? The application I'm developing
only has users, that do all have the same rights. So I don't need roles at
all I think. A little OT question: What about securing the connection from
clients to server? How is Struts ssl-ext involved in this? I don't know what
it can do. Is it not enough to let clients access the webapp using https? Is
it an added layer of security? I admit to be new to developing larger web
applications (especially struts) and therefore I do not know too much about
role-based or whatever security mechanisms. So please be gentle with my
questions. :)=

Regards,

Steffen


-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Vic Cekvenich
Sent: Monday, November 10, 2003 2:06 PM
To: [EMAIL PROTECTED]
Subject: Re: Servlet filter and Struts
Importance: High


This is the standard way to do what you want... in web-xml only, using 
J2EE for container (such as tomcat JDBC realms) for security, a best 
practice.
Once you know this part of JAAS, then you can extend, to put more things

about the user in session, and track that in you actions.


  
   
Secure
 /do/admin/*
/do/what/*
/do/not/*

  
   
VALID
 ENHANCED
  GUEST
  EXPIRED
  ADMIN

   
   
   NONE
  
  



FORM

/login.jsp
/loginBad.jsp




 GUEST


 VALID


 ENHANCED


 EXPIRED


 ADMIN






Steffen Gransow wrote:
> Sorry, wrong mailing list I guess. :\
> 
> But what I would like to know is: If I do forward to a specific page
> in a servlet filter, what would the code look like?
> 
> RequestDispatcher rd =
> context.getRequestDispatcher("/kvnet/login.jsp");
> rd.forward(request, response);
> 
> Or should I use "/kvent/Login.do"? Or am I totally wrong?
> 
> Thanks in advance.
> 
> Steffen
> 
> 
> -Original Message-
> From: Steffen Gransow [mailto:[EMAIL PROTECTED]
> Sent: Monday, November 10, 2003 11:54 AM
> To: [EMAIL PROTECTED]
> Subject: Servlet filter and Struts
> 
> Hi,
> 
> I want to implement a servlet filter to redirect users to login when
> there is no valid session. Now I have a simple Struts application with

> a welcome and a login page. As soon as I add the filter my
> 'application' stops working. How do I implement a servlet filter in a 
> correct way to achieve what I want?
> 
> My web.xml looks like this:
> 
>   
>   loginFilter
>   
> de.quasa.kvnet.util.LoginFilter
>   
>   loginPage
>   /jsp/login.jsp
>   
>   
>   
>   loginFilter
>   /*
>   
> 
> The init-param isn't used at the moment. Is the pattern correct? I
> would access my app with a url like this: http://localhost/kvnet
> 
> Are there good resources for me to read?
> 
> Thanks in advance.
> 
> Steffen

-- 
Victor Cekvenich,
Struts Instructor
(215) 321-9146

Advanced Struts Training 
Server Side Java training with Rich UI, mentoring, designs, samples and
project recovery in North East. Simple best practice basic Portal, a Struts
CMS, Membership, Forums, Shopping and Credit processing,
 software, ready to develop/customize; requires a db
to run.



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


RE: ValidatorForm losing params when validation fails

2003-11-10 Thread Nimish Chourey , Tidel Park - Chennai
Yes .. It makes sense ..

Can u post the action mapping in the struts config .. That may give some
clue 

-Original Message-
From: Marc Dugger [mailto:[EMAIL PROTECTED] 
Sent: Monday, November 10, 2003 5:33 PM
To: Struts Users Mailing List
Subject: RE: ValidatorForm losing params when validation fails


My mapping specifies 'validate="false"' because I have a method in the
DispatchAction, called refresh(mapping, form, request, response) which
adjusts the size of indexed properties in the Form and returns the user to
the same page.  I do not want the form to be validated when refresh(mapping,
form, request, response) is called, but I do want validation when the other
methods (i.e. add, update) on the DispatchAction are called.  Make sense?

> -Original Message-
> From: Nimish Chourey , Tidel Park - Chennai 
> [mailto:[EMAIL PROTECTED]
> Sent: Sunday, November 09, 2003 10:50 PM
> To: Struts Users Mailing List
> Subject: RE: ValidatorForm losing params when validation fails
>
>
> The validate method of the form would be called before the execute 
> method of action ..
> Why do you have to call the form.validate(mapping, request) explicitly , I
> doth think this code in acton would be executed if the validation
> fails ...
>
>
> -Original Message-
> From: Marc Dugger [mailto:[EMAIL PROTECTED]
> Sent: Monday, November 10, 2003 6:45 AM
> To: [EMAIL PROTECTED]
> Subject: ValidatorForm losing params when validation fails
>
>
> The following code fragment is used in a DispatchAction and when the 
> validation fails, the input form is returned unpopulated because all 
> my form fields lose the data that was originally sent with the 
> request:
>
> ActionErrors errors = form.validate(mapping, request);
>   if (!errors.isEmpty()) {
>   saveMessages(request, errors);
>   return mapping.getInputForward();
>   }
>
> My form extends ValidatorForm and I have not overridden reset(). Why 
> is the form losing it's parameters?  Thanks in advance.
>
>
> -
> 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]


RE: Action Class: Print into respone

2003-11-10 Thread Nimish Chourey , Tidel Park - Chennai
Put the data in form of bean into request/session scope and then forward to
a JSP (view Page) .. Which then takes the bean from the request/session
scope to render the data ... 


-Original Message-
From: Christian Burger [mailto:[EMAIL PROTECTED] 
Sent: Monday, November 10, 2003 4:53 PM
To: [EMAIL PROTECTED]
Subject: Action Class: Print into respone


Hello,

I want to generate on the fly data which I want to print into the response 
stream. This is not the problem: The poblem is that any Struts Action 
shall return with an ActionForward instance. 
Yes, I could generate a temporary file in which I would print. I could 
furthermore create an ActionForward instance which points to that file. 
But later on I would have to take care to clean up, etc.

Somebody has an idea?

best regards
Christian

_
Please be advised that the information contained herein is confidential and
intended only for use by the individual stated above. If you are not the
named recipient, you are hereby notified that any disclosure, distribution,
dissemination, or copying is prohibited. If this information has been
directed to you in error, please contact the sender immediately at the
telephone number listed above.


RE: ValidatorForm losing params when validation fails

2003-11-09 Thread Nimish Chourey , Tidel Park - Chennai
The validate method of the form would be called before the execute method of
action ..
Why do you have to call the form.validate(mapping, request) explicitly , I
doth think this code in acton would be executed if the validation fails ...


-Original Message-
From: Marc Dugger [mailto:[EMAIL PROTECTED] 
Sent: Monday, November 10, 2003 6:45 AM
To: [EMAIL PROTECTED]
Subject: ValidatorForm losing params when validation fails


The following code fragment is used in a DispatchAction and when the
validation fails, the input form is returned unpopulated because all my form
fields lose the data that was originally sent with the request:

ActionErrors errors = form.validate(mapping, request);
if (!errors.isEmpty()) {
saveMessages(request, errors);
return mapping.getInputForward();
}

My form extends ValidatorForm and I have not overridden reset().  Why is the
form losing it's parameters?  Thanks in advance.


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


RE: Best Practices in Struts for Form objects?

2003-11-06 Thread Nimish Chourey , Tidel Park - Chennai
How do you extend if you are using a DynaForm ??? 
Is there anyway out .. ??


-Original Message-
From: Philip Mark Donaghy [mailto:[EMAIL PROTECTED] 
Sent: Thursday, November 06, 2003 9:16 PM
To: Struts Users Mailing List
Subject: Re: Best Practices in Struts for Form objects?


If all of your Forms have exactly the same properties
then use the same form mapping for all your actions.

If all of your Forms share some properties then use
different forms for each action. Each of these forms
would extend a generic form which extends of course
ActionForm or ValidatorForm.

Phil

--- Michael Cardon <[EMAIL PROTECTED]> wrote:
> Hello,
> 
> If I have 5 Action classes that all need to
> reference the same Form object,
> should I map each Action to the same form name, or
> use different names for
> each of the Forms in the Actions?  Does it make a
> difference if I'm using
> session scope vs. request scope?
> 
> Example using the same form names, same form class:
> 
>  type="mim.struts.form.SelectForm"/>
> 
>
> type="mim.struts.action.pw.StudentPwAction"
>name="pwForm"
>   scope="request"
>validate="false"
>   parameter="dispatch">
>   
> 
> 
>
> type="mim.struts.action.pw.StudentPwAction"
>name="pwForm"
>   scope="request"
>validate="false"
>   parameter="dispatch">
>   
> 
> 
> ... 3 more actions 
> 
> 
> Example using diferent form names, same form class:
> 
> 
>  type="mim.struts.form.SelectForm"/>
> 
>
> type="mim.struts.action.pw.StudentPwAction"
>name="teacherpwForm"
>   scope="request"
>validate="false"
>   parameter="dispatch">
>   
> 
> 
>
> type="mim.struts.action.pw.StudentPwAction"
>name="studentpwForm"
>   scope="request"
>validate="false"
>   parameter="dispatch">
>   
> 
> 
> ... 3 more actions 
> 
> Thanks
> 
> 
>
-
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 


=
Java Web Application Architect
mapimage.com - Java and GIS
struts1.1:tomcat4.1.27:linuxRH8

__
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree

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


RE: Best Practices in Struts for Form objects?

2003-11-06 Thread Nimish Chourey , Tidel Park - Chennai
Hi Michael ,
I started off with using the same forms .. But down the line , it so
happens that the Screens might change .. 
Eg If you have same form for Add and Modify , and then later in Modify
Screen you have only certain fields to be modified , then the problem comes
. 
This happens when you use BeanUtils to copy properties from form to VO . In
that case,BeanUtils would throw errors as it wont be able to conert empty
Strings to date or what ever . 
So I feel , its better to have different forms ..
Though that may mot be true always ..


Nimish

-Original Message-
From: Michael Cardon [mailto:[EMAIL PROTECTED] 
Sent: Thursday, November 06, 2003 9:05 PM
To: [EMAIL PROTECTED]
Subject: Best Practices in Struts for Form objects?


Hello,

If I have 5 Action classes that all need to reference the same Form object,
should I map each Action to the same form name, or use different names for
each of the Forms in the Actions?  Does it make a difference if I'm using
session scope vs. request scope?

Example using the same form names, same form class:




  



  


... 3 more actions 


Example using diferent form names, same form class:





  



  


... 3 more actions 

Thanks


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


RE: dynamically populating options in form

2003-11-06 Thread Nimish Chourey , Tidel Park - Chennai
Something like Below ..

The "Onchange" event will trigger the Submission to another action which
then keeps the collection in request/session scope and select Box B is then
populated ..See the code below ..





RE: display tag and struts

2003-10-16 Thread Nimish Chourey , Tidel Park - Chennai
Yes .. I had the same problem .. 
you need to use scriplet .. some thing like this ..

<%
MessageResources resource =(MessageResources)
application.getAttribute(Globals.MESSAGES_KEY) ;
%>

" sort="true" href="get.do?method=retrieve"
paramId="lId" paramProperty="ID" />

Nimish

-Original Message-
From: Otto, Frank [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 16, 2003 11:56 AM
To: 'Struts Users Mailing List'
Subject: AW: display tag and struts


Hi,

I have asked this question in display-tag maillist, but I got no answer.

I think the i18n with display-tag is a "struts problem", because I read the
mail from Nelson in display-tag maillist and he has the same problem. Struts
can't parse nested tags. Mail of Nelson:

-
Von: Nelson Ferreira Jr [mailto:[EMAIL PROTECTED]
Gesendet: Mittwoch, 15. Oktober 2003 21:38
An: [EMAIL PROTECTED]
Betreff: [displaytag-user] Display taglib and struts
internationalization


   Hi,

   I´d like to internationalize my table headers, reading the column title 
from ApplicationResources. Something like this:

"/>

   But it looks like Struts does not parse nested tags, and I just get a 
blank title. Any ideas?


   Thanks,

 
Nelson 





-Ursprüngliche Nachricht-
Von: Yansheng Lin [mailto:[EMAIL PROTECTED]
Gesendet: Mittwoch, 15. Oktober 2003 23:42
An: 'Struts Users Mailing List'
Betreff: RE: display tag and struts


Hi Frank, you might want to ask this question on display-tag maillist.  I
subscribed to that list a while ago, and as far as I can tell, there are
quite a
few nice people on the list.

As to your sorting problem,  I don't think it has anything to do with the
scope.
I got it working with request scope Can you do paging?  And what kind of
error message do you get?



-Original Message-
From: Otto, Frank [mailto:[EMAIL PROTECTED] 
Sent: October 15, 2003 9:27 AM
To: Struts-User (E-Mail)
Subject: display tag and struts


Hello,
 
I have read something about diplay tag library and have test it. If I want
to
sort the table by clicking on column, I will get an error, because my
collection
is null. It isn't saved in the session, only in the request. An idea?
 
My other questions is:
 
- Can I use display tag with i18n and resource bundles? I need the column
titles
in different languages.
 
 
Regards,
 
Frank


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


RE: Validate values in collection?

2003-09-25 Thread Nimish Chourey , Tidel Park - Chennai
You can always extend DynaValidatorForm and overwrite the validate method . 

-Original Message-
From: Timo Neumann [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 25, 2003 6:06 PM
To: Struts Users Mailing List
Subject: Re: Validate values in collection?


Natalie D Rassmann wrote:

> yes

how?

> 
> Timo Neumann wrote:
> 
> 
>>Hi all,
>>
>>is it possible to use the validator framework to check values of beans
>>that are stored in a collection in a DynaValidatorForm?
>>
>>TIA,
>>
>>Timo
>>--
>>F&F Computer AnwendungenTel: +49 89 51727-352
>>und Unternehmensberatung GmbH   Fax: +49 89 51727-111
>>Westendstr. 195 Mail: [EMAIL PROTECTED]
>>D-80686 Muenchenhttp://www.ff-muenchen.de
>>
>>-
>>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]


-- 
F&F Computer AnwendungenTel: +49 89 51727-352
und Unternehmensberatung GmbH   Fax: +49 89 51727-111
Westendstr. 195 Mail: [EMAIL PROTECTED]
D-80686 Muenchenhttp://www.ff-muenchen.de


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


Dispatch Action with Validator

2003-08-06 Thread Nimish Chourey , Tidel Park - Chennai
Hi all,
I am using DispatchActionClass with DynaValidator form . 
I have two mehods in the DispatchActionClass  , one is retrieve and other is
update . 

The problem is when I set the Validations for the form , the Validaor
validates the form before calling both the methods .. 
In retrieve method  the form is empty , hence the processing doent continue
. 
Can set the Validations according to DispachAction methods ..
I want the vaidator to work only if the update method is called ..
Is that possible ??

Nimish



RE: [OT] Clustering / Session Replication

2003-07-16 Thread Nimish Chourey , Tidel Park - Chennai
There as a similar thread on this topic .Serach for "Session Management
using EJB" 
probably that would help ..



> -Original Message-
> From: Jan Zimmek [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, July 16, 2003 1:41 PM
> To: [EMAIL PROTECTED]
> Subject: [OT] Clustering / Session Replication
> 
> 
> Hi,
> 
> I read an article about clustering in tomcat on theserverside.com, but
> have some questions about it.
> 
> There is a statement to use "In-Memory"-Replication in favour of
> "Database/Filesystem"-Replication to avoid problems like (speed,
> external dependencies, ...).
> 
> Most of our projects make use of gui-components like trees, pager and
> pagecontrols, whose state are stored in the HttpSession-Object.
> Depending on the project, the amount of used memory for these objects
> can be really huge ( in a equivalent php version, a serialized session
> can be up to 1mb ).
> 
> Would this means, is that 200 concurrent HttpSessions ( each 
> one ~ 1mb )
> would be replicated to each Tomcat-Server in my cluster and therefore
> each server requires ~ 200mb RAM to hold all concurrent
> HttpSession-Objects when using "In-Memory"-Replication ?
> 
> Are there any mechanisms to share those huge HttpSessions over several
> servers without the needed RAM of ~200mb per server ?
> 
> 
> Any comment would be really appreciated.
> 
> 
> regards,
> Jan Zimmek
> 
> 


RE: JAAS and struts1.1

2003-07-10 Thread Nimish Chourey , Tidel Park - Chennai
I am also doing the R&D on same ..
have a look at
http://www.javaworld.com/javaworld/jw-09-2002/jw-0913-jaas_p.html


A good starting point .


-Original Message-
From: Ashish Kulkarni [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 10, 2003 11:02 PM
To: [EMAIL PROTECTED]
Subject: JAAS and struts1.1


Hi
has anyone worked with JAAS and a struts project, i
have a project where in i have used struts1.1 and is
working great, now i have a requirement where i want
to validate a user against a AS400 system, i.e. get
user id and password and validate it for some
functions
IS there any other way to do it

ashish

__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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


RE: [OT] Session Management using EJB

2003-07-10 Thread Nimish Chourey , Tidel Park - Chennai
Thanks Eric , for your feedback . 
I am aware of the fact that container takes care of duplicating the Session
across the cluster . 
But then if I have 10 servers , it would be an big overhead as the server
has to make 10 copies of Session object.
If I maintain the user state on the App Server level (EJB) . I could manage
to bring down this overhead .
But then I need to roll out my own session implementation (which at Web Tier
,Servlet/JSP container already implemnts).
I am also aware of the fact that then my getAttribute() , setAttribute()
calls would be network calls , and hence expensive

So this I m doing just to make sure that overhead of session object
replication is not there.

Now my question is .. do you feel I have some point here ??? 
or you feel that  its more coding for less gain ?? 






-Original Message-
From: Erik Price [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 10, 2003 9:09 PM
To: Struts Users Mailing List
Subject: Re: [OT] Session Management using EJB




Nimish Chourey , Tidel Park - Chennai wrote:
> Hi all ,
>   I want to know if there are  applications that implements Session
> Management using EJB's  rather then using the HttpSession on Web tier .
> I want to know the pros and cons of this approach . For all the R&D that I
> have done , it seems that this approach could be used when you are
deploying
> your application in a clustered environment , where it is really a over
head
> to duplicate the sessions on all the servers in the cluster .
> Still I am in dilemma , whether to follow this approach or not ??
> This is really off topic , but I guess many of the developers here must
have
> come across this ..
> Any sort of help , pointers is really appreciated .

Nimish,

I may be completely wrong about this, but here are my thoughts...

As I'm sure you are aware, the purpose of the "session" in web 
applications is to maintain state between stateless HTTP requests. 
Thus, there is an HttpSession object available at the web tier (since 
presumably in 99.9% of situations, any HTTP requests will be handled at 
the web tier).

In web applications that are not browser based (specifically, rich 
clients and applets), there is not the same need to persist state using 
a "session" object, because the state can be maintained in the client.

Beyond the web tier, in the EJB tier, I don't think that there is a need 
to persist state beyond what session beans already offer.  In other 
words, you can use a stateful session bean to perform a complicated 
action (or a stateless session bean for a simple action).  But once the 
action is complete, you don't want the bean hanging around, it should be 
returned to the pool quickly to service the needs of other clients.  The 
HttpSession is a comparatively lightweight object that you can use for 
persisting simple state information.

I think that what you are really looking for is clustering for 
HttpSession objects, so that in a clustered environment, the HttpSession 
is replicated transparently.  You can try to roll your own, but this is 
really an infrastructural area that is the responsibility of the 
container provider.  Therefore, you should turn to your application 
server for this feature.  (And I thought I heard that Tomcat is planning 
to have something like this in 5.0)


Erik


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


[OT] Session Management using EJB

2003-07-10 Thread Nimish Chourey , Tidel Park - Chennai
Hi all ,
I want to know if there are  applications that implements Session
Management using EJB's  rather then using the HttpSession on Web tier .
I want to know the pros and cons of this approach . For all the R&D that I
have done , it seems that this approach could be used when you are deploying
your application in a clustered environment , where it is really a over head
to duplicate the sessions on all the servers in the cluster .
Still I am in dilemma , whether to follow this approach or not ??
This is really off topic , but I guess many of the developers here must have
come across this ..
Any sort of help , pointers is really appreciated .


Regards
Nimish


RE: Struts/Jboss 3.2.x

2003-06-27 Thread Nimish Chourey , Tidel Park - Chennai
Is anybody using JASS with JBOSS .. 

-Original Message-
From: Konstadinis Euaggelos [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 27, 2003 1:32 PM
To: Struts Users Mailing List
Subject: Re: Struts/Jboss 3.2.x


I haven't face any problem,

V.
- Original Message -
From: "Buics" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, June 27, 2003 1:27 AM
Subject: Struts/Jboss 3.2.x


> Is there any incompatibility issues between struts 1.1 and jboss 3.2.x?
>
> TIA,
> buics
>
>






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


RE: A question on Tiles and Frames

2003-06-20 Thread Nimish Chourey , Tidel Park - Chennai
Humm.. seems to be a good solution .. would definately give it a try .. 

-Original Message-
From: Mike Jasnowski [mailto:[EMAIL PROTECTED]
Sent: Friday, June 20, 2003 7:20 PM
To: Struts Users Mailing List
Subject: RE: A question on Tiles and Frames


Well, depending on the web client you are using, IE has a feature that
enables some block level elements like  to be scrollable.  You can set
an "overflow" CSS property that enables a scrollbar to appear.There are
also cross-browser solutions for making independent (non-frame) scrollable
areas of content.

-Original Message-----
From: Nimish Chourey , Tidel Park - Chennai
[mailto:[EMAIL PROTECTED]
Sent: Friday, June 20, 2003 9:42 AM
To: Struts Users Mailing List
Subject: RE: A question on Tiles and Frames


I had the same problem .. while developing a Menu (left side) .. wanted to
make that scrollable ..
But I guess its not possible with Tiles I guess ..  Infact try doing it
without tiles (and without frames) .. its not possible . And if somehow if
its really possible .. I would definately like to know that ..

-Original Message-
From: Jeff Kyser [mailto:[EMAIL PROTECTED]
Sent: Friday, June 20, 2003 5:57 PM
To: Struts Users Mailing List
Subject: Re: A question on Tiles and Frames


Okay. So is there *another* way to implement
independently scrollable content within a region of a page using Struts
and Tiles?

-jeff

On Friday, June 20, 2003, at 07:17  AM, Cedric Dumoulin wrote:

>
>  The page of a frame should alway be publicly accessible. It is alway
> possible to access it directly without the other associated frames.
> So, you can't hide them.
>
>Cedric
>
>   Cedric
>
> Jeff Kyser wrote:
>
>> Hey Cedric,
>>
>> Thanks for the response. I guess I'd figured out I couldn't put them
>> under WEB-INF for the reasons you stated. So how can I implement
>> a scollable region such as a frame might offer and still use Tiles and
>> stay with some of the 'best practices' recommended for Struts
>> development such as hiding your JSPs under WEB-INF? I suppose
>> it gets off-topic, but surely there must be a way to have
>> independently
>> scrolled regions of a web page in a Struts environment without
>> making every page publicly accessible?
>>
>> thanks, I'd sure like some insight as to how to proceed...
>>
>> -jeff
>>
>>>  Hi,
>>>
>>>  Each frame of a frameset is filled with a web page. Each one issue
>>> an independent http request to the web server. So each page
>>> corresponding to a frame should be publicly accessible on the web
>>> server, and can't be under WEB-INF.
>>>
>>>   Cedric
>>
>>
>>
>>> but I get Forbidden errors, presumably because my JSPs are beneath
>>> the WEB-INF directory and
>>>
>>>> therefore not accessible.
>>>>
>>>> Is there an alternate way to do this and still have my JSPs
>>>> underneath WEB-INF?
>>>>
>>>> (Basically, I have a frames-based layout with a scrollable panel,
>>>> and am trying
>>>> to figure out how to best implement that feature using Struts/Tiles
>>>> without exposing all
>>>> my JSPs.
>>>>
>>>> TIA,
>>>>
>>>> -jeff
>>>>
>>>> 
>>>> -
>>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>>
>>>>
>>>
>>>
>>> -
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


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


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


RE: A question on Tiles and Frames

2003-06-20 Thread Nimish Chourey , Tidel Park - Chennai
I had the same problem .. while developing a Menu (left side) .. wanted to
make that scrollable .. 
But I guess its not possible with Tiles I guess ..  Infact try doing it
without tiles (and without frames) .. its not possible . And if somehow if
its really possible .. I would definately like to know that .. 

-Original Message-
From: Jeff Kyser [mailto:[EMAIL PROTECTED]
Sent: Friday, June 20, 2003 5:57 PM
To: Struts Users Mailing List
Subject: Re: A question on Tiles and Frames


Okay. So is there *another* way to implement
independently scrollable content within a region of a page using Struts  
and Tiles?

-jeff

On Friday, June 20, 2003, at 07:17  AM, Cedric Dumoulin wrote:

>
>  The page of a frame should alway be publicly accessible. It is alway  
> possible to access it directly without the other associated frames.  
> So, you can't hide them.
>
>Cedric
>
>   Cedric
>
> Jeff Kyser wrote:
>
>> Hey Cedric,
>>
>> Thanks for the response. I guess I'd figured out I couldn't put them
>> under WEB-INF for the reasons you stated. So how can I implement
>> a scollable region such as a frame might offer and still use Tiles and
>> stay with some of the 'best practices' recommended for Struts
>> development such as hiding your JSPs under WEB-INF? I suppose
>> it gets off-topic, but surely there must be a way to have  
>> independently
>> scrolled regions of a web page in a Struts environment without
>> making every page publicly accessible?
>>
>> thanks, I'd sure like some insight as to how to proceed...
>>
>> -jeff
>>
>>>  Hi,
>>>
>>>  Each frame of a frameset is filled with a web page. Each one issue  
>>> an independent http request to the web server. So each page  
>>> corresponding to a frame should be publicly accessible on the web  
>>> server, and can't be under WEB-INF.
>>>
>>>   Cedric
>>
>>
>>
>>> but I get Forbidden errors, presumably because my JSPs are beneath  
>>> the WEB-INF directory and
>>>
 therefore not accessible.

 Is there an alternate way to do this and still have my JSPs  
 underneath WEB-INF?

 (Basically, I have a frames-based layout with a scrollable panel,  
 and am trying
 to figure out how to best implement that feature using Struts/Tiles  
 without exposing all
 my JSPs.

 TIA,

 -jeff

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


>>>
>>>
>>> -
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
>
> -
> 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]


RE: [OT] MVC / Model 2 for Microsoft ???

2003-06-13 Thread Nimish Chourey , Tidel Park - Chennai
The MFC architecture is based on MVC  .. 
Implemented using Document and View classes ..
On web Front .. I have no Idea .. 


-Original Message-
From: Adam Hardy [mailto:[EMAIL PROTECTED]
Sent: Friday, June 13, 2003 1:24 PM
To: Struts Users Mailing List
Subject: Re: [OT] MVC / Model 2 for Microsoft ???


MVC is never used as a term in the Microsoft world that I know of. When 
I was doing Microsoft stuff as well as java, up to the intro of .NET, 
the architectural paradigm for building "best practice" apps was based 
around the Microsoft Solutions Framework or MSF. You have to know all 
about that to get the MSCD in "Analyzing Requirements and Defining 
Solution Architectures".

I still have the MSCD training kit book for the exam, while I've sold 
all the rest of my VB, MTS, COM & ASP books. It's got alot of useful 
principles / patterns in it.

I might have changed since .NET hit the streets though. I dumped 
Microsoft rather than learn .NET, in order to concentrate on Java, which 
is huge enough without wanting to keep up to date on the MS stuff as well.

Adam

Aaron Longwell wrote:
> I hope I don't start a huge debate
> 
> with that intro, here goes.
> 
> I am a freelance web developer. I've been struggling lately with not 
> being able to use the Struts framework on ALL projects. Specifically, I 
> do work with a number of Microsoft Devotees. For several sites, this has 
> meant developing in old ASP like playing with Duplos compared to 
> Struts.
> 
> I have been spending some time learning the .NET framework. So far it 
> looks great... er, the features that look like Java look great. But 
> then, why wouldn't I just use the more open, polished, 
> community-oriented, original... Java? So now to the point... I don't 
> have a choice for some projects... I have to use .NET.
> 
> I am curious if anyone is aware of an MVC-type framework for .NET. I am 
> NOT looking for a Struts port to .NET. I started doing a little 
> research, searching for things like "Best Practices"  or ".NET Patterns" 
> etc. I found almost nothing... no best practices guides. Not even a 
> single recommendation about builing Object-based backend systems. In 
> fact, most books I've read on ASP.NET and .NET in general have focused 
> on database access code directly in the ASPX page itself(in the 
> "Code Behind" section).
> 
> Am I:
> 
> 1) Naive to not notice that Java Enterprise developers are light-years 
> ahead of MS developers in terms of programming practices, design 
> patterns, and role separation?
> 
> 2) Mistaken? There really are MVC frameworks in .NET... but they are all 
> internal... and no community oriented projects exist.
> 
> Thanks for the input.
> 
> Aaron Longwell
> 
> 
> -
> 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]


RE: a jsp question:how to get the web application's directory?

2003-06-12 Thread Nimish Chourey , Tidel Park - Chennai
Try this ..

ClassLoader classLoader =
Thread.currentThread().getContextClassLoader();
InputStream is =
classLoader.getResourceAsStream("foo.txt");

This will load the file from the webapps classpath ie from WEB-INF ...

here foo.txt is in WEB-INF/classes.

 



-Original Message-
From: lcl [mailto:[EMAIL PROTECTED]
Sent: Friday, June 13, 2003 8:54 AM
To: [EMAIL PROTECTED]
Subject: Re: a jsp question:how to get the web application's directory?


OutputStream, seemed very good, but could you give me a more detailed
infomation, because I have touch it before, thank you very much.

"Dan Tran" <[EMAIL PROTECTED]> [EMAIL PROTECTED]
> Cant you just create a stream on the fly and ship it back to the user thru
> HTTPResponse?
>
> In you insist on writting to a webapp directory, look up
> getRealPath().
>
> -Dan
> - Original Message -
> From: "lcl" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, June 12, 2003 7:41 PM
> Subject: a jsp question:how to get the web application's directory?
>
>
> > Hi all,
> >
> > I just have a question about jsp/servlet, how to gain the directory  in
> the
> > file system of a web application? because I want to create a file under
> the
> > web application, and redirect it to user.
> >
> > Best Regards
> > lcl
> >
> >
> >
> >
> > -
> > 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]


RE: Re[2]: Forwarding to a tile definition

2003-06-12 Thread Nimish Chourey , Tidel Park - Chennai
You can attach Controller to the tiles .. You can very well attach a
controller to the main layout .. so I guess it becomes Model 2 .. :)) I may
be wrong also ..But that solves your purpose ..
If you have a Menu driven site and all the links are accesed through links
then its becomes too cumbersome to add an entry in both the files
(struts-config and tiles-config) ..

Any thoughts ??? 


-Original Message-
From: Bailey, Shane C. [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 12, 2003 11:43 PM
To: 'Struts Users Mailing List'
Subject: RE: Re[2]: Forwarding to a tile definition



A link to a tiles def is like linking to a JSP.  This is Model 1 and not
Model 2 architecture.  Someday, you will want something to occur (like a
security check or something) before every page is served up and you are
going to have to go back to all your links and rewrite them because JSPs are
calling JSPs.  It is not good.

I don't understand what the problem is.  You add one element to your struts
config and the problem is solved.

So instead of Home  then you would have
Home by adding this:




So everything is still going through your controller. Later on if you have
to load up personalized info on the home page then you create a new action,
say, named PrepHome.java and simply change your action mapping to be 





Am I missing something?



-Original Message-----
From: Nimish Chourey , Tidel Park - Chennai
[mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 12, 2003 10:11 AM
To: Struts Users Mailing List
Subject: RE: Re[2]: Forwarding to a tile definition

+1 .. I too was wandering .. 
I guess Probably because Tiles is just treated as a plugin .. and not really
part of Struts 

-Original Message-
From: Davidson, Glenn [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 12, 2003 7:23 PM
To: 'Struts Users Mailing List'
Subject: RE: Re[2]: Forwarding to a tile definition


To the designers of Struts:
Why not allow a link:forward to forward directly to a tiles definition?
It
appears that we have to forward to an action then have the action
forward to
the tile definition. Any thoughts?

Glenn

-Original Message-
From: Dirk Markert [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 12, 2003 9:10 AM
To: Struts Users Mailing List
Subject: Re[2]: Forwarding to a tile definition


Hallo Greg,

consider again your url

"http://www.mymacine.com/myapp/my.tile.def";

which you get by using html tags. What else would you expect?
What should be in your server created html file? In my opinion the
url is indeed correct.

If your browser sends a request to the server the server is configured
to handle *.do and *.jsp. How is the server supposed to know how to
handle *.def?

Regards,
Dirk  

***


GFM> On Jun 12, 2003, <[EMAIL PROTECTED]>  wrote:

GFM>  |Have u checked the definition?
GFM>  |Because when you do a forward, the definition is searched for
..And
in your c
GFM>  | ase, it seems that it is not finding the definition.

GFM> I know it is finding the forward - that is how it is getting the
GFM> literal text "my.tile.def".  And, I confirmed that literal text is
the
GFM> same in the forward as it is in the tiles-defs.xml file.

GFM> Now, Dirk recommended to use actions.  I'll give that a try again.
I
GFM> had it that way before, but I don't remember what the problem was -
it
GFM> could be that the html:link action= wasn't working which would also
GFM> suck (I should use action= for actions and forward= for forwards,
GFM> right?).

GFM> Thanks,

GFM> /greg

GFM> --
GFM> Gregory F. March-=-http://www.gfm.net:81/~march-=-
AIM:GfmNet

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


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

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


RE: Re[2]: Forwarding to a tile definition

2003-06-12 Thread Nimish Chourey , Tidel Park - Chennai
+1 .. I too was wandering .. 
I guess Probably because Tiles is just treated as a plugin .. and not really
part of Struts 

-Original Message-
From: Davidson, Glenn [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 12, 2003 7:23 PM
To: 'Struts Users Mailing List'
Subject: RE: Re[2]: Forwarding to a tile definition


To the designers of Struts:
Why not allow a link:forward to forward directly to a tiles definition?
It
appears that we have to forward to an action then have the action
forward to
the tile definition. Any thoughts?

Glenn

-Original Message-
From: Dirk Markert [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 12, 2003 9:10 AM
To: Struts Users Mailing List
Subject: Re[2]: Forwarding to a tile definition


Hallo Greg,

consider again your url

"http://www.mymacine.com/myapp/my.tile.def";

which you get by using html tags. What else would you expect?
What should be in your server created html file? In my opinion the
url is indeed correct.

If your browser sends a request to the server the server is configured
to handle *.do and *.jsp. How is the server supposed to know how to
handle *.def?

Regards,
Dirk  

***


GFM> On Jun 12, 2003, <[EMAIL PROTECTED]>  wrote:

GFM>  |Have u checked the definition?
GFM>  |Because when you do a forward, the definition is searched for
..And
in your c
GFM>  | ase, it seems that it is not finding the definition.

GFM> I know it is finding the forward - that is how it is getting the
GFM> literal text "my.tile.def".  And, I confirmed that literal text is
the
GFM> same in the forward as it is in the tiles-defs.xml file.

GFM> Now, Dirk recommended to use actions.  I'll give that a try again.
I
GFM> had it that way before, but I don't remember what the problem was -
it
GFM> could be that the html:link action= wasn't working which would also
GFM> suck (I should use action= for actions and forward= for forwards,
GFM> right?).

GFM> Thanks,

GFM> /greg

GFM> --
GFM> Gregory F. March-=-http://www.gfm.net:81/~march-=-
AIM:GfmNet

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


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


RE: Template VS JSP:include

2003-06-12 Thread Nimish Chourey , Tidel Park - Chennai
There has been a discussion on this before on the maling list .. 
If you are using Tiles with Struts then this can be taken care of .. 

-Original Message-
From: Peng Zhao [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 12, 2003 4:33 AM
To: [EMAIL PROTECTED]
Subject: Template VS JSP:include


which one is better?

As a website of n pages, the template method will have
  1(template) + 2*n(one use template, the other is "content") = 2*n+1 JSPs

the jsp:include method only have
  n(pages) + m(header, footer...) = n+m



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


RE: welcome file in web.xml

2003-06-10 Thread Nimish Chourey , Tidel Park - Chennai
It doesnt work  .. 

-Original Message-
From: Navjot Singh [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 11, 2003 11:35 AM
To: Struts Users Mailing List; Nagendra Kumar O V S
Subject: RE: welcome file in web.xml


I have not tried but it should work. let us know if tastes success ;-)

-Original Message-
From: Nagendra Kumar O V S [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 11, 2003 10:32 AM
To: [EMAIL PROTECTED]
Subject: welcome file in web.xml


hi,
 can i use this in web.xml

  

jsp/login.do?action=initMethod&targetAction=directLogin
  
TIA
--nagi
Nagendra Kumar O V S
Member Technical Staff
Ikigo India Private Ltd.
470-B, Road No. 36,
Jubilee Hills,
Hyderabad 500033
Contact(O): 23544671
Cell: 98482-41789



  IncrediMail - Email has finally evolved - Click Here


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


RE: StrutsMenu 1.2?

2003-06-09 Thread Nimish Chourey , Tidel Park - Chennai
Whats this Struts Menu ..Where could I find that ?? 

-Original Message-
From: Bjørn T Johansen [mailto:[EMAIL PROTECTED]
Sent: Monday, June 09, 2003 5:03 PM
To: Struts Users Mailing List
Subject: StrutsMenu 1.2?


I need some kind of dynamic generation of menu items in my webapp, is
StrutsMenu the way to go or should I look into something else, or
implement it myself?


Regards,

BTJ

-- 

---
Bjørn T Johansen (BSc,MNIF)
Executive Manager
[EMAIL PROTECTED]  Havleik Consulting
Phone : +47 67 54 15 17 Conradisvei 4
Fax : +47 67 54 13 91   N-1338 Sandvika
Cellular : +47 926 93 298   http://www.havleik.no

---
"The stickers on the side of the box said "Supported Platforms: Windows
98, Windows NT 4.0,
Windows 2000 or better", so clearly Linux was a supported platform."

---


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


RE: Tiles Two JSP's for Displaying One Form .

2003-06-04 Thread Nimish Chourey , Tidel Park - Chennai

Especially to Jeff and Shane . I was looking for "ForwardAction"
thing ..


The ForwardAction does work .. 

-Original Message-
From: Joris Docx [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 04, 2003 3:17 PM
To: Struts Users Mailing List
Subject: RE: Tiles Two JSP's for Displaying One Form .


concerning the homepage setup, i did this: 
- 


- (home.def contains homepage body)
  
- tiles did not seem to work with ForwardAction





-Oorspronkelijk bericht-
Van: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Verzonden: dinsdag 3 juni 2003 17:16
Aan: [EMAIL PROTECTED]
Onderwerp: RE: Tiles Two JSP's for Displaying One Form .


U can do that..
Create a globel forward(Because if you are using forwards with links, they
have to be global forwards.)



Then create a action mapping for the path.




Here the screen forwarding action does nothing but just does a forward to
successTHis can be used any where just by defining different success
forward.


And that solves the problem.

regards,
Shirish
-Original Message-
From: Jeff Kyser [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 03, 2003 4:48 PM
To: Struts Users Mailing List
Subject: Re: Tiles Two JSP's for Displaying One Form .


So if it is just a link, can't you create a forward action that points
to a definition in your tiles-config.xml?

for example:

 
 

where order_entry.catalog.ChooseCategory is mapped to a JSP in my 
tile-config.xml

no?

i think I need to throw in the towel :)

-jeff

On Tuesday, June 3, 2003, at 09:30  AM, Nimish Chourey , Tidel Park - 
Chennai wrote:

> Yes .. now you exacly understand my problem ..
> See these form pages are direct links from the Menu and not result of 
> some
> action ..
> I mean there is no form Submission and no action .. Just a link is 
> clicked
> ..
> Can you give an example for that .. if possible ..I mean how I can 
> avoid
> writing index.jsp ...
>


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




*** DISCLAIMER *** Dit e-mailbericht en alle bijgevoegde bestanden zijn
vertrouwelijk, kunnen informatie bevatten die beschermd zijn door
intellectuele eigendomsrechten, zijn gecontroleerd op computervirussen (wat
niet garandeert dat deze bestanden er volledig vrij van zijn) en zijn
uitsluitend bestemd voor gebruik door de geadresseerde.  Elk gebruik van
deze informatie (waaronder de geheel of gedeeltelijke reproductie of
verspreiding onder elke vorm) door andere personen dan de geadresseerde(n)
is verboden. Indien deze e-mail verkeerdelijk bij u terechtkomt, gelieve de
afzender te verwittigen en deze bestanden van uw computer te verwijderen.
Deze e-mail kan op geen enkele wijze een invloed hebben op de contractuele
relaties tussen de VLM en de betrokken partij. De inhoud van deze e-mail en
zijn bestanden zijn afkomstig van de auteur en verbindt niet noodzakelijk de
VLM tenzij dit bevestigd wordt door middel van een terzake geldig
ondertekend document van de VLM. Gelieve de afzender er zonder onnodig
uitstel ervan te verwittigen indien u een bevestiging in origineel van dit
bericht wenst te ontvangen.

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


RE: Tiles Two JSP's for Displaying One Form .

2003-06-04 Thread Nimish Chourey , Tidel Park - Chennai
Nope .. my index.jsp is not your plain_layout.jsp .. have a close look at it
again ..

-Original Message-
From: Bailey, Shane C. [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 03, 2003 7:39 PM
To: 'Struts Users Mailing List'
Subject: RE: Tiles Two JSP's for Displaying One Form .



Right, your index.jsp is my plain_layout.jsp.  You only see it once right?
And every page is built from that template.  So, like I said, at first you
have a few "extra" pages. 

Oh, looking closely I see...

You don't need to insert a definition in a page.  You use the definition in
the mappings.  Your index.jsp (I would name it better like I did) does the
insert of the JSPs which are declared in your defs (which ones to insert).

Your index.jsp should look like this:
<%@ page session="false" contentType="text/html;charset=UTF-8"
language="java" buffer="64kb" autoFlush="true" %>
<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %>

<%-- Layout Tiles 
  This layout render a header, body and footer.
  @param title String use in page title
  @param header Header tile (jsp url or definition name)
  @param body Body
  @param footer Footer
--%>









   


   
   













       
    


    
    
    



 







-Original Message-
From: Nimish Chourey , Tidel Park - Chennai
[mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 03, 2003 10:00 AM
To: Struts Users Mailing List
Subject: RE: Tiles Two JSP's for Displaying One Form .

Hi I agree with you .. But see ..below you have created a definition
"doc.login" .. So your content (body) JSP is "login.jsp" .
Count this as one . 
Now You need a JSP to insert this definition . .. Say index.jsp ..
My index.jsp will look something like this ..

<%@ page language="java" %>
<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %>



Now Count this JSP as number 2 .. 


Hence to build the whole page I m using Two JSP ..
Hope I have made my question clear ..

And If still I m missing some thing .. Let me know ..






-Original Message-
From: Bailey, Shane C. [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 03, 2003 7:07 PM
To: 'Struts Users Mailing List'
Subject: RE: Tiles Two JSP's for Displaying One Form .




  Content of tiles-defs.xml:
  
  
  
  
  
  
  
  
  

  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  

Then in the action mapping in struts config you forward to "doc.login" etc.

With a few extra pages, for the layout, header, footer; I only need a single
page (the body) for every new def.  So the overhead may be two or 3
Pages at first but then it grows by one for ever new def.  This is just one
way and it works for me.  I'm sure there are more efficient (less pages) but
this way seems to be easy to understand and small after the original
overhead.

-Original Message-
From: Nimish Chourey , Tidel Park - Chennai
[mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 03, 2003 9:15 AM
To: Struts Users Mailing List
Subject: RE: Tiles Two JSP's for Displaying One Form .

And you need to have 40 JSP's  to insert those 40 Definintions ...
Isnt it ??

Fine You have one JSp for the Body content .. Then you extend from the
master page to make a new definition in the XML file . 
But then I require another JSP which actually inserts that definition ...


-Original Message-
From: Jeff Kyser [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 03, 2003 6:24 PM
To: Struts Users Mailing List
Subject: Re: Tiles Two JSP's for Displaying One Form .


No, it should be more like 40 + 1 per re-usable tile component

I set up a 'master page' with the basic layout,
and perhaps a 'menu' include containing my menu buttons / links,
and then the tiles definition just inserts the content into a definition
derived from the master page layout. And that is all done in
the tiles-config.xml file

So you might have 40 definitions in your tiles config + 40 body content 
JSPs,
but certainly not 80 JSPs.

or at least that's my way of thinking on the matter

-jeff

On Tuesday, June 3, 2003, at 07:41  AM, Nimish Chourey , Tidel Park - 
Chennai wrote:

> Hi ,
>   In my application there may be around 40 forms . I am using the
> classic layout for the application .
> the body changes for every page , I mean I have a different JSP's for 
> these
> forms .
> Each form is submitted and a result page is desplayed .
> Now my question is if I have 40 forms , so do I need to create total 
> of 80
> JSP (Excluding the result page) ??
> I mean one JSP having the body content and 

RE: Tiles Two JSP's for Displaying One Form .

2003-06-04 Thread Nimish Chourey , Tidel Park - Chennai
Yes .. now you exacly understand my problem ..
See these form pages are direct links from the Menu and not result of some
action .. 
I mean there is no form Submission and no action .. Just a link is clicked
.. 
Can you give an example for that .. if possible ..I mean how I can avoid
writing index.jsp ...

Thanks for being so polite :))
 


-Original Message-
From: Jeff Kyser [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 03, 2003 7:46 PM
To: Struts Users Mailing List
Subject: Re: Tiles Two JSP's for Displaying One Form .


I think you're still missing something.

Now you have the tiles named in the tiles-config file,
you can name them as the input or forward in the struts-config
file. You don't have to have a page that does nothing but
include other pages. There may be some page generated
on your behalf, but you don't have to write it - just name the
appropriate content="" (if that's what you called it in your
tiles-config file) and IT does the include for you.

-jeff

On Tuesday, June 3, 2003, at 09:00  AM, Nimish Chourey , Tidel Park - 
Chennai wrote:

> Hi I agree with you .. But see ..below you have created a definition
> "doc.login" .. So your content (body) JSP is "login.jsp" .
> Count this as one .
> Now You need a JSP to insert this definition . .. Say index.jsp ..
> My index.jsp will look something like this ..
>
> <%@ page language="java" %>
> <%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %>
>
> 
>
> Now Count this JSP as number 2 ..
>
>
> Hence to build the whole page I m using Two JSP ..
> Hope I have made my question clear ..
>
> And If still I m missing some thing .. Let me know ..
>
>
>
>
>
>
> -Original Message-
> From: Bailey, Shane C. [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, June 03, 2003 7:07 PM
> To: 'Struts Users Mailing List'
> Subject: RE: Tiles Two JSP's for Displaying One Form .
>
>
>
>
>   Content of tiles-defs.xml:
>   
>   
>   
>   
> 
> 
> 
> 
>   
>
>   
>   
>   
>   
>   
> 
> 
>   
>   
>   
> 
> 
>   
>   
> 
> 
>   
>   
> 
> 
>   
>
> Then in the action mapping in struts config you forward to "doc.login" 
> etc.
>
> With a few extra pages, for the layout, header, footer; I only need a 
> single
> page (the body) for every new def.  So the overhead may be two or 3
> Pages at first but then it grows by one for ever new def.  This is 
> just one
> way and it works for me.  I'm sure there are more efficient (less 
> pages) but
> this way seems to be easy to understand and small after the original
> overhead.
>
> -Original Message-
> From: Nimish Chourey , Tidel Park - Chennai
> [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, June 03, 2003 9:15 AM
> To: Struts Users Mailing List
> Subject: RE: Tiles Two JSP's for Displaying One Form .
>
> And you need to have 40 JSP's  to insert those 40 Definintions ...
> Isnt it ??
>
> Fine You have one JSp for the Body content .. Then you extend from the
> master page to make a new definition in the XML file .
> But then I require another JSP which actually inserts that definition 
> ...
>
>
> -Original Message-
> From: Jeff Kyser [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, June 03, 2003 6:24 PM
> To: Struts Users Mailing List
> Subject: Re: Tiles Two JSP's for Displaying One Form .
>
>
> No, it should be more like 40 + 1 per re-usable tile component
>
> I set up a 'master page' with the basic layout,
> and perhaps a 'menu' include containing my menu buttons / links,
> and then the tiles definition just inserts the content into a 
> definition
> derived from the master page layout. And that is all done in
> the tiles-config.xml file
>
> So you might have 40 definitions in your tiles config + 40 body content
> JSPs,
> but certainly not 80 JSPs.
>
> or at least that's my way of thinking on the matter
>
> -jeff
>
> On Tuesday, June 3, 2003, at 07:41  AM, Nimish Chourey , Tidel Park -
> Chennai wrote:
>
>> Hi ,
>>  In my application there may be around 40 forms . I am using the
>> classic layout for the application .
>> the body changes for every page , I mean I have a different JSP's for
>> these
>> forms .
>> Each form is submitted and a result page is desplayed .
>> Now my question is if I have 40 forms , so do I need to create total
>> of 80
>> JSP (Excluding the result page) ??
>> I mean one JSP having the

RE: Tiles Two JSP's for Displaying One Form .

2003-06-04 Thread Nimish Chourey , Tidel Park - Chennai
For ???

-Original Message-
From: Keel, Christine C [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 03, 2003 7:45 PM
To: Struts Users Mailing List
Subject: RE: Tiles Two JSP's for Displaying One Form .


Please send email to [EMAIL PROTECTED]

Thanks, 
Christine Keel
Marine Life Cycle and Solutions
Intergraph Corporation
170 Graphics Drive
Madison, AL 
Phone: 256-730-7194
Email: [EMAIL PROTECTED]


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 03, 2003 8:44 AM
To: [EMAIL PROTECTED]
Subject: RE: Tiles Two JSP's for Displaying One Form .


Hi Nilesh,
Better approach is use tiles definitions..

So u have those 40 jsps for 40 page contents..And one tiles definition xml
file which assembles those..

HTH.
regards,
Shirish

-Original Message-----
From: Nimish Chourey , Tidel Park - Chennai
[mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 03, 2003 3:15 PM
To: Struts Users Mailing List
Subject: RE: Tiles Two JSP's for Displaying One Form .


And you need to have 40 JSP's  to insert those 40 Definintions ...
Isnt it ??

Fine You have one JSp for the Body content .. Then you extend from the
master page to make a new definition in the XML file . 
But then I require another JSP which actually inserts that definition ...


-Original Message-
From: Jeff Kyser [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 03, 2003 6:24 PM
To: Struts Users Mailing List
Subject: Re: Tiles Two JSP's for Displaying One Form .


No, it should be more like 40 + 1 per re-usable tile component

I set up a 'master page' with the basic layout,
and perhaps a 'menu' include containing my menu buttons / links,
and then the tiles definition just inserts the content into a definition
derived from the master page layout. And that is all done in
the tiles-config.xml file

So you might have 40 definitions in your tiles config + 40 body content 
JSPs,
but certainly not 80 JSPs.

or at least that's my way of thinking on the matter

-jeff

On Tuesday, June 3, 2003, at 07:41  AM, Nimish Chourey , Tidel Park - 
Chennai wrote:

> Hi ,
>   In my application there may be around 40 forms . I am using the
> classic layout for the application .
> the body changes for every page , I mean I have a different JSP's for 
> these
> forms .
> Each form is submitted and a result page is desplayed .
> Now my question is if I have 40 forms , so do I need to create total 
> of 80
> JSP (Excluding the result page) ??
> I mean one JSP having the body content and the other one to integrate 
> all
> tiles .
> The second option could be using one JSP having all the insert Tags 
> with the
> Body content .
>
> Is there any better option available ??
> This question is not for the results page as I know the result page 
> can be
> directly called from the action .
>
> Nimish


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

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

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


RE: Tiles Two JSP's for Displaying One Form .

2003-06-04 Thread Nimish Chourey , Tidel Park - Chennai
Hi I agree with you .. But see ..below you have created a definition
"doc.login" .. So your content (body) JSP is "login.jsp" .
Count this as one . 
Now You need a JSP to insert this definition . .. Say index.jsp ..
My index.jsp will look something like this ..

<%@ page language="java" %>
<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %>



Now Count this JSP as number 2 .. 


Hence to build the whole page I m using Two JSP ..
Hope I have made my question clear ..

And If still I m missing some thing .. Let me know ..






-Original Message-
From: Bailey, Shane C. [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 03, 2003 7:07 PM
To: 'Struts Users Mailing List'
Subject: RE: Tiles Two JSP's for Displaying One Form .




  Content of tiles-defs.xml:
  
  
  
  
  
  
  
  
  

  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  

Then in the action mapping in struts config you forward to "doc.login" etc.

With a few extra pages, for the layout, header, footer; I only need a single
page (the body) for every new def.  So the overhead may be two or 3
Pages at first but then it grows by one for ever new def.  This is just one
way and it works for me.  I'm sure there are more efficient (less pages) but
this way seems to be easy to understand and small after the original
overhead.

-Original Message-
From: Nimish Chourey , Tidel Park - Chennai
[mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 03, 2003 9:15 AM
To: Struts Users Mailing List
Subject: RE: Tiles Two JSP's for Displaying One Form .

And you need to have 40 JSP's  to insert those 40 Definintions ...
Isnt it ??

Fine You have one JSp for the Body content .. Then you extend from the
master page to make a new definition in the XML file . 
But then I require another JSP which actually inserts that definition ...


-Original Message-
From: Jeff Kyser [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 03, 2003 6:24 PM
To: Struts Users Mailing List
Subject: Re: Tiles Two JSP's for Displaying One Form .


No, it should be more like 40 + 1 per re-usable tile component

I set up a 'master page' with the basic layout,
and perhaps a 'menu' include containing my menu buttons / links,
and then the tiles definition just inserts the content into a definition
derived from the master page layout. And that is all done in
the tiles-config.xml file

So you might have 40 definitions in your tiles config + 40 body content 
JSPs,
but certainly not 80 JSPs.

or at least that's my way of thinking on the matter

-jeff

On Tuesday, June 3, 2003, at 07:41  AM, Nimish Chourey , Tidel Park - 
Chennai wrote:

> Hi ,
>   In my application there may be around 40 forms . I am using the
> classic layout for the application .
> the body changes for every page , I mean I have a different JSP's for 
> these
> forms .
> Each form is submitted and a result page is desplayed .
> Now my question is if I have 40 forms , so do I need to create total 
> of 80
> JSP (Excluding the result page) ??
> I mean one JSP having the body content and the other one to integrate 
> all
> tiles .
> The second option could be using one JSP having all the insert Tags 
> with the
> Body content .
>
> Is there any better option available ??
> This question is not for the results page as I know the result page 
> can be
> directly called from the action .
>
> Nimish


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


RE: Tiles Two JSP's for Displaying One Form .

2003-06-03 Thread Nimish Chourey , Tidel Park - Chennai
And you need to have 40 JSP's  to insert those 40 Definintions ...
Isnt it ??

Fine You have one JSp for the Body content .. Then you extend from the
master page to make a new definition in the XML file . 
But then I require another JSP which actually inserts that definition ...


-Original Message-
From: Jeff Kyser [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 03, 2003 6:24 PM
To: Struts Users Mailing List
Subject: Re: Tiles Two JSP's for Displaying One Form .


No, it should be more like 40 + 1 per re-usable tile component

I set up a 'master page' with the basic layout,
and perhaps a 'menu' include containing my menu buttons / links,
and then the tiles definition just inserts the content into a definition
derived from the master page layout. And that is all done in
the tiles-config.xml file

So you might have 40 definitions in your tiles config + 40 body content 
JSPs,
but certainly not 80 JSPs.

or at least that's my way of thinking on the matter

-jeff

On Tuesday, June 3, 2003, at 07:41  AM, Nimish Chourey , Tidel Park - 
Chennai wrote:

> Hi ,
>   In my application there may be around 40 forms . I am using the
> classic layout for the application .
> the body changes for every page , I mean I have a different JSP's for 
> these
> forms .
> Each form is submitted and a result page is desplayed .
> Now my question is if I have 40 forms , so do I need to create total 
> of 80
> JSP (Excluding the result page) ??
> I mean one JSP having the body content and the other one to integrate 
> all
> tiles .
> The second option could be using one JSP having all the insert Tags 
> with the
> Body content .
>
> Is there any better option available ??
> This question is not for the results page as I know the result page 
> can be
> directly called from the action .
>
> Nimish


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


Tiles Two JSP's for Displaying One Form .

2003-06-03 Thread Nimish Chourey , Tidel Park - Chennai
Hi ,
In my application there may be around 40 forms . I am using the
classic layout for the application .  
the body changes for every page , I mean I have a different JSP's for these
forms . 
Each form is submitted and a result page is desplayed .
Now my question is if I have 40 forms , so do I need to create total of 80
JSP (Excluding the result page) ??
I mean one JSP having the body content and the other one to integrate all
tiles .
The second option could be using one JSP having all the insert Tags with the
Body content .

Is there any better option available ??
This question is not for the results page as I know the result page can be
directly called from the action .

Nimish


RE: Struts Diagram

2003-05-30 Thread Nimish Chourey , Tidel Park - Chennai
You can try zipping the file and then sending it ..

> -Original Message-
> From: Richard Raquepo [mailto:[EMAIL PROTECTED]
> Sent: Friday, May 30, 2003 4:12 PM
> To: Struts Users Mailing List
> Subject: Re: Struts Diagram
> 
> 
> i think you can't make attachment here
> - Original Message -
> From: "Vijay S Pawar" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Cc: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
> Sent: Friday, May 30, 2003 6:29 PM
> Subject: Struts Diagram
> 
> 
> >
> > Hi Friends,
> >
> > Based on struts-documentation, I have prepared the General 
> Outline Diagram
> > of Struts. This diagram represents the various building 
> blocks of the
> > basic struts framework.
> >
> > I welcome all patrons/experts to have a glance at it and 
> add more building
> > blocks like DynaBeans, FormBeans to it.
> >
> > Hope we will soon have the complete Struts in Diagram 
> format, on our desk
> > boards
> >
> > :0)~
> >
> > PS: Attachment- My Understanding of Struts.doc
> >
> > Thanks and Cheers !
> >
> > Vijay
> >
> >
> >
> 
> 
> --
> --
> 
> 
> 
> > 
> -
> > 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]
> 


RE: Justifying Struts

2003-05-29 Thread Nimish Chourey , Tidel Park - Chennai


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Thursday, May 29, 2003 10:44 AM
> To: [EMAIL PROTECTED]
> Subject: Justifying Struts
> 
> 
> I am looking at potential frameworks for a new project.  I've 
> heard about 
> Struts and have researched it over the last few hours.  The 
> MVC approach makes 
> sense, but I'm still not sold on it yet.  Here are some doubts I have.
> 
> 1) I think the separation of presentation (view) from the 
> model and controller 
> has gone too far (or probably is not done well in Struts).  
> For example, I like 
> to have my front end developers do form (field) validation.  
> These developers 
> should not have to write beans to do this (all examples I've 
> seen so far do 
> form validation in Java beans).  This somewhat contradicts 
> the J2EE development 
> model where "application developers", who are basically 
> scripters (not OO 
> developers), do the front end work.

No need to write beans for the client side validations .. Have a look at how
Validator works .. 

> 
> 2) There is just too much junk to write to do a simple form.  
> The samples I've 
> seen have involve too many files to do a simple form.  Plus, 
> why should I have 
> to write a new bean for each form.  Why can't the bean either 
> be generated 
> automatically or there be a general purpose bean (with 
> properties that are 
> created dynamically) that works for all forms?

You can use DynaForms for that .. In that you dont have to write a form bean
for each form .. 
Do read the docs for that 

> 
> 3) We already separate business logic nicely, usually by 
> encapsulating the 
> logic in beans or EJBs.  By the time the "application 
> developers" get to work 
> writing JSP/HTML, they are not writing any business logic.  
> So why add the 
> overhead of Struts (or any other framework)?

What type of overhead are you talking about ??

> 
> 4) Because we separate out business logic into beans and 
> EJBs, Java is simply 
> used as a scripting langauge in our JSPs - in just the same 
> way that VBScript 
> is used in Active Server Pages.  We try not to confuse the 
> object oriented 
> language called Java, with the scripting language called Java 
> that we use in 
> JSPs.  We use a very small subset of Java in JSPs.

So ??? 

> 
> 5) Based on #4, I don't particularly care for taglibs either. 
>  Again, we are 
> simply using Java to do simple scripting.  Loops are probably 
> the most complex 
> thing we do.  So why add the extra overhead of taglibs.  A 
> loop is a loop 
> whether it has the syntax of Java or a taglib.  Plus, if I 
> want my front-end 
> developers to get any experience with serious development, 
> I'd rather have them 
> dealing with Java as opposed to taglibs, which have no value 
> in the real world 
> of programming.

Using taglibs instead of Scriplets makes the code more clean .. 
As far as I know there are no overheads in using taglibs ..

> 
> 6) Performance is unknown.  I've looked through the mail 
> archives and have seen 
> requests for performance figures, but no answers (plenty of 
> folks pushing 
> Struts though).

Performance is not a issue .. There have been a lot of threads on this ...


> 
> Mike


Mike .. U need to put some more hours reading Struts docs .. rather then
straight away jumping to conclusions ..

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


Tiles .. Should what level should one Drill down

2003-05-27 Thread Nimish Chourey , Tidel Park - Chennai
Hi All ,
Looking at the examples of Tiles , I could make out that if you see
a pattern in your JSP's then they could be easily factored into templates or
what you can also called as tiles . For eg . you can divide your page in
terms of Menu , Header , footer and body . Now my question is till what
level can we define tiles or templates ??
Say I have a form with say 4 tables . These tables are similar . I mean I
could easily make a template for these tabels .
And these type of tables are used in all my JSP's .
Should I make a tile for this type of table . The point to note here is
these all tables are in a single form .
If I go ahead with this , what type of problems can I face ? Or the tiles
should  really be used at very high level ie say at Menu Footer Header level
??

Hope I have made my question clear .
Comments are welcome ..

Nimish