RE: Populating growing List

2005-05-23 Thread Sachin Bhutada

If your form bean is being used in multiple page, you can put the form in
session and clear the collection in reset method if required. That will
serve the purpose. In my application we are using the same apporach and our
application has not yet crashed at least bcoz of form bean :) 

sachin



-Original Message-
From: Nitish Kumar [mailto:[EMAIL PROTECTED]
Sent: Monday, May 23, 2005 5:44 PM
To: 'Struts Users Mailing List'
Subject: RE: Populating growing List



dont think its a great idea, If I start putting beans in session , every
time I have a collection in form bean, I am not sure how long my application
is going to run.



Thanks and Regards,
Nitish Kumar


-Original Message-
From: Nils Liebelt [mailto:[EMAIL PROTECTED]
Sent: Monday, May 23, 2005 5:39 PM
To: 'Struts Users Mailing List'
Subject: RE: Populating growing List


What a bummer. I got the wrong scope!?! If I put the Form in session scope
it works fine. Gonna borrow a tie from my boss so I can hang myself... 


Cheers,

Nils

-Original Message-
From: Nils Liebelt [mailto:[EMAIL PROTECTED] 
Sent: Monday, May 23, 2005 1:50 PM
To: 'Struts Users Mailing List'
Cc: [EMAIL PROTECTED]
Subject: Populating growing List

Hi all,

I know that common issue with indexed properties as mentioned in the wiki
http://wiki.apache.org/struts/StrutsCatalogLazyList.

So I wrote a little handcranked lazy list but I still get an
indexoutofbounce exception. I really don't know whats going on here: 

private ArrayList deleteSelection = new ArrayList();

public void setDeleteSelection(int i, String toDelete) {
this.deleteSelection.set(i, toDelete);
}

public String getDeleteSelection(int i) {
while(i>=this.deleteSelection.size()) {
this.deleteSelection.add(new String(""));
}
return (String) this.deleteSelection.get(i);

}

The nested exception looks like this:

Caused by: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
at java.util.ArrayList.RangeCheck(ArrayList.java:508)
at java.util.ArrayList.set(ArrayList.java:336)
at
com.candor.hummingbird.forms.AccountForm.setDeleteSelection(AccountForm.java
:74)



Regards,

Nils


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

2005-05-17 Thread Sachin Bhutada

hi,
Try out JReports.

Sachin


-Original Message-
From: Rafael Taboada [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 17, 2005 12:50 AM
To: Struts List
Subject: Reports


Hi folks. I'm doing reports for my project and I was asking me if
there are tools in order to help to do that.

Is it possible to integrate Crystal Reports with Struts?. I heard
about Business Object... Do u know some documentation about it?

What other tools are there in order to make reports???

Thanks for help me.


-- 

 Rafael Taboada

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


RE: Beginner question...

2005-03-31 Thread Sachin Bhutada




-Original Message-
From: Apte, Dhanashree (Noblestar) [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 31, 2005 11:07 AM
To: 'Struts Users Mailing List'
Subject: Beginner question...



This is the first time I am doing web programming and using struts as
well.
I have been meaning to ask this ever since I started. At the risk of
sounding stupid, here is the question:

EVEN I AM ALSO QUITE NEW TO WEB APPLICATION, BUT I WILL TRY TO GIVE YOU THE
SOLUTION RATHER 
THAN ANSWERING WHY LOGIC:ITERATE TAG DOESNT DO WHAT YOU AND LONG TIME BACK I
WAS EXPECTING FROM IT.

If struts is smart enough to figure out logic:iterate and put out the
attributes of each bean from the collection neatly for editing, why is
it
not smart enough to figure out which element the user edited and put the
changed value back in the right property of the right bean in original
collection? Why do I need to have both:
* the Collection attribute for loading up my edit page AND
* the string array for every editable attribute to track the edits made
by
the user?

THERE ARE LOTS OF WAYS BY WHICH WE CAN TELL STRUTS TO AUTOMATICALLY POPULATE
THE FIELDS OF COLLECTION
WHEN THE FORM IS SUBMITTED. STILL YOU CAN USE THE STRING ARRAY AND GET THE
WORK DONE. USING COLLECTION
ATTIRBUTES IN EASIER APPROACH. 

HERE IS THE LINK WHICH WILL EXPLAIN IN DETAIL HOW IS IT DONE.

http://technology.amis.nl/blog/index.php?p=176

I HOPE IT SOLVES YOUR PROBLEM



Thanks!
Dhanashree.

SACHIN


RE: Will the execute method of ExceptionHandler be called ?

2005-03-18 Thread Sachin Bhutada
Thanks erik ..

-Original Message-
From: Erik Weber [mailto:[EMAIL PROTECTED]
Sent: Friday, March 18, 2005 12:26 AM
To: Struts Users Mailing List
Subject: Re: Will the execute method of ExceptionHandler be called ?


Sorry, I misunderstood.

The answer is no. The processActionPerform method (as of 1.2.4) runs in 
a try/catch, while the processPopulate method does not. processPopulate 
basically just invokes RequestUtils.populate, which just throws a 
ServletException if it encounters any problems. RequestProcessor.process 
will throw this Exception on up to ActionServlet.process, which throws 
it on up to ActionServlet.doGet or doPost.

Erik


Sachin Bhutada wrote:

>Thanks Erik,
>   Yes execute method of ExceptionHandler will be invoked when
>Action's execute method throws an Exception. 
>But my question was .. Whether it will be invoked if some exception occurs
>at the time of population the ActionForm's properties. Population is done
by
>Struts Utils classes. So I am not very much sure whether it will execute it
>or not .
>
>Sachin
>
>-Original Message-
>From: Erik Weber [mailto:[EMAIL PROTECTED]
>Sent: Thursday, March 17, 2005 11:55 PM
>To: Struts Users Mailing List
>Subject: Re: Will the execute method of ExceptionHandler be called ?
>
>
>Yes. The execute method of an ExceptionHandler is invoked whenever an 
>Action's execute method throws an Exception that the ExceptionHandler is 
>configured to handle (via "exception" elements in struts-config.xml). It 
>is then up to the handler to provide the forward rather than the Action.
>
>http://struts.apache.org/userGuide/building_controller.html#exception_handl
e
>r
>
>Erik
>
>
>Sachin Bhutada wrote:
>
>  
>
>>hi All,
>>  It may be a silly question but just wanted to make sure. If some
>>exception is thrown at the time setting the bean properties, then will the
>>execute method of 
>>Exception handler be called ? I am thinking of using declarative exception
>>handling it it works.
>>
>>Thanks in Advance.
>>
>>Sachin
>>
>> 
>>
>>
>>
>
>-
>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: Will the execute method of ExceptionHandler be called ?

2005-03-18 Thread Sachin Bhutada

Thanks Erik,
Yes execute method of ExceptionHandler will be invoked when
Action's execute method throws an Exception. 
But my question was .. Whether it will be invoked if some exception occurs
at the time of population the ActionForm's properties. Population is done by
Struts Utils classes. So I am not very much sure whether it will execute it
or not .

Sachin

-Original Message-
From: Erik Weber [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 17, 2005 11:55 PM
To: Struts Users Mailing List
Subject: Re: Will the execute method of ExceptionHandler be called ?


Yes. The execute method of an ExceptionHandler is invoked whenever an 
Action's execute method throws an Exception that the ExceptionHandler is 
configured to handle (via "exception" elements in struts-config.xml). It 
is then up to the handler to provide the forward rather than the Action.

http://struts.apache.org/userGuide/building_controller.html#exception_handle
r

Erik


Sachin Bhutada wrote:

>hi All,
>   It may be a silly question but just wanted to make sure. If some
>exception is thrown at the time setting the bean properties, then will the
>execute method of 
>Exception handler be called ? I am thinking of using declarative exception
>handling it it works.
>
>Thanks in Advance.
>
>Sachin
>
>  
>

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


Will the execute method of ExceptionHandler be called ?

2005-03-17 Thread Sachin Bhutada

hi All,
It may be a silly question but just wanted to make sure. If some
exception is thrown at the time setting the bean properties, then will the
execute method of 
Exception handler be called ? I am thinking of using declarative exception
handling it it works.

Thanks in Advance.

Sachin


Interating through a Map [ which has DTO in the values ] using l ogic:iterate

2005-02-17 Thread Sachin Bhutada


hi, 
   I have a HashMap which has Key and Value both as DTOs 

Key contains Dept DTO (Dept has Dept No, Dept Name)
Value contains Collection of EmpDetails DTO (It has Name, Email-Id,
etc information)
   In the jsp page I want to iterate through this Map using logic iterate
tag so that outpage html page should look like this..

  Dept No : Dept Name
Emp One [EMAIL PROTECTED]   .
Emp Two [EMAIL PROTECTED]   .
and so on 
  Dept No 3 : Dept Name 3   
Emp One [EMAIL PROTECTED]   .
Emp Two [EMAIL PROTECTED]   .
and so on ...

 To achieve this, I have written following code. For the time being I am
just concetrating on displaying the Department Details.. 

 
  
   -- IT displayes the
Dept object name 

When I try to use following code it shows error message 
javax.servlet.jsp.JspException: No getter method for property
key.deptNo of bean element 
  
 

In my actionform class I have haspmap and getter and setter methods. 

How should I display deptNo and deptName in the Dept DTO ? 

Thanks in Advance
Sachin



RE: indexed property is not updated after submit

2004-12-15 Thread Sachin Bhutada
Hi,

It will not be updated unless and untill you dont put one getter method for
the Id in the form bean which you have given in the logic iterate tag.

In your case, its ...id="email"


  

Hope this helps ..

sachin


-Original Message-
From: Kandula, Sunita [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 15, 2004 11:42 PM
To: 'Struts Users Mailing List'
Subject: RE: indexed property is not updated after submit


Could be done like this:
<%@ taglib uri="/WEB-INF/struts-nested.tld" prefix="nested" %>






-Original Message-
From: Evgeniy Strokin [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 15, 2004 10:04 AM
To: [EMAIL PROTECTED]
Subject: indexed property is not updated after submit


Hi,
I have a problem:
Struts config file has:






On JSP I have:

  

It generates folowing HTML:



But when I submit the form actual values in a bean are
not updated. They are still the same.

This is my Bean:
package com.mycomp.securityadmin;
public class SecurityAdminModel implements
Serializable{

private Person currentPerson=null;
public Phone getPhone(int ind){
if(currentPerson!=null &&
currentPerson.getContactInfo()!=null
&&
currentPerson.getContactInfo().getPhones()!=null &&
ind>=0 &&
ind=0 &&
ind=0 &&
ind
=0 &&
ind=0 &&
ind=0 &&
indhttp://info.mail.yahoo.com/mail_250

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



** 
This e-mail and any files transmitted with it may contain privileged or 
confidential information. It is solely for use by the individual for whom 
it is intended, even if addressed incorrectly. If you received this e-mail 
in error, please notify the sender; do not disclose, copy, distribute, or 
take any action in reliance on the contents of this information; and delete 
it from your system. Any other use of this e-mail is prohibited. Thank you 
for your compliance.




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


RE: class not found

2004-11-08 Thread Sachin Bhutada

Hi Nishant,

Replace ur controller tag with following one and check it out. 


  
   
   


sachin



-Original Message-
From: Nishant [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 09, 2004 11:45 AM
To: Struts Users Mailing List
Subject: Re: class not found


yes i did it but it still throwing the same error !!!
Nishant Patil
Software Engineer
Cybage Software Pvt. Ltd. (A CMM Level 3 Company)
West Avenue , Kalyani Nagar,
Pune - 411 006
Tel: 91-20-4041700  -355
Email: [EMAIL PROTECTED]
Website: www.cybage.com
There's a difference between knowing the path, and walking the path
- Original Message - 
From: "David G. Friedman" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Tuesday, November 09, 2004 11:43 AM
Subject: RE: class not found


> Have you removed all plugIns to make sure it isn't something you are
> loading?
>
> Regards,
> David
>
> -Original Message-
> From: Nishant [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, November 09, 2004 1:05 AM
> To: Struts Users Mailing List
> Subject: class not found
>
>
> i am getting an exception as
> - javax.servlet.UnavailableException: Cannot initialize RequestProcessor
of
> clas
> s org.apache.struts.action.RequestProcessor:
> java.lang.ClassNotFoundException: o
> rg.apache.struts.action.RequestProcessor
> - Finalizing memory database plug in
>
> my struts-config.xml file contains following controlller
>
>   
> 
>   
>   
> 
>
> i aint able to point out where is error !! can any one plz help me 
> thanks in advance !!1
> Nishant Patil
> Software Engineer
> Cybage Software Pvt. Ltd. (A CMM Level 3 Company)
> West Avenue , Kalyani Nagar,
> Pune - 411 006
> Tel: 91-20-4041700  -355
> Email: [EMAIL PROTECTED]
> Website: www.cybage.com
> There's a difference between knowing the path, and walking the path
>
>
> -
> 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 Doubt

2004-10-13 Thread Sachin Bhutada

try WSAD5.1.2 

sachin
-Original Message-
From: babloosony [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 13, 2004 2:52 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Tiles Doubt


Hi All,

Are there any IDE's available for programming with Tiles and JSF.
Basically I am looking for IDE's that show the logic structure of
various nested tiles. How
do I establish a logical flow of these nested tiles usage like what
tiles are used by what. I cannot manually  sit down and write how the
nested are used instead I want to rely on some tools that show me the
nested tiles usage and their navigation path...

Thanks & Regards,
Kumar.

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


RE: Validate() vs JavaScript where is the advantage?

2004-09-30 Thread Sachin Bhutada

Nadia,

By using struts and validator framework u can show internationalized
java script error messages as well. 

sachin

-Original Message-
From: Nadia Kunkov [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 30, 2004 6:35 PM
To: Struts help (E-mail)
Subject: Validate() vs JavaScript where is the advantage?


Hi,
I'm wondering if I should use validate() method of ActionForm instead of
JavaScript to validate the form.  I can see the advantage of validate() when
you have an internationalized application, but otherwise why would I have an
overhead of going back to the server when I can do the validation on the
client side?  I'm a struts newbie so I might not see the advantage of
validate yet, so can someone tell me why JavaScript would be an inferior
choice ( when internationalization is not an issue ). 

Thanks
NK

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


RE: Validate() vs JavaScript where is the advantage?

2004-09-30 Thread Sachin Bhutada


hi Nadia, 
 What if the client who is accessing ur application disables the
java script and keeps on hitting the server contineous ?
  Secondly, Using javascript its little difficult to modify the html
pages. But using validate method andu can lay out ur error
messages properly. 
   
At this moment I only see these two advantages of validate method. 

sachin

-Original Message-
From: Nadia Kunkov [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 30, 2004 6:35 PM
To: Struts help (E-mail)
Subject: Validate() vs JavaScript where is the advantage?


Hi,
I'm wondering if I should use validate() method of ActionForm instead of
JavaScript to validate the form.  I can see the advantage of validate() when
you have an internationalized application, but otherwise why would I have an
overhead of going back to the server when I can do the validation on the
client side?  I'm a struts newbie so I might not see the advantage of
validate yet, so can someone tell me why JavaScript would be an inferior
choice ( when internationalization is not an issue ). 

Thanks
NK

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


RE: bean missing after validation

2004-09-20 Thread Sachin Bhutada
hi sebastian,
If you have configured action to use redirect ( which is
normal case ), ur request attributes will be lost.
Try putting that bean seesion scope.

sachin 
xoriant, mumbai

PS : also make sure, how does struts take us back to input page ?( using
forward or redirect i guees its redirect)

-Original Message-
From: Sebastian Ho [mailto:[EMAIL PROTECTED]
Sent: Monday, September 20, 2004 12:59 PM
To: Struts Users Mailing List
Subject: bean missing after validation


hi

i have the following codes in my JSP :

"/>

which converts into .

If validation is used and there are errors, the input page is displayed.
Now the above value became :



The valus is missing..

Can anyone explain why this is happening and how to resolve it?

sebastian 


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


RE: tiles-definition - role association issue

2004-09-19 Thread Sachin Bhutada
Hi Ashutosh,
Well I havnt worked so extensively on role based security in
tiles. I will try to go through your mail once again  whenever I have a
time. You may get some help from this site
http://www.lifl.fr/~dumoulin/tiles/ . I will also send you one pdf which
explains advanced tiles.

sachin
mumbai, xoriant

-Original Message-
From: Ashutosh Satyam [mailto:[EMAIL PROTECTED]
Sent: Monday, September 20, 2004 10:55 AM
To: Struts Users Mailing List
Subject: RE: tiles-definition - role association issue


I have not received any response on this mail yet.
Any pointers on this will be appreciated.

- Ashutosh

-Original Message-
From: Ashutosh Satyam 
Sent: Friday, September 17, 2004 9:21 PM
To: [EMAIL PROTECTED]
Subject: tiles-definition - role association issue


As per the Tiles Definition file syntax
 In the tiles definition we can specify the role 
 (Role to be checked when definition will be inserted in a page.)
  
Similarly, It is possible to associate a role with tiles: put attribute.

I'm intending to allow the definition to be used based on the role.

The second scenario works fine for me.
I have my Login page for the application as stated below.

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











Depending upon the user's role, correct definition is inserted.

Now going on the same lines, when I have a definition with role specified,
it  
doesn't seem to work. My tiles-definition is as follows.












 

This definition (Add) gets applied for each of my role, though I was
presuming that
only for the user with 'admin' role this definition will be executed.

What am I missing? Is it not a correct approach?
Kindly give some solution to achieve it.


Regards,
Ashutosh




-
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: suggestion needed.

2004-09-17 Thread Sachin Bhutada

hi vineesh , 

go to java.sun.com and search for tutorial they hv wonderfully designed
tutorials for the beginners .

sachin
xoriant, mumbai
-Original Message-
From: vineesh . kumar [mailto:[EMAIL PROTECTED]
Sent: Friday, September 17, 2004 1:19 PM
To: Struts Users Mailing List
Subject: Re: suggestion needed.


  

I do not under stand ur problem.
when u accessing the database some error occured?
 then plz specify the errorstring




On Fri, 17 Sep 2004 viji.george wrote :
>
>  hello people,
>
>can anyone suggest a site where i can find a sample application or the
>solution to the problem in accessing the database, i had mailed
earlier?
>
>can anybody suggest a good book???
>
>thanks again.
>
>regards,
>Viji George


RE: Accesssing the multiple MessageResources

2004-09-17 Thread Sachin Bhutada
hi Honza Spurný ,

Try this out ..

RequestUtils.message(pageContext,"countries","locale", "country.usa.label",
null);
It will return u the appropriate string. It may work.

sachin
xoriant, mumbai

-Original Message-
From: Honza Spurný [mailto:[EMAIL PROTECTED]
Sent: Friday, September 17, 2004 1:48 PM
To: [EMAIL PROTECTED]
Subject: Accesssing the multiple MessageResources


Hi there,

since I've been searching for answer for hours and nothing have found, I'd
like to ask You for help.

I'd like to define 2 (or more) MessageResources files (two differents
bundles) by inserting into struts-config.xml this:




It's easy to access these message resources in jsp files. Since the first
entry is stored under default key it can be accessed for example this way:



and the second entry is accessible under specified key this way:



This works fine. But sometimes I need to access MessageResources files in
java classes. When I would like to access defualt messages object, I usually
use this sequence:

let's say request object is known...
Locale locale = (Locale)request.getSession().getAttribute("locale");
MessageResources messages =
((MessageResources)request.getAttribute(Globals.MESSAGES_KEY));

This still works fine. I have problem (exactly said, I don't know how to) to
access "countries" MessageResources. I have no idea how to access this
additional Resources in java class. I've found out how to access them in the
Action class:

MessageResources countries = getResources(request, "countries");

or

MessageResources countries =
(MessageResources)getServlet().getContext().getAttribute("countries");

Please any idea how to do it?

-

And the next question is how to do it in JSP files different way. Sometimes
I use this in JSP files:



what makes me able to access default MessegeResources as class in the JSP
pages. Sometimes it's quite usefull for me. And according to this, I'd like
to access the same way also my additional "Countries" MessageResources. But
I don't know how to specify the bundle in the bean:define tag. I think there
can be bundle specified only by name attribute. The way how to specify the
bundle is probably the same, as above, but I have to enter there different
value, that points on my additional resources. So where to find this value?
If I would know this value, it could also help in the first question, that
is above.



Thanks for Your hints.
I hope You know some tricks, I don't, and that will help.

Thanks for help

Best Regards
Have a nice rest of day

Honza Spurny


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


RE: Problem going to my Next JSP by Href tag

2004-09-16 Thread Sachin Bhutada


hi Priya,
Seems you havent gone through the struts docs or books
properly. Have you created any action mapping for that link ? Unless and
untill u dont do that, how come struts framework will know about it
?anyways, you have got two options either include one action mapping for
that href in config file or use struts forward action . Use of either of
them would solve your problem.

sachin
xoriant, mumbai

-Original Message-
From: Priya Jotwani [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 16, 2004 8:39 PM
To: Struts Users Mailing List
Subject: RE: Problem going to my Next JSP by Href tag


Thanks for the reply. But I have actually included my application path. I
think there is no problem in the path.
All I am worried about is will this calling of MyJSPPage would follow the
Struts framework process i.e going to ActionServlet and then to Action
Class...etc or would it be just a NORMAL html href tag. Because I am
following the normal Html approach and I have not written anything in my
ActionForm or ActionClass for the same.
What could be wrong ???

Thanks Again,
Priya


-Original Message-
From: Bj [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 16, 2004 8:35 PM
To: Struts Users Mailing List
Subject: Re: Problem going to my Next JSP by Href tag

Yes you don't need any processing in your struts-config file.

The application path seems to miss, no ?
Click Here

but you should use struts tag to avoid path issue :


or if the page is on another server/application, you should put the 
complete url (http://MyServerName:8080/MyJSPPAge.jsp)

Bj


Priya Jotwani a écrit :
> Hi,
> 
>  
> 
> I want to build my application on existing Struts code. I have a main
> page where I just want to include a hyperlink. Clicking on the hyperlink
> should take me to one JSP Page (but since the data fetching logic is
> still under process, its only the HTML content in MYJSPPage)  But this
> doesn't works. Since I am not doing any processing, I don't think I
> should be making an entry in my Struts-Config(for the time being..just
> to see if my page loads when I click on the link on the main page). I
> have only made the changes in my Main JSP to include a href tag .
> 
>  
> 
> I have included the following line in my Main Page
> 
> Click Here
> 
>  
> 
> What am I missing ? 
> 
>  
> 
> TIA,
> Priya
> 
> 

-
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: Validation in struts

2004-09-15 Thread Sachin Bhutada

hi Divya,
For doing clinet side validation you will have to configure
validation framework and write 
ur own custom validation in that xml file or use the basic validation
provided by that framework. In the jsp page
you will have to put one struts javascipt tag. This tag will actually get
all the custom java script for 
that page and thus client side validation java script will b put in jsp
file.

sachin
xoriant, mumbai

-Original Message-
From: Divya B Sridhar [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 15, 2004 9:51 AM
To: [EMAIL PROTECTED]
Subject: Validation in struts


Hi All,
It is said that the validation(client side validations like say a particular
textbox field can contain numbers only etc) should not be explicitly written
in client-side validation javascripts in a struts framework. How can such
things be accomplished using struts without writing specific client-side
validation javascripts functions on the jsp page? 
Any help is greatly appreciated.
 
Thanks,
Divya.




RE: port getting changed on Oralcle 9i AS 9.03

2004-09-14 Thread Sachin Bhutada
hi ashwini,
If the problem is in those two tags, remove those struts
tags and put html tags instead. 
sachin
xoriant, mumbai

-Original Message-
From: Kalra, Ashwani [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 14, 2004 1:08 PM
To: Struts Users Mailing List
Subject: port getting changed on Oralcle 9i AS 9.03



Hi,
I am facing strange problem on Oracle 9i AS 9.03 version on HP and unix
boxes. When I save or submit the jsp, the port is getting changed. I noticed
it has something to do with HTML:Base or html:html tag. Did any body faces
such problem. Pls let me know 

Thanks & Regds
 Ashwani




 

This message contains information that may be privileged or confidential and
is the property of the Capgemini Group. It is intended only for the person
to whom it is addressed. If you are not the intended recipient,  you are not
authorized to read, print, retain, copy, disseminate,  distribute, or use
this message or any part thereof. If you receive this  message in error,
please notify the sender immediately and delete all  copies of this message.


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


RE: Re: Re: [Gmail] - All gone,

2004-09-13 Thread Sachin Bhutada
hi puneet,
 
Can you send me the invitation of GMAIL ?
 
sachin
xoriant, mumbai

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 14, 2004 11:38 AM
To: Struts Users Mailing List
Subject: Re: Re: Re: [Gmail] - All gone,



I have three...any takers? 

Puneet Agarwal
Tata Consultancy Services Limited
Mailto: [EMAIL PROTECTED]
Website: http://www.tcs.com



RE: MappingDispatchAction

2004-09-13 Thread Sachin Bhutada
hi bmf5,
yeah its struts1.2.2 feature. You can get the beta version of it n
then add it in ur code instead of putting struts 1.2.2 jar file.

sachin
xoriant mumbai

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Monday, September 13, 2004 6:07 PM
To: [EMAIL PROTECTED]
Subject: MappingDispatchAction







I just read about this this w/e and it suits my needs perfectly.  However,
I can't find it in 1.1 struts.jar.  Is it a 1.2 feature?


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


RE: PlugIn/ ActionServlet init() method called 2 times in Linux

2004-09-12 Thread Sachin Bhutada
hi Uma,
If the same application is working fine with tomcat + windows and
not working with tomcat+ linux, try out follwoing,it may solve ur problem
for time being.
1)Use one more servlet and integrate with struts instead of
using plug-in or extending
ActionServlet.This but be nothing but workaround to the given probs. Ideally
u shud go for plug-in. 
2)In the plugin class,apply some checks if the db
connections are already created dont create it again. 

sachin 
xorant, mumbai


-Original Message-
From: Uma Yarakaraju [mailto:[EMAIL PROTECTED]
Sent: Monday, September 13, 2004 11:58 AM
To: [EMAIL PROTECTED]
Subject: PlugIn/ ActionServlet init() method called 2 times in Linux 



Hi,
 
Can anyone pl help on my below mail? Some more things I noticed are:
 
I downloaded the latest struts-1.2.2 zip. To the struts-blank.war I
added a simple plugin class (that prints system.out.println in the
constructor, init, and destroy methods) called MyPlugIn.java. I deployed
the struts-blank in tomcat-4.1.18 on WIN 2k. Works fine where the print
statements are printed once. 
 
Whereas in tomcat-4.1.18 on Linux they are printed 2 times each.
 
I tried using an extended ActionServlet class for initialization. Even
in this constructor, init() and destroy() methods are called 2 times on
Linux and once on windows.
 
I did really appreciate any help as our application has to go live and
this could affect the performance of our application (as the DB
connections are created multiple times).
 
Can anyone pl suggest ways to initialize a struts webapp other than
plugIn and extended ActionServlet.
 
Thanks & Regards,
Uma.
-Original Message-
From: Uma Yarakaraju [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 09, 2004 7:04 PM
To: [EMAIL PROTECTED]
Subject: PlugIn's init(...) method is called multiple times in Linux 



Hi, 

I have 3 struts based applications running in Tomcat 4.1.18. I have
deployed them in Red Hat Linux Advanced Server 3.0 platform.

In all my 3 apps, I have implemented the Struts's PlugIn interface for
doing the initialization tasks and configured them in the
struts-config.xml as shown below (for one of the apps):


   
 
   

   
 
   

In the init(ActionServlet servlet, ModuleConfig config) method of these
plugin classes I create DB connections. 

On Windows (2k) platform it works fine. That is the init(.) method is
called once for each app/plugin and the configured number of connections
are created.

But when I deploy them on our target Linux platform the init(.) method
of 2 apps is called 2 times and the other app is called 4 times. I had
some debug statements in the init(.) method of PlugIn class and they
show it is called multiple times.

Pl give your ideas on how I can resolve this. Any help will be highly
appreciated. 

Thanks in advance, 
Uma. 





Confidentiality Notice 

The information contained in this electronic message and any attachments
to this message are intended
for the exclusive use of the addressee(s) and may contain confidential
or privileged information. If
you are not the intended recipient, please notify the sender at Wipro or
[EMAIL PROTECTED] immediately
and destroy all copies of this message and any attachments.


RE: Problem in defining tab inside JSP file

2004-09-12 Thread Sachin Bhutada
hi Manisha,

Just read the error messges very carefully hence forth. 

[ServletException in:RoomListContent.jsp] No getter method for property

testvar of bean org.apache.struts.taglib.html.BEAN' 

Struts Framework is trying to look for the property of the specified bean
which have linked

with this form.

Solution :- 

*Add the property with the name testvar in the bean and try it out .
*Change the name of the property with appropriate one which is in
existing one bean.

 
I hope this will solve ur problem.

sachin 

xoriant, mumbai



hi Manisha,
   Just read the error messges very carefully hence forth.

[ServletException in:RoomListContent.jsp] No getter method for property
testvar of bean org.apache.struts.taglib.html.BEAN'

  Struts Framework is trying to look for the property of the specified bean
which have linked
with this form.

Solution :-
1) Add the property with the name testvar in the bean and try it out .
2) Change the name of the property with appropriate one which is in existing
one bean.
3) In case if you are not using any bean for this form, then dont use
property attribute.

I hope this will solve ur problem.

sachin b
xoriant, mumbai

-Original Message-
From: Manisha Sathe [ mailto:[EMAIL PROTECTED]
 ]
Sent: Monday, September 13, 2004 11:30 AM
To: [EMAIL PROTECTED]
Subject: Problem in defining tab inside JSP file


I am totally new to structs / JSP / Java. I am modifying the existing
program. Want to put one html tag inside the JSP file. I tried




but i always get error

[ServletException in:RoomListContent.jsp] No getter method for property
testvar of bean org.apache.struts.taglib.html.BEAN'

Pls let me know - what i am missing ?


Thanks in advance and regards
Manisha





   
-
Do you Yahoo!?
Shop for Back-to-School deals on Yahoo! Shopping.