Re: How populate a form

2004-02-23 Thread Rahul Mohan

Hi Daniel...

what i had done in my application was create the childform's actionform
instance in the action class...run the query...populate the bean and then
put it as a request attribute to prevent the RequestProcessor from creating
a new form bean object.

Hope this will work for ur app too...

regards,
rahul

- Original Message -
From: "Daniel" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Saturday, February 21, 2004 12:57 AM
Subject: How populate a form


How can I populate a form fields (bean/jsp) inside the action, this action
is a someQueryAction and forward for a edit record page with all form fields
values with results values of database query.


obrigado
Daniel S.


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



Re: html:text question

2004-02-20 Thread Rahul Mohan

answer,
U cant nest tags!

either use html-el for getting the value or use scriptlets


- Original Message - 
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, February 20, 2004 4:35 PM
Subject: html:text question


> Question,
> how can i add the test value to the html:text like below
> 
>  
> 
> 
> but this is not working, any idea ?
> thks
> 
> 
> 
> 
> 
> -
> 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: html:button and Javascript

2004-02-12 Thread Rahul Mohan

u cant nest tags like this

try this:

<% String onClickString = "location.href" + myString; %>


another way u can do this is by using html_rt tags:


i am not sure abt the second one especially the quotes...u can give it try

- Original Message - 
From: "Sniadach, Tomasz" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, February 12, 2004 9:11 PM
Subject: html:button and Javascript


Hello , 
i have a problem with the html:button tag.
i have a string in my JSP, this is an action, now i have to use a button
to link to the action.
I tryed:

but it does not work.
What is wrong ?
Thanks for help

Tomek


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



Re: what is wrong with this code

2004-02-12 Thread Rahul Mohan
Hi there,

In the jsp get the thing as :

request.getParameter(Konstanten.ADRESSEN_RESULT_START_INDEX_KEY)

this shud workor u can use jstl


To: <[EMAIL PROTECTED]>
Sent: Thursday, February 12, 2004 3:37 PM
Subject: what is wrong with this code


putting an attribute in my request ... the jsp cant´t find it in there


request.setAttribute(Konstanten.ADRESSEN_RESULT_START_INDEX_KEY,
indexListWert);
return mapping.findForward(Konstanten.CONTINUE);

struts-config:


   


Any idea???


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



Using the ActionForm in the JSP

2004-02-05 Thread Rahul Mohan
Hi everyone,

I need to access the ActionForm properties inside the JSP code for the same 
window. Is there any way to do this? 

Regarding this I have some doubts about the life cycle of ActionForms

1. When exactly is the ActionForm object instantiated? Is the ActionForm object 
instantiated only on submit of the corresponding form? or is it instantiated while 
rendering the page?

2. Also I need to set some properties to default values at instantiation of the 
ActionForm. Can I simply override the ActionForm constructor in my action-form? That 
doesnt look like a good strategy since the constructor implementation in the 
ActionForm does not seem to be made for overriding as it has some code in it ( its 
simply servlet = null ) so is it wise to simply override it? it seems a bit over 
smart idea!!! :) 

Please help me out..

thank you,
rahul

Re: tag inside tag

2004-02-04 Thread Rahul Mohan

thanks scott

The problem is not with quotes as I am getting the following code  in the
final html;



note that this is present in the final html...i.e the  is not
getting translated to html

anyways I have tried using sngle quotes instead of double quotes...but still
it doesnt work

any idea?

- Original Message -
From: "Glenn, Scott" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Wednesday, February 04, 2004 2:42 PM
Subject: RE:  tag inside  tag


> Might be your nested quotes . try using different quote characters to
define the nested string ie.
>
> style='<%=pageContext.findAttribute("styleVar").toString()%>'
>
> S.
>
> > -Original Message-
> > From: Rahul Mohan [mailto:[EMAIL PROTECTED]
> > Sent: 04 February 2004 09:09
> > To: Struts Users Mailing List
> > Subject: Re:  tag inside  tag
> >
> >
> > Hi Max,
> >
> > Thanks for the reply...
> >
> > I have found a work around for the problem...but it looks wierd!!
> >
> > These are the steps I performed:
> >
> > 1. I am setting the styleVar as follows:
> >
> > 
> > 
> > some JSTL conditional stmts
> > 
> > 
> >
> > 2. Then I retrieve the value using the following scriptlet:
> >
> >  <% String str = pageContext.findAttribute("styleVar").toString();
%>
> >
> > 3. Now I can use the value of str inside my  tag as follows:
> >
> >   >  name="Customer"
> >  property ="Name"
> >  maxlength="256"
> >  size="256"
> >  style="<%=str%>"
> >/>
> >
> > The wierd part is that if I put
> >
> >
style="<%=pageContext.findAttribute("styleVar").toString()%>"
> >
> > inside the  tag it wont work!!!
> >
> > Can anybody tell me why it is so?? I am stumped!
> >
> > thank you all...
> > rahul
> >
> > - Original Message -
> > From: "Max Cooper" <[EMAIL PROTECTED]>
> > To: "Struts Users Mailing List" <[EMAIL PROTECTED]>; "Rahul
> > Mohan" <[EMAIL PROTECTED]>
> > Sent: Wednesday, February 04, 2004 1:45 PM
> > Subject: Re:  tag inside  tag
> >
> >
> > > Two issues may be at work here:
> > >
> > > 1. It isn't valid to have a JSP tag render an attribute value for
> > another
> > > JSP tag. This might work instead, depending on the scope of styleVar:
> > >
> > >   > >  name="Customer"
> > >  property ="Name"
> > >  maxlength="256"
> > >  size="256"
> > >  style="<%=styleVar%>"
> > >  />
> > >
> > > 2. Are you missing the <%@ taglib %> thingy for the html taglib in
your
> > JSP?
> > >
> > > -Max
> > >
> > > - Original Message -
> > > From: "Rahul Mohan" <[EMAIL PROTECTED]>
> > > To: "struts" <[EMAIL PROTECTED]>
> > > Sent: Wednesday, January 07, 2004 11:47 PM
> > > Subject:  tag inside  tag
> > >
> > >
> > > Hi...I am facing some problems with using JSTL tags inside struts
tags.
> > >
> > > This is the piece of code I wrote for my application:
> > >
> > >   > >  name="Customer"
> > >  property ="Name"
> > >  maxlength="256"
> > >  size="256"
> > >  style=""
> > >  />
> > >
> > > the problem is that it is getting traslated to
> > >
> > >  > >  name="w_CustomerWin"
> > >  property ="wca_Name"
> > >  maxlength="256"
> > >  size="256"
> > >
> >
style="width:100;height:22;position:absolute;top:20;left:56;display:none;"
> > >  />
> > >
> > > in the final html page!!
> > >
> > > can anybody please tell me why the  tag is not getting
> > translated
> > > to 

Re: tag inside tag

2004-02-04 Thread Rahul Mohan

Hi Max,

Thanks for the reply...

I have found a work around for the problem...but it looks wierd!!

These are the steps I performed:

1. I am setting the styleVar as follows:



some JSTL conditional stmts



2. Then I retrieve the value using the following scriptlet:

 <% String str = pageContext.findAttribute("styleVar").toString(); %>

3. Now I can use the value of str inside my  tag as follows:

 

The wierd part is that if I put

style="<%=pageContext.findAttribute("styleVar").toString()%>"

inside the  tag it wont work!!!

Can anybody tell me why it is so?? I am stumped!

thank you all...
rahul

- Original Message -
From: "Max Cooper" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>; "Rahul
Mohan" <[EMAIL PROTECTED]>
Sent: Wednesday, February 04, 2004 1:45 PM
Subject: Re:  tag inside  tag


> Two issues may be at work here:
>
> 1. It isn't valid to have a JSP tag render an attribute value for another
> JSP tag. This might work instead, depending on the scope of styleVar:
>
>name="Customer"
>  property ="Name"
>  maxlength="256"
>  size="256"
>  style="<%=styleVar%>"
>  />
>
> 2. Are you missing the <%@ taglib %> thingy for the html taglib in your
JSP?
>
> -Max
>
> - Original Message -
> From: "Rahul Mohan" <[EMAIL PROTECTED]>
> To: "struts" <[EMAIL PROTECTED]>
> Sent: Wednesday, January 07, 2004 11:47 PM
> Subject:  tag inside  tag
>
>
> Hi...I am facing some problems with using JSTL tags inside struts tags.
>
> This is the piece of code I wrote for my application:
>
>name="Customer"
>  property ="Name"
>  maxlength="256"
>  size="256"
>  style=""
>  />
>
> the problem is that it is getting traslated to
>
>   name="w_CustomerWin"
>  property ="wca_Name"
>  maxlength="256"
>  size="256"
>
style="width:100;height:22;position:absolute;top:20;left:56;display:none;"
>  />
>
> in the final html page!!
>
> can anybody please tell me why the  tag is not getting
translated
> to 

tag inside tag

2004-02-04 Thread Rahul Mohan
Hi...I am facing some problems with using JSTL tags inside struts tags.

This is the piece of code I wrote for my application:

 "
 />

the problem is that it is getting traslated to



in the final html page!! 

can anybody please tell me why the  tag is not getting translated to 

Re: Log4j with Struts

2003-12-05 Thread Rahul Mohan
hi nick,

thanks for responding...its the logger class thats missing ithink...
this is the exception i get when i try to view the page:

java.lang.NoClassDefFoundError: org/apache/log4j/Logger
at app.LogonAction.perform(Unknown Source)


what could be the problem? please excuse my novice level...

thanks again..


- Original Message -
From: "Nick Faiz" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Friday, December 05, 2003 12:22 PM
Subject: RE: Log4j with Struts


> Well, what class can't it find, the Logger or the LogonAction.class ?
>
> I use it with Struts, without a hassle, on WebLogic 7.2.
>
> Nick
>
> -Original Message-
> From: Rahul Mohan [mailto:[EMAIL PROTECTED]
> Sent: Friday, 5 December 2003 5:46 PM
> To: struts
> Subject: Log4j with Struts
>
> Hi,
>
> has anybody tried using Log4j with struts? I tried the following code
> and its giving a ClassDefNotFoundException during runtime..
>
> this is inside the perform method:
>  String str = new String(LogonAction.class.getName()); //LogonAction
is
> an Action Class
>  logger = Logger.getLogger(str); //this line is throwing the
exception -
> apparently str is not having a classdef
>
> somebody please help me with this.or is there any other method to
> perform logging?
>
> i am using tomcat4.1 ...
>
> Thanks in advance.
>
> Rahul Mohan
> ~~~
> MasterCraft Group
> Tata Consultancy Services
> Tata Research Development and Design Center
> 54B, Hadapsar Industrial Estate
> Pune - 411 013
> Phone: +91 4042333 or 4031122 Extn 2556
> +91 20 31544082 ( Mobile )
> Fax: +91 20 4042399
> email : [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]



Log4j with Struts

2003-12-04 Thread Rahul Mohan
Hi,

has anybody tried using Log4j with struts? I tried the following code and its 
giving a ClassDefNotFoundException during runtime..

this is inside the perform method:
 String str = new String(LogonAction.class.getName()); //LogonAction is an Action 
Class
 logger = Logger.getLogger(str); //this line is throwing the exception - 
apparently str is not having a classdef

somebody please help me with this.or is there any other method to perform logging? 

i am using tomcat4.1 ...

Thanks in advance.

Rahul Mohan
~~~
MasterCraft Group
Tata Consultancy Services
Tata Research Development and Design Center
54B, Hadapsar Industrial Estate
Pune - 411 013
Phone: +91 4042333 or 4031122 Extn 2556
+91 20 31544082 ( Mobile )
Fax: +91 20 4042399
email : [EMAIL PROTECTED]
~~~

validate method

2003-10-31 Thread Khandelwal, Rahul
Hi All,

For some reason, I have to do some form field validation in my Action class.
And, if the validation fails, I have to return the control to the
same(input) page to display the error msg (using ). I have
previously done it in the validate method in the Form bean, but don't know
how to put the validation in the Action class.

Any help will be much appreciated.

Thanks,
Rahul
DISCLAIMER: The information in this message is confidential and may be
legally privileged. It is intended solely for the addressee.  Access to this
message by anyone else is unauthorised.  If you are not the intended
recipient, any disclosure, copying, or distribution of the message, or any
action or omission taken by you in reliance on it, is prohibited and may be
unlawful.  Please immediately contact the sender if you have received this
message in error. Thank you.

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



Re: eclips IDE

2003-09-12 Thread Rahul
You can download the Eclipse IDE at
http://www.eclipse.org/downloads/index.php
And, You can find a JSP plugin at http://www.objectlearn.com/

cheers :)
rahul


- Original Message - 
From: "virupaksha" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Saturday, September 13, 2003 2:50 PM
Subject: eclips IDE


Dear All,

Can any one please tell me where i can download Eclips IDE for JSP ..


Regards,
viru





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



Re: [Friday] How do you describe the greatest general?

2003-07-18 Thread Rahul
Is that a reference to the "Art of War" ??


- Original Message - 
From: "Jing Zhou" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Saturday, July 19, 2003 7:31 AM
Subject: [Friday] How do you describe the greatest general?


He defeats every opponent in enemy's camp.

How do you describe the greatest politician?



Jing


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



Re: [Friday] How far can we let the clients push us?

2003-07-18 Thread Rahul
Hi Yansheng,

If you interested in using DOM, have a look at http://www.domapi.com/ for
creating a spreadsheet. Its slow when it comes to implementing something
like spreadsheets. but it looks neat !!

HTH,

rahul

- Original Message - 
From: "Yansheng Lin" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Saturday, July 19, 2003 7:14 AM
Subject: RE: [Friday] How far can we let the clients push us?


Yeah I know. That's why I have been working to get that app out this week.

But again, if we save money by making sane decisions, maybe a lot of our
buddies
will get hired sooner.


-Original Message-
From: Mark Galbreath [mailto:[EMAIL PROTECTED]
Sent: July 18, 2003 12:58 PM
To: 'Struts Users Mailing List'
Subject: RE: [Friday] How far can we let the clients push us?


I'm serious, dude!  I know many unemployed developers right now.

-Original Message-
From: Yansheng Lin [mailto:[EMAIL PROTECTED]
Sent: Friday, July 18, 2003 1:59 PM
To: 'Struts Users Mailing List'
Subject: RE: [Friday] How far can we let the clients push us?


Thanks Mark!  You made me feel much better.


-Original Message-
From: Mark Galbreath [mailto:[EMAIL PROTECTED]
Sent: July 18, 2003 11:11 AM
To: 'Struts Users Mailing List'; [EMAIL PROTECTED]
Subject: RE: [Friday] How far can we let the clients push us?


What's the issue?  They paying you, aren't they?  Be glad to have a job!

-Original Message-
From: David Graham [mailto:[EMAIL PROTECTED]
Sent: Friday, July 18, 2003 12:54 PM
To: Struts Users Mailing List
Subject: Re: [Friday] How far can we let the clients push us?


--- Yansheng Lin <[EMAIL PROTECTED]> wrote:
>
> To them, Online spreadsheet data-entry is a reasonable request.  They
> don't want to change their ways of practise, what can we do?

This implies that they are currently using an online spreadsheet program.
Are they, or do they want you to build them one?  I would hand them a CD
with OpenOffice on it and tell them to have fun :-).

David

> They are paying us!
>
> Darn, life is so hard!
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


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



-
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: [FRIDAY] YA Ted's Trivia Contest

2003-07-04 Thread Rahul
Cheers Ted !! I look fwd to it  :-)

  (>""<) ")
 (   'o'  ) /
--(,,)


- Original Message - 
From: "Ted Husted" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Saturday, July 05, 2003 10:11 AM
Subject: Re: [FRIDAY] YA Ted's Trivia Contest


> I try to mix up the times Rahul, and end up with winners in several
> continents. Next time, I'll wait until about now, if that will help =:0)
>
> Rahul wrote:
> > Jz  I always miss Ted's Trivia Train :(( .i am on the
other
> > side of the date line !!
> > cheers :)
> >
> > ~rahul
>
>
>
>
>
>
> -
> 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: [FRIDAY] YA Ted's Trivia Contest

2003-07-04 Thread Rahul
Jz  I always miss Ted's Trivia Train :(( .i am on the other
side of the date line !!
cheers :)

~rahul

- Original Message - 
From: "Ted Husted" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, July 05, 2003 1:24 AM
Subject: [FRIDAY] YA Ted's Trivia Contest


> Since it's independence day here in the States, and we all went to the
> ball game last night, I'll lob one over the fence:
>
> This is a homily which I call [blank]'s Golden Rule:
>
> "Eliminate duplication, eliminate dependency"
>
> Who's [blank]?
>
> A signed copy of Struts in Action to the first lucky subscriber to email
> to [EMAIL PROTECTED] the correct answer [being whichever answer I expect
> :0)].
>
> -Ted.
>
>
> -- 
> Ted Husted,
> Struts in Action <http://husted.com/struts/book.html>
>
>
>
> -
> 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: MySQL Problems

2003-07-01 Thread Rahul
Do you have any piece of code ? 


- Original Message - 
From: "Met @ Uber" <[EMAIL PROTECTED]>
To: "Struts Users" <[EMAIL PROTECTED]>
Sent: Wednesday, July 02, 2003 12:04 PM
Subject: MySQL Problems


> Within my action I have a service which connects to a database and
> returns a Collection of objects.  The test code runs perfectly, and
> continuously.  But when it's run through the servlet it stops working
> after a few minutes.  The connection to the database just stops.  But I
> can still use the mysql client to connect so the database doesn't
> freeze.
> 
> Any help or suggestions would be greatly appreciated.
> 
> ~ Matthew
> -- 
> Met @ Uber <[EMAIL PROTECTED]>
> Uberstats
> 
> 
> -
> 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: DTO vs. JVT

2003-06-23 Thread Rahul
That makes sense !! Thanks for the explanation Laurent

cheers  :-)


- Original Message -
From: "Laurent PETIT" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Tuesday, June 24, 2003 9:23 AM
Subject: Re: DTO vs. JVT


> Hello,
>
> IMHO, there's a difference between DTOs and Value Objects.
>
> When I use the term Value Object, I mean an immutable object, such as a
> String, a Date, a Money, those things who are best designed as
immutable
> if you want to take it easy with the sharing problems ...
>
>
> When I use the term DTO, it does'nt necessarily imply that it's an
immutable
> object, it's a holder of the values of a Business Object (or a flat
> representation of a short hierarchy of  Business Objects => a coarse
grained
> object), and it still has getters and setters because it navigates between
> two adjacent layers.
>
> So for me the major difference is immutabiliy / mutability.
>
> My 0.02 EUR,
>
> --
> Laurent
> - Original Message -
> From: "Rahul" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Monday, June 23, 2003 9:45 PM
> Subject: Re: DTO vs. JVT
>
>
> > Hi Dan,
> > Have a look at the following article.
> >
> >
>
http://javaoneonline.mentorware.net/servlet/mware.servlets.StudentServlet?mt
=1055755038320&mwaction=generic&subsysid=2000&file=dan_malks
> >
> > IMHO , the Transfer Objects "live" and "operate" in Business tier and
View
> > Helper objects in Presentation Tier. My understanding is that they both
> are
> > value objects, unless someone can elaborate on any differences between
the
> > two(which would be great !).
> >
> > and I stick to using pattern names from the ones listed in Design
Patterns
> > and Core J2EE patterns catalogue .
> >
> > :-)
> > ~rahul
> >
> > - Original Message -
> > From: "Dan Allen" <[EMAIL PROTECTED]>
> > To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > Sent: Tuesday, June 24, 2003 6:29 AM
> > Subject: Re: DTO vs. JVT
> >
> >
> > >
> > > Hookom, Jacob ([EMAIL PROTECTED]) wrote:
> > >
> > > > I read the article also and it seemed like old news DTO, BO,
JVT,
> > POJO,
> > > > etc they are all the same to me :)
> > >
> > > It sure would be nice if someone could pick one name and stick with
> > > it.  It definitely seemed like old news, which is why I just had to
> > > ask because it sure didn't sound like anything new.  What it did
> > > reiterate though is that the term Value Object should be dropped
> > > when speaking of the state of a persisted entity.  It seems like
> > > there is a consensus that those are quite different from DTOs.
> > >
> > > Dan
> > >
> > > --
> > > - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> > > Daniel Allen, <[EMAIL PROTECTED]>
> > > http://www.mojavelinux.com/
> > > - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> > > ...but once you've traveled this far off the track
> > > You won't settle for less and there's no going back
> > >  --Patrick O'Leary "Far Off the Track"
> > > - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> > >
> > > -
> > > 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: DTO vs. JVT

2003-06-23 Thread Rahul
Hi Dan,
Have a look at the following article.

http://javaoneonline.mentorware.net/servlet/mware.servlets.StudentServlet?mt=1055755038320&mwaction=generic&subsysid=2000&file=dan_malks

IMHO , the Transfer Objects "live" and "operate" in Business tier and View
Helper objects in Presentation Tier. My understanding is that they both are
value objects, unless someone can elaborate on any differences between the
two(which would be great !).

and I stick to using pattern names from the ones listed in Design Patterns
and Core J2EE patterns catalogue .

:-)
~rahul

- Original Message - 
From: "Dan Allen" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Tuesday, June 24, 2003 6:29 AM
Subject: Re: DTO vs. JVT


>
> Hookom, Jacob ([EMAIL PROTECTED]) wrote:
>
> > I read the article also and it seemed like old news DTO, BO, JVT,
POJO,
> > etc they are all the same to me :)
>
> It sure would be nice if someone could pick one name and stick with
> it.  It definitely seemed like old news, which is why I just had to
> ask because it sure didn't sound like anything new.  What it did
> reiterate though is that the term Value Object should be dropped
> when speaking of the state of a persisted entity.  It seems like
> there is a consensus that those are quite different from DTOs.
>
> Dan
>
> -- 
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> Daniel Allen, <[EMAIL PROTECTED]>
> http://www.mojavelinux.com/
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> ...but once you've traveled this far off the track
> You won't settle for less and there's no going back
>  --Patrick O'Leary "Far Off the Track"
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
>
> -
> 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]



Design Patterns

2003-06-20 Thread Rahul
Guys, 

I came across this coool article on core Design Patterns in J2EE. Check it out ! 

http://javaoneonline.mentorware.net/servlet/mware.servlets.StudentServlet?mt=1055755038320&mwaction=generic&subsysid=2000&file=dan_malks


Also, It would be interesting to know what patterns we are using in Struts. Pointers 
to classes that consitute a pattern would be great !!
And i think it would be a good idea to have this thread as a one stop guide to 
patterns in struts ! I can assort the responses and post them up (somewhere?) for 
ready reference. 

cheers :-)

~rahul
 

Re: Is DiskFileUpload.java missing from Struts src ?

2003-06-14 Thread Rahul
hhhmmm... IMHO the following import statement seems to be missing from
CommonsMultipartRequestHandler.java

import org.apache.commons.fileupload.DiskFileUpload;

That fixed it !!


- Original Message - 
From: "Rahul" <[EMAIL PROTECTED]>
To: "Struts Users" <[EMAIL PROTECTED]>
Sent: Saturday, June 14, 2003 6:33 PM
Subject: Is DiskFileUpload.java missing from Struts src ?



I've been trying to compile struts source and get a missing class error for
class "DiskFileUpload" being used in CommonsMultipartRequestHandler.java in
package "org.apache.struts.upload".

I am unable to find this class in the downloaded struts source. Am I missing
something here or is it not there ?

rahul




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



Is DiskFileUpload.java missing from Struts src ?

2003-06-13 Thread Rahul

I've been trying to compile struts source and get a missing class error for class 
"DiskFileUpload" being used in CommonsMultipartRequestHandler.java in package 
"org.apache.struts.upload".

I am unable to find this class in the downloaded struts source. Am I missing something 
here or is it not there ? 

rahul
 


UML diagrams in Struts source

2003-06-13 Thread Rahul
Greetings All, 

First of all, I take this opportunity to congratulate Ted, Cedric, George and David 
for an amazing job with their book "Struts in Action" (I got my copy couple of days 
ago). So much so that I am inquisitive and 've set my copy aside today and downloaded 
the RC2 src and having a look at 'what lies beneath' !! 

As for the source, it's well-documented, explained and with UML diagrams. ah ! that 
reminds me .. I would like to know if these UML diagrams are being generated by an 
open source tool. May be I could use something like that to get some neat UML diagrams 
for other few java project trees sitting on my PC and whose number of source files is 
dreary enuff to make me dizzzy. 

also, it might be a good idea to invite some suggestions on this list on what 
different strategies people adopt on  "reading" and understanding a piece of software 
? 

Suggestions please ...! 

Cheers, 

rahul
;o)

[OT] Java Server Faces source code

2003-06-10 Thread Rahul

Does any one has a clue if the source code for Java Server Faces available for 
download ?

TIA, 

~rahul



Re: Does a degree matter?

2003-03-30 Thread Rahul
Hello Brandon,
I agree with Jeff and Craig. I think its the "can do" attitude that should
matter, and not just the "has done" facts :p

I never touched or learned programming until I graduated  in Commerce.
Simultaneously pursued my hobby in Japanese and then landed in job as a
language specialist... with a .guess what ..a software
company. That was when I was bitten by the programming bug :p , and have
never looked back since then. I have done a certificate course and quiet a
few certifications and had an oppurtunity to work for some good companies
over the last 6 years.

No doubt , its not a smooth sail for many of us in current times. there
are employers for whom degrees are a bare minimum to even look at a resume.
But I think, personally for me it finally boils down to pursuing what you
want to. Though nothing measures up to hand-on experience but then that's
not undermining the hard work many of us put in when earning degrees. I
think the 2 descions pointed out in Jeff's email are crucial.

cheers :)

Rahul


- Original Message -
From: "Jeff Smith" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Sunday, March 30, 2003 3:47 PM
Subject: Re: Does a degree matter?


> Hi Brandon. I thought I'd watch the responses to this thread before
weighing
> in with an opinion. I was interested to note that none of the responses
> appear to have come from hiring managers. So I thought you might benefit
> from an opinion on that side of the debate.
>
> In my career I have hired over 100 different developers on a wide number
of
> projects. And in my experience, the paper qualifications only matter in
the
> first 3-5 years after school. Once you have those first few projects under
> your belt, it is your experience that matters, far more than your formal
> training. (In other words, it takes from 3-5 years of experience to catch
up
> to the pack.)
>
> Although it is hard to generalize about companies and employers (since
they
> are all run by people, and people vary widely) I can say that in general
> terms, the more liberal hiring policies tend to be in the smaller and more
> "progressively" managed organizations. Larger, more institutional
employers
> have a much more formalized, and rigid hiring practice. The first
screening
> of resumes in such places tends to be done by professional HR people, who
> are generally only qualified to screen for check-list items. (The job says
> A, B and C are required. Here's a fabulous resume with A, B, D, E, F and J
> thru N. But he's missing C. Reject.)
>
> So here are a couple of really important decisions for you to consider:
> 1) Do you prefer the mayhem of start-ups and small companies to the
security
> of large institutional employers?
> 2) Do you already have, or can you be reasonably confident in getting
those
> first few years of experience?
> If you said "yes" to both of those, you may be able to successfully avoid
> the school thing. If you said "No" to either one, school might be a safer
> bet.
>
> For what it's worth, in the last company I ran, the guy I promoted to
Chief
> Architect did not have a degree of any kind. He was primarily self-taught.
> But he got the job because he was dedicated, articulate, responsible and
> clearly understood the technology and the needs of the company. In my
book,
> those are far more valuable than 4 years of sleeping through lectures.
>
> Jefficus
>
> - Original Message -
> From: "Brandon Goodin" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Saturday, March 29, 2003 1:09 PM
> Subject: Does a degree matter?
>
>
> Hey all,
>
> I'm trying to make a decision as to what I am going to do. I am sucking
wind
> on profitable work. So, I was thinking about going to school and getting a
> BA in Comp Science to make myself more attractive in the job market. Is it
> really worth doing? I've been doing development for 5 years professionaly.
2
> years Perl and ASP, 3 years Java. Prior to that I was hobbying in those
> languages on my own. My knowledge is competitive with anyone else in my
> realm of experience. Anyways, I was just wondering how important you all
> think a BA in Computer Science is for a family man trying to give his
career
> a boost.
>
> Brandon Goodin
>
>
> -
> 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]



Using database tables for resource bundles

2003-03-25 Thread Rahul
Hi,
(B
(BWe are developing a multilingual system using struts 1.1 and j2ee 1.3.
(B
(BI need to know whether we can use backend database tables for providing all the 
(Bmessages i.e. whether the messages can be provided by a set of java class rather than 
(Brelying on resource files residing on the server.
(B
(BThe reason why we want to use database is that when the application is live/running in 
(Bproduction mode, we may not have access to physical files lying on the server m/c 
(Bwhereas the information stored in the tables can be accessed/updated from remote sql 
(Bclients. Another advantage of using database could be that if needed we can provide a 
(Bgui/maintenance for the admins to modify the messages as and when required. In this 
(Bcase, we may also choose to decide about some strategies for sychronizing of the 
(Bmessages used by the application with the database at regular intervals(or event 
(Bbased).
(B
(BWonder if some in-built support of some kind is available in struts for the above.
(B
(BPlease do let me know if it can be achieved by overriding some of the initialization 
(Bapi's of the ActionServlet.
(B
(BRegards
(BRahul

RE: Question regarding sessions

2002-08-26 Thread Rahul Kumar Saxena

Hi Michael,

I hope that I have understood your question correctly. Let me reframe
the situation :

You have a tree structure which you want to display in unexploded form.
User will select any of the nodes which can appear at any level of tree.
Now after putting something in the basket, you want to take him back to
the tree with same state as it was before adding to basket i.e. in the
exploded form.

If this is the case then you can have a list of list to make tree
structure and in order to display the tree again, you just store the
root list in the session. To display the earlier state of tree, what you
can do is to have a java bean stored at each node of tree with a
property  to identify if it is exploded. Now based on this property you
can rebuild the exploded tree. One catch in this approach is that if you
want to dynamically add or delete some nodes from tree then you have to
explicitly add or remove nodes from the root list.

I hope this solves your problem.
*
RAHUL K. SAXENA
Sr. Systems Engineer,
Wipro Technologies,
Ground Floor, Tower II,
72, Electronic City,
Hosur Main Road,
Bangalore-561 229, India.
Ph: 91-80-8520408/416(x-2026)
*

> -Original Message-
> From: Michael Delamere [mailto:[EMAIL PROTECTED]] 
> Sent: Monday, August 26, 2002 5:01 PM
> To: Struts Users Mailing List
> Subject: Question regarding sessions
> 
> 
> Hi,
> 
> I know that this isn´t a struts specific question but I 
> really could do with your help.  And this list is a guarantee 
> for competent answers :-) !
> 
> My question is: how much should I save in a session?
> 
> Scenario:
> 
> I have a catalogue with say five levels:
> 
> e.g.
> alcohol
>- wines
>   - red wine
>- bordeaux
>- borgougne
> - grapes bla
> - grapes blub
>- Loire
>   - white wine
>   - rose
> 
> All of these levels are displayed as a tree on the catalogue 
> page.  The question I have is as follows: should I save the 
> comlpete tree (with
> description) in the session so that I only have to retrieve a 
> particular level at any given time or should I just save the 
> state of the tree (for example in a state object which also 
> contains the shopping basket and user_id etc), which would 
> just consist of the last node of the tree (node_id)?
> 
> Lets say I have put something in the shopping basket and want 
> to return back to the tree.  Should I rebuild the whole tree 
> by asking the service layer to return the tree depending on 
> the last node_id or should I re-display the tree from the session?
> 
> Any help on this matter would be very appreciated because it 
> is always good to hear opinions from others.  I know that 
> this has nothing to with struts but please
> 
> Regards,
> 
> Michael
> 
> 
> 
> --
> To unsubscribe, e-mail:   
> <mailto:struts-user-> [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: <mailto:[EMAIL PROTECTED]>
> 



**Disclaimer

Information contained in this E-MAIL being proprietary to Wipro Limited is 
'privileged' and 'confidential' and intended for use only by the individual
 or entity to which it is addressed. You are notified that any use, copying 
or dissemination of the information contained in the E-MAIL in any manner 
whatsoever is strictly prohibited.

***



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


Multiple submits

2002-07-30 Thread Rahul Kumar Saxena


Hi All,

I am facing a problem related to multiple sumbits. 

We are developing a wizard kind of application with frames. For this we
use business object(BO), which are nothing but a replica of forms, used
in JSPs. We store this BO in session and keep on updating it with the
values present in various forms. At the end, we pass this BO to EJB
layer to process the DB operations after which we display success or
failure page depending on the success of DB operation. To do final
submit we display OK and Cancel button in all the JSPs along with Next
button. After successful DB operation we remove BO from session (to make
session light).This is where our problem starts.

If user clicks final OK and first thread completes the DB operation;
just before the success page loading user clicks Next button. Then
second thread tries to look into BO which was stored in session, for
some values. Since first thread has already removed the BO from session,
second thread throws NullPointerException. Not only this if user clicks
OK button, more than once then we land up either with same record
entered in DB more than once or again NullPointerException.

I went through various threads and almost every where people talk about
using Tokens. If I use tokens then what shall I do if token is invalid?
I can't show him a page saying that your first request is under process,
'coz at the end I have to forward the request to success page.

TIA,
*
RAHUL K. SAXENA
Sr. Systems Engineer,
Wipro Technologies,
Ground Floor, Tower II,
72, Electronic City,
Hosur Main Road,
Bangalore-561 229, India.
Ph: 91-80-8520408/416(x-2026)
*



**Disclaimer

Information contained in this E-MAIL being proprietary to Wipro Limited is 
'privileged' and 'confidential' and intended for use only by the individual
 or entity to which it is addressed. You are notified that any use, copying 
or dissemination of the information contained in the E-MAIL in any manner 
whatsoever is strictly prohibited.

***



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


RE: AW: html:text initial value

2002-07-09 Thread Rahul Kumar Saxena

Satish is quite right, you just call
setTextBoxPropertyName("00.00."); method in the action class which
forwards to your JSP. This will take care of displaying the default
value.So you need not set 00.00. in the value attribute of text
tag.Becuase this always sets the value to 00.00. irrespective to the
value present in the form object. 
For the case of errors, you need not worry at all, Struts will populate
your form properly. 

 


is same as



Only difference is that in the first, you are exposing 00.00. value
as geburtsdatum variable.

Rahul.

-Original Message-
From: SATISH.T [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, July 09, 2002 6:39 PM
To: Struts Users Mailing List
Subject: Re: AW: html:text initial value


hi i meant do a form.setTextBoxPropertyName(value); in ur action class 
and 
in the jsp remove the value="" from the tag. should work. satish

- Original Message -
From: "Sann, Stephan" <[EMAIL PROTECTED]>
Date: Tuesday, July 9, 2002 6:32 pm
Subject: AW: html:text initial value

> Hello Satish,
> 
> > set the value of the textbox property of the form in ur action
> class
> > before u throw it and also remove the value="" from the tag if u
> want
> > to retain the value if an error is thrown.
> 
> thanx a lot for your answer.
> 
> I tried it this way:
> 
>   property="geburtsdatum" maxlength="30" />
> 
> but it didn't worked out for me :-(
> 
> 
> How can I put your tip into practice?
> 
> Thanx
> Stephan
> 
> 
> - Original Message -
> From: "Sann, Stephan" <[EMAIL PROTECTED]>
> Date: Tuesday, July 9, 2002 4:05 pm
> Subject: html:text initial value
> 
> > Hello all,
> > 
> > is there a way to give an initial value to a -tag
> that
> > is not shown again in an error-case?
> > 
> > Here is an example:
> > 
> > 
> > 
> > I put the initial value "00.00." into this text-field to
> show
> > the user the format for the field.
> > 
> > Now there is a user who forgets the last Digit of the year:
> > 
> > > 18.04.197 <
> > 
> > Struts returns the User to the HTML-form where the birthday-
> field
> > is filled with:
> > 
> > > 00.00. <
> > 
> > again. I want it to be filled with
> > 
> > > 18.04.197 <
> > 
> > again, so the user can fullfill his year.
> > 
> > 
> > I found a solution with a scriptlet, but scriptlets are not
> > allowed any more in our applications.
> > 
> > 
> > Thanx for any hints, tips, RTFM(with URL)
> > 
> > Stephan
> > 
> > --
> > To unsubscribe, e-mail:   <mailto:struts-user-
> > [EMAIL PROTECTED]>For additional commands, e-mail:
> > <mailto:[EMAIL PROTECTED]>
> > 
> > 
> 
> --
> To unsubscribe, e-mail:   <mailto:struts-user-
> [EMAIL PROTECTED]>For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
> 
> 



**Disclaimer

Information contained in this E-MAIL being proprietary to Wipro Limited is 
'privileged' and 'confidential' and intended for use only by the individual
 or entity to which it is addressed. You are notified that any use, copying 
or dissemination of the information contained in the E-MAIL in any manner 
whatsoever is strictly prohibited.

***



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


RE: marking checkboxes checked from a List

2002-07-08 Thread Rahul Kumar Saxena

Inside JobObjects bean, add one attribute for checking if this job is
checked, say selectedFlag (Not a good name). Set the value of
selectedFlag to true for all the JobObjects which you want to show as
selected.This you can do in the action class which forwards to this JSP.
While creating the checkboxes, first check if selectedFlag for that
JobObjects is true then display the checkbox as selected.This can be
done using logic:equal tag.

*
RAHUL K. SAXENA
Sr. Systems Engineer,
Wipro Technologies,
Ground Floor, Tower II,
72, Electronic City,
Hosur Main Road,
Bangalore-561 229, India.
Ph: 91-80-8520408/416(x-2026)
*

-Original Message-
From: Rick Reumann [mailto:[EMAIL PROTECTED]] 
Sent: Monday, July 08, 2002 8:33 PM
To: Struts List
Cc: [EMAIL PROTECTED]
Subject: marking checkboxes checked from a List


I'm sure there is a good way to handle this in Struts but me being the
dumbass I thought I'd ask for help:

Picture a case where you display a list of "jobs" -
where next to each job name is a checkbox (Just using jobs for this
example). Each checkbox corresponding to the job will have a value that
is a String (jobAbbreviation). Displaying this list of jobs and the
value of the checkboxes isn't a problem ( populated from an ArrayList of
JobObjects ).

The problem is:

How do I mark the correct checkboxes based on an ArrayList of Strings
(jobAbbreivations)? In other words I have just a List of Strings and I
need to mark all the appropriate checkboxes that have the same values as
this List of abbreviations. ( I know an ugly way to do it using java in
the JSP page checking each value to see if it's in the List but there
must be a cleaner way ).

Thanks so much for any help.

-- 

Rick
mailto:[EMAIL PROTECTED]


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



**Disclaimer

Information contained in this E-MAIL being proprietary to Wipro Limited is 
'privileged' and 'confidential' and intended for use only by the individual
 or entity to which it is addressed. You are notified that any use, copying 
or dissemination of the information contained in the E-MAIL in any manner 
whatsoever is strictly prohibited.

***



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


RE: Question on implementation with frames

2002-07-02 Thread Rahul Kumar Saxena


Hi JiRong,

You can use single action class for all the three links and based on
link clikced you can forward the request to corresponding page. In order
to store the value accros the links, you have to store you form in
session. For that you can declare session scope in Struts-config. Apart
from that you may have to take care of removing the form from session
after save.
If different kind of mandatory validations are required for different
links then I would suggest you to use different action class with sngle
form object.

Rahul.

-Original Message-
From: Struts Newsgroup [mailto:@[EMAIL PROTECTED]] 
Sent: Tuesday, July 02, 2002 2:55 PM
To: [EMAIL PROTECTED]
Subject: Question on implementation with frames


Subject: Question on implementation with frames
From: "Hu Ji Rong" <[EMAIL PROTECTED]>
 ===
Hi,

I have a web page with 3 frames, a menu on top with three links to
different pages. When the links are clicked, the destination page will
be displayed in the middle frame. The bottom frame have a list of
buttons like "save", "cancel".

===
(Top Frame)
link1link2link3
===
(Middle Frame)
content of link1/link2/link3
===
(Bottom Frame)
Save/Clear/Print
===

Content of link1,2,3 are all forms with input fields and all fields are
actually belong to the same object such as "Airport". The purpose of
this app is to collection all the data fields of "Airport" which will be
displayed in content of link1,2,3 into database.

The reqirement is: when the user enter some fields in either link1,2 or
3, these fields should be save in the memory(maybe an Airport object),
the user is allowed to navigate from link to link while these already
entered fields should display the entered data.

When "save" in the bottom frame is clicked, the program should check the
completion of mandatory field and save the object to db.

How can I implemented the action servlet? I am think about using one
single action class with parameters to know which link is clicked or
"save" is clicked, and use one single form bean to get all the fields.
Will that work?

Thanks for reading such a long message.

JiRong



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



**Disclaimer

Information contained in this E-MAIL being proprietary to Wipro Limited is 
'privileged' and 'confidential' and intended for use only by the individual
 or entity to which it is addressed. You are notified that any use, copying 
or dissemination of the information contained in the E-MAIL in any manner 
whatsoever is strictly prohibited.

***



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


RE: (newbie) using JAR files vs. explicit package classes

2002-07-01 Thread Rahul Kumar Saxena

Hi Glen,

This convention is followed to identify the third party or external jars
from the ones, which you had developed for your application - project.
This gives clear picture of external resources being used in the
project. There is absolutely no probs in putting all files in a single
jar, as long as it is in classpath. Only thing is that it will be
difficult to identify what you have developed.

Rahul.



-Original Message-
From: Glen Mazza [mailto:[EMAIL PROTECTED]] 
Sent: Monday, July 01, 2002 7:00 PM
To: [EMAIL PROTECTED]
Subject: (newbie) using JAR files vs. explicit package classes


Hello,

I'm looking at how the example .WAR applications
supplied by Struts 1.1 Beta release are expanded by
Tomcat.  

Common/Shared packages, such as "struts.jar", "commons-digester.jar",
etc. are kept unexpanded in
the web-inf\lib directory.   However, classes specific
to the application were expanded into separate
directories:  e.g.,
\classes\org\apache\struts\webapp\example\memory\MemoryUser.class,
MemoryUserDatabase.class, etc.

I'm trying to understand the reasons behind this
deployment convention--What are the benefits of
splitting out application-specific projects/classes
into separate directories and .class files when
deploying?  (i.e., Can't they be more cleanly stored
together in a JAR file like struts.jar, etc. is?)  

Thanks,
Glen



_
Do You Yahoo!?
Información de Estados Unidos y América Latina, en Yahoo! Noticias.
Visítanos en http://noticias.espanol.yahoo.com

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



**Disclaimer

Information contained in this E-MAIL being proprietary to Wipro Limited is 
'privileged' and 'confidential' and intended for use only by the individual
 or entity to which it is addressed. You are notified that any use, copying 
or dissemination of the information contained in the E-MAIL in any manner 
whatsoever is strictly prohibited.

***



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


RE: Anyone want a tool to validate a struts war file?

2002-05-24 Thread Rahul C

I also would like to have the tool.

Thanks

Rahul
>From: "Radhika Nadkarni" <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>CC: [EMAIL PROTECTED]
>Subject: RE: Anyone want a tool to validate a struts war file?
>Date: Fri, 24 May 2002 10:31:57 +
>
>
>hi
>im interested in the tool .Do send me the info and the setup tooo ???
>eagerly waiting for the same.
>
>Thanx a lot
>
>>From: "Holman, Cal" <[EMAIL PROTECTED]>
>>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>>To: Struts Users Mailing List <[EMAIL PROTECTED]>
>>Subject: RE: Anyone want a tool to validate a struts war file?
>>Date: Fri, 24 May 2002 05:18:41 -0500
>>
>>Bill>> Would like info - how about Together Soft?  Tiles and Validator
>>would
>>be great.
>>
>>Cal
>>
>>-Original Message-
>>From: Bill Willis [mailto:[EMAIL PROTECTED]]
>>Sent: Monday, May 20, 2002 23:26
>>To: Struts Users Mailing List
>>Subject: RE: Anyone want a tool to validate a struts war file?
>>
>>Hi everyone,
>>
>>I would like to hear much more about what you would find valuable in tools
>>that automate Struts development. We have a tool called ObjectAssembler
>>that
>>supports Struts in the following ways:
>>
>>  - Visual creation, importing, and editing of Struts components (Actions,
>>ActionForms, Plugins, etc.). You can also edit the code and the two views
>>will synch up.
>>  - Visual creation, importing, and editing of Struts configurations
>>  - Automated generation of associated XML files, and packaging with
>>accessory files in the WAR
>>  - Real-time validation of your Struts configurations as you work
>>
>>Similar functionality is available for WARs, EARs, and EJB JARs. Importing
>>whole assemblies is not yet supported but would not be difficult for us to
>>provide. Once imported (assembly descriptor, components, and accessory
>>files), the real-time validation would then passively display any warnings
>>or errors with any possible corrective actions as it does now.
>>
>>The web development edition (which includes Struts functionality) is free
>>of
>>charge for anyone to use. Version 2.0, which supports Struts 1.1, will be
>>released next month (JBuilder and Netbeans/Forte editions). Anyone who is
>>interested in seeing a beta before then should contact me directly. I 
>>think
>>I can speak for all Struts tools providers in saying that you should
>>regularly mention what features you would find valuable. Feel free to 
>>dream
>>all you want - perhaps some of them will become a reality sooner than you
>>think!
>>
>>By the way, would anyone be interested in the same kind of support for
>>Validator, Tiles, etc.?
>>
>>Regards,
>>
>>Bill Willis
>>Director of Engineering
>>ObjectVenture Inc.
>>Tel: (571) 203-7145
>>Fax: (508) 804-5706
>>E-Mail: mailto:[EMAIL PROTECTED]
>>Visit our web site at http://www.objectventure.com
>>
>>
>>
>>-Original Message-
>>From: JM [mailto:[EMAIL PROTECTED]]
>>Sent: Monday, May 20, 2002 5:47 PM
>>To: Struts Users Mailing List
>>Subject: RE: Anyone want a tool to validate a struts war file?
>>
>>
>>Actually, what I would find more interesting is a "struts aware" tool that
>>lets you load/mount a war file.
>>Then the tool/module would rip through it and produce all my documentation
>>and (UML) workflow diagrams.
>>
>>As well as produce a "recommended.htm" that lists common mistakes and/or
>>configuration issues.
>>
>>Yaa yaa, I know, I'm dreaming.
>>
>>JM
>>
>>"No one can earn a million dollars honestly."
>>- William Jennings Bryan (1860-1925)
>>
>>
>>
>> > -Original Message-
>> > From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
>> > Sent: Monday, May 20, 2002 5:19 PM
>> > To: 'Struts Users Mailing List'
>> > Subject: RE: Anyone want a tool to validate a struts war file?
>> >
>> >
>> > I thought about it, then got busy and forgot.  I'd like to take a look.
>> >
>> > -Original Message-
>> > From: JM [mailto:[EMAIL PROTECTED]]
>> > Sent: Monday, May 20, 2002 5:20 PM
>> >
>> > Did anyone ever responsd to this?
>> >
>> > JM
>> >
>> > > -Original Message-
>> > > From: [EMAI

String[] for html:select---Urgent

2002-02-10 Thread Rahul Chaudhary

The following error is being generated while using a String[] for 
.Looking forward to your help.

javax.servlet.ServletException: BeanUtils.populate
at org.apache.struts.util.RequestUtils.populate(RequestUtils.java:774)
at 
org.apache.struts.action.ActionServlet.processPopulate(ActionServlet.java:2061)


There is this code in the jsp:

<% int i = 0;%>

<% String userSelect = "userSelect["+i+"]";%>

 
 
 
--Select Field --


 

<% i =i+1;%>


In the formBean the mutators are as follows:
String[] userSelect;

public String[] getUserSelect() {
return userSelect;
}
public void setUserSelect(String[] _userSelect) {
userSelect= _mapFieldSelect;
}
public void setUserSelect(int index,String _userSelect) {
userSelect[index] = _userSelect;
}
public String getUserSelect(int index) {
return userSelect[index];
}

In the reset() of the form bean there is this code:

  int userSelectLength = userSelect.length;
  for (int i=0;ihttp://mobile.msn.com


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




struts -- internationalization

2002-01-26 Thread rahul sharma

Hi,
I am working on a web application using struts
framework. I know Struts provides internationalization
of messages and labels using MessageResources. I have
a requirement that all the error messages (not the
fields labels on the form) should come from a table in
the database. I know how to do this using a
messageresource properties file. Is there any way I
can retrieve the error messages from a database table
and still be able to provide internationalization.
Please help.


__
Do You Yahoo!?
Great stuff seeking new owners in Yahoo! Auctions! 
http://auctions.yahoo.com

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




File upload using struts on weblogic server

2001-11-16 Thread Rahul Chaudhary

Hi,

Using struts when i do a file upload operation the weblogic server creates a 
temporary file for that and stores it on the server.Is there a parameter 
from where the code can fetch that temp. directory path.?

Rgds

Rahul


_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp


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