Validation for List of items

2008-06-18 Thread Vamsi Gmail!
Hi all,

   I wanted to do validations for list of items

I have multiple contact details.(The number of contact details is dynamic).

If user create three contact details

fisrt name ,last name ,telephone

I don't want to allow the user to enter special characters in first name and
last name

Is the current validation framework provides validations of this kind or
not.

If anything like that is there please provide the links for them

Regards
Vamsi


Problem assiging elements in to list

2008-03-13 Thread Vamsi Gmail!
Hi all,

 I have a requirement where I need to assign a Objects to a list.
I tried the example given in showcase there is working (in the site).
But It is not assigning to that list

I am also attaching code for your refernce.

---Vamsi
/*
 * $Id: PersonAction.java 471756 2006-11-06 15:01:43Z husted $
 *
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License.  You may obtain a copy of the License at
 *
 *  http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied.  See the License for the
 * specific language governing permissions and limitations
 * under the License.
 */

package test.actions;

import java.util.ArrayList;
import java.util.List;

import javax.persistence.EntityManager;
import javax.persistence.EntityTransaction;
import javax.persistence.PersistenceUnit;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.hibernate.exception.ConstraintViolationException;

import test.examples.Person;

import com.opensymphony.xwork2.ActionSupport;


@SuppressWarnings("serial")

public class PersonAction extends ActionSupport {

//private Person person;
private List persons = new ArrayList();

private Log _logger = LogFactory.getLog(PersonAction.class);




public List getPersons() {
return persons;
}

public void setPersons(List persons) {
this.persons = persons;
}

@SuppressWarnings("unchecked")

public String save()  {
EntityManager e = SfmsEntityManagerFactory.getEntityManager();
EntityTransaction txn  =e.getTransaction();
txn.begin();
try{
_logger.error("Person ::");
_logger.error("Person ::");
for (Object object :persons) {
Person person  = (Person) object;
_logger.error("Person 
::" + person);

e.persist(person);
}
_logger.error("Person ::");
_logger.error("Person ::");
txn.commit();
addActionMessage("Record Added");
read(e);
}catch(ConstraintViolationException e1) {
addActionError("Record Already There");
}catch(IllegalStateException e1){

}catch(Exception e1) {
addActionError("Error Inserting");
txn.rollback();
}

return SUCCESS;
}

private void read(EntityManager e)  {   
persons = e.createQuery("From Person").getResultList();

}





   

}package test.examples;

import static javax.persistence.FetchType.LAZY;

import javax.persistence.Basic;
import javax.persistence.Entity;
import javax.persistence.Id;

@Entity
public class Person implements Persister{


@Id
private String name;

@Basic(fetch=LAZY)
private int age;

public String getName() {
return name;
}

public int getAge() {
return age;
}

public void setName(String name) {
this.name = name;
}

public void setAge(int age) {
this.age = age;
}

@Override
public String toString() {

return name + "" + age;
}

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

Re: How can I validate a composed object in my action?(Struts 2)

2008-02-06 Thread Vamsi Gmail!
 Create a file With name UserAction-validation.xml

and copy the below content

go through the struts2  validation frame work







School name required








On 2/6/08, slideharmony <[EMAIL PROTECTED]> wrote:
>
>
> Hello!
> I have to validate a composed object in my action, this is my action:
>
>
> public class UserAction extends ActionSupport{
>
> private User usr;
>
> public User getUser() {return usr;}
> public void setUser(User usr) {this.usr = usr;}
>
> }
>
>
>
>
> and this is User class:
>
> public class User{
>
>   private String usrId;
>
>   public String getUsrId(){
>return usrId;
> }
>
>   public void setUsrId(String usrId){
>   this.usrId = usrId;
>   }
>
>
> }
>
>
> How can I validate usrId property with annotations or xml
> without putting annotations inside User class?
>
> Any help would be appreciate!
>
> Thanks in advance,
> Riccardo
> --
> View this message in context:
> http://www.nabble.com/How-can-I-validate-a-composed-object-in-my-action-%28Struts-2%29-tp15306468p15306468.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


What are latest updates on Struts2.1?

2007-12-11 Thread vamsi
Hi all,

 At present I am using struts 2.08
I wanted what are updates that are there in 2.1.
What is the best place to find these details all at one place?

Thanks
Vamsi

Re: [S2] Websphere 6.1 Showcase application, Response already committed warning in logs

2007-10-28 Thread vamsi

Can u post the complete stacktrace.


- Original Message - 
From: "Paul Benedict" <[EMAIL PROTECTED]>

To: "Struts Users Mailing List" 
Sent: Monday, October 29, 2007 10:15 AM
Subject: Re: [S2] Websphere 6.1 Showcase application, Response already 
committed warning in logs



Test your app in Tomcat. If it works there, you have a WebSphere problem. 
In
my experience, WebSphere is a big bloated mess but I know that doesn't 
help

you. However, you need to determine if it is a bug within WAS itself.

Paul

On 10/24/07, patb23 <[EMAIL PROTECTED]> wrote:



Hi,
I am using RAD 7.0 with WAS test environment.
My Struts2 app is not working (There is no Action mapped for action 
name -

error) in the test environment. I exported my project as WAR and deployed
it
in the app server. This time it worked. I observed the same behavior even
with the Struts Blank application. With resources in my workspace, it is
not
working but when I deploy the app as WAR it is working.

I even upgraded to WAS 6.1.0.5 Fix pack but with no luck.

Could anyone explain the reason for this strange behavior?

Thanks







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



Problem with s:if

2007-10-28 Thread vamsi
Hi all,

I am trying out the following code

But it is failing







 



 

 



 

regards

Vamsi


Re: How to get initialized at startup

2007-10-24 Thread vamsi

I am writing my own servlet for this as I didn't found anything.
As I feel I have more control on that.
post it if you got solution for this one.
- Original Message - 
From: "Brian Hawkins" <[EMAIL PROTECTED]>

To: 
Sent: Tuesday, October 23, 2007 3:06 AM
Subject: How to get initialized at startup



I'm pretty new to Struts2.

I have some code I need to initialize when the servlet comes up for the
first time.  How do I do that when I'm using struts and I do not have my 
own

servlet?  Do I create a servlet just for this purpose?

Thanks
Brian




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



Problem with OGNL

2007-10-17 Thread vamsi
Hi all,

My problem is OGNL is giving a IndexOutofBound exception, when I am trying to 
assign to a list in my action class.



The code in jsp file as follows 















 







 





 



The setters/getters

public List getSalesPlans() {

return salesPlans;

}


@TypeConversion(rule=ConversionRule.COLLECTION)

public void setSalesPlans(List salesPlans) {

this.salesPlans = salesPlans;

} 



thanks

Regards

Vamsi Krishna


Re: S:property converts string to rounded int

2007-10-16 Thread vamsi

Use struts formatting tags
<%@ taglib uri="http://java.sun.com/jstl/fmt"; prefix="fmt" %>

- Original Message - 
From: "Sekhar, Raja" <[EMAIL PROTECTED]>

To: "Struts Users Mailing List" 
Sent: Tuesday, October 16, 2007 9:11 AM
Subject: S:property converts string to rounded int



Hi Group
I am having a small issue with  .
say
if mtm = "215667.20" then
from the JSP I get a value of 215667.2,

similarly if
mtm = "0.00" I get a value of 0 from the
rendered jsp.
How do I disable this auto conversion from string to int
?

I am using 2.0.8. Kindly help.

Thanks
Raja
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  
- - - - - -


This message is intended only for the personal and confidential use of the 
designated recipient(s) named above.  If you are not the intended recipient 
of this message you are hereby notified that any review, dissemination, 
distribution or copying of this message is strictly prohibited.  This 
communication is for information purposes only and should not be regarded as 
an offer to sell or as a solicitation of an offer to buy any financial 
product, an official confirmation of any transaction, or as an official 
statement of Lehman Brothers.  Email transmission cannot be guaranteed to be 
secure or error-free.  Therefore, we do not represent that this information 
is complete or accurate and it should not be relied upon as such.  All 
information is subject to change without notice.





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



Read only property for date picker

2007-10-09 Thread vamsi
Hi all,

  I have a requirement where I have to make the textfield coming along 

with datetimepicker should be readonly.But there is no attribute to do so 
in the tag for datetimepicker
  
is there any solution for that.

regards
Vamsi Krishna.

Formatting Flaot and Double Values

2007-10-03 Thread vamsi
Hi all,

 I want to format float and double values like this ##,###.## eg 45,000.09
 Is there any tag that will do this for me or any global property to do this

thanks,
Regards
Vamsi krishna

Re: ServletRequestAware

2007-09-03 Thread vamsi

why can't u get request object from ServletContext?

- Original Message - 
From: "Alvaro Sanchez-Mariscal" <[EMAIL PROTECTED]>

To: "Struts Users Mailing List" 
Sent: Monday, September 03, 2007 6:53 AM
Subject: Re: ServletRequestAware



As far as I know, the only way is asking HttpServletRequest, and thus,
implementing ServletRequestAware.

If you want to keep HttpServletRequest code out of your actions,
consider implementing an interceptor, or even a raw servlet filter.

Alvaro.

On 9/3/07, stanlick <[EMAIL PROTECTED]> wrote:


I have an action that determines the requester IP address.  The action
implements ServletRequestAware, but I don't like it being all tangled up 
in

the Servlet API.  Is there a way to get the IP address another way.  The
RequestAware interface seems to map to only request attributes.

Thanks,
S
--
View this message in context: 
http://www.nabble.com/ServletRequestAware-tf4369669.html#a12454602

Sent from the Struts - User mailing list archive at Nabble.com.


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





--
Alvaro Sanchez-Mariscal Arnaiz
Java EE Architect & Instructor
[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]



Unable to Repopulate the select control once the validation failed

2007-09-02 Thread vamsi

Hi,

I am using struts validation frame work. if the validation fails I am 
returning to the same jsp page.

Here in this page there is some date is which was populated when the 
jsp page initially loaded.

when saving the data I am performing the validation if it fails  I am 
doing ing something like this

   \XXX.jsp
   \XXX.jsp

  if  I redirect the input action the data is getting populated but the 
error messages are not getting displayed

 Why it is heppening like is there anything to conifure im my application

regards

Vamsi



Re: Unsolved datepicker problem

2007-08-31 Thread vamsi
dojo scripts are getting loaded 
all the scripts are loading

no errors I checked in Mozilla error console
- Original Message - 
From: "Jeromy Evans" <[EMAIL PROTECTED]>

To: "Struts Users Mailing List" 
Sent: Thursday, August 30, 2007 10:50 AM
Subject: Re: Unsolved datepicker problem



Suggestions:
Confirm that the dojo javascipt is actually included in the html output
Use FireBug to examine if the requests to get the javascript files and 
images are working (and if not, why not)

Create a minimal test application and get it working first.

vamsi wrote:

Thanks for response,
I placed that one too.
still it is not displaying the datetimepicker.
I am using acegi security, and I have also some dependency on struts1.

- Original Message - From: "Andvar Woo" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" 
Sent: Wednesday, August 29, 2007 11:10 AM
Subject: Re: Unsolved datepicker problem



try to add  between  tags.

2007/8/29, vamsi <[EMAIL PROTECTED]>:


Hi all,

I posted this many times but still i don't have any response.
I am not asking solution what is the possible problem only.

My problem struts2 ajax based tags are not working in my application.
application was deployed on jboss.

regards
Vamsi





-
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: How format a string when it is Displayed?

2007-08-29 Thread vamsi

I think we can't format a String using bean:write
previously I searched for this but I didn't found any solution as it is not 
supporting any formatting for

Strings.
- Original Message - 
From: <[EMAIL PROTECTED]>

To: 
Sent: Wednesday, August 29, 2007 11:35 PM
Subject: How format a string when it is Displayed?



Hi,

I need help in formatting a String, when it is displayed.

Here is what i am doing:



It is stored asa continous unformatted String an hence displayed as
'X'. Now, I want my social security number to be displayed as
(XXX) - XX - .

How can i acheive this in Struts, without actually using my own custom Tag
libraries which do this formatting for me. If somebody can throw some
pointers, it woould help the cause.






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



Re: Struts and Weblogic 10.0 issue

2007-08-29 Thread vamsi

Can you look at this
"input" must be followed by either attribute specifications, ">" or "/>". 
at


- Original Message - 
From: "Ashish Kulkarni" <[EMAIL PROTECTED]>

To: "Struts Users Mailing List" 
Sent: Wednesday, August 29, 2007 7:18 PM
Subject: Re: Struts and Weblogic 10.0 issue



Hi
This is the error i get from weblogic console application

Error opening /jsp/app/install/Identity.jsp.
The source of this error is javax.servlet.ServletException:
javax.xml.transform.TransformerException:
javax.xml.transform.TransformerException:
com.sun.org.apache.xml.internal.utils.WrappedRuntimeException: Element 
type
"input" must be followed by either attribute specifications, ">" or "/>". 
at

weblogic.servlet.jsp.PageContextImpl.handlePageException(
PageContextImpl.java:418) at
jsp_servlet._jsp._app._install.__identity._jspService(__identity.java:163)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:34) at
weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(
StubSecurityHelper.java:226) at
weblogic.servlet.internal.StubSecurityHelper.invokeServlet(
StubSecurityHelper.java:124) at
weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
at 
weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)

at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(
RequestDispatcherImpl.java:503) at
weblogic.servlet.internal.RequestDispatcherImpl.include(
RequestDispatcherImpl.java:431) at
org.apache.beehive.netui.pageflow.scoping.internal.ScopedRequestDispatcher.include
(ScopedRequestDispatcher.java:119) at
com.bea.netuix.servlets.controls.content.JspContent.beginRender(
JspContent.java:541) at
com.bea.netuix.servlets.controls.content.NetuiContent.beginRender(
NetuiContent.java:363) at com.bea.netuix.nf.ControlLifecycle$7.visit(
ControlLifecycle.java:483) at
com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(
ControlTreeWalker.java:518) at
com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(
ControlTreeWalker.java:529) at
com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(
ControlTreeWalker.java:529) at
com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(
ControlTreeWalker.java:529) at
com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(
ControlTreeWalker.java:529) at
com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(
ControlTreeWalker.java:529) at com.bea.netuix.nf.ControlTreeWalker.walk(
ControlTreeWalker.java:220) at 
com.bea.netuix.nf.Lifecycle.processLifecycles





On 8/28/07, Paul Benedict <[EMAIL PROTECTED]> wrote:


Can you paste in the line of the JSP that is erring?

On 8/28/07, Ashish Kulkarni <[EMAIL PROTECTED]> wrote:
>
> Hi
> It seems that weblogic console application may have error installing
> application developed using struts, i was able to deploy the 
> application

> using command on dos
>
> Ashish
>
> On 8/28/07, Ashish Kulkarni <[EMAIL PROTECTED]> wrote:
> >
> > Hi
> > This is an existing application, which was running on websphere and
> > tomcat, and now have to installed on weblogic 10.0
> > So what is the work around, to get this application installed and
> running
> > on weblogic,
> > I got the error when installing this application on weblogic
> >
> > Ashish
> >
> > On 8/28/07, John Liptak <[EMAIL PROTECTED]> wrote:
> > >
> > >
> > > Weblogic 9+ includes struts with weblogic, so you may not be 
> > > running

> > > 1.2.6
> > > unless you have taken care to preferr your applications classes 
> > > over

> the
> > > standard version.  To read more, look at
> > >
http://e-docs.bea.com/wls/docs90/programming/classloading.html#1082452
> > >
> > > While there isn't 10 specific information on this page, the general
> > > struts
> > > support information is at
> > >
> > >
>
http://support.bea.com/application_content/product_portlets/support_patterns/wls/InvestigatingStrutsWithWebLogicServerPattern.html#Debugging_the_WebLogic_Classloader
> > >
> > > Another possibility is that wls 10 is using a different XML parser
> that
> > > is
> > > catching an error that was not caught before.
> > >
> > > It looks like you are getting the exception during install
> > > (correct?).  I
> > > would try turning off jsp pre-compilation for your application and
try
> > > and
> > > get the error at runtime, vs. application deployment.
> > >
> > > Other than that, can you show the input field that is causing the
> > > exception?
> > >
> > >
> > > Ashish Kulkarni-2 wrote:
> > > >
> > > > Hi
> > > > Has anybody run into problem installting struts based web
> application
> > > on
> > > > Weblogic 10.0?
> > > > I have a struts application using struts 1.2.6, which i am trying
to
> > > > install
> > > > on weblogic and i keep getting the following error
> > > > This application works fine in Websphere, tomcat, Sun
> > > >
> > > > Error opening /jsp/app/install/Identity.jsp.
> > > > The source of this error is javax.servlet.ServletException:
> > > > javax.xml.transform.TransformerException:
> > > > javax.xml.transform.Transfor

Re: Unsolved datepicker problem

2007-08-29 Thread vamsi

Thanks for response,
I placed that one too.
still it is not displaying the datetimepicker.
I am using acegi security, and I have also some dependency on struts1.

- Original Message - 
From: "Andvar Woo" <[EMAIL PROTECTED]>

To: "Struts Users Mailing List" 
Sent: Wednesday, August 29, 2007 11:10 AM
Subject: Re: Unsolved datepicker problem



try to add  between  tags.

2007/8/29, vamsi <[EMAIL PROTECTED]>:


Hi all,

I posted this many times but still i don't have any response.
I am not asking solution what is the possible problem only.

My problem struts2 ajax based tags are not working in my application.
application was deployed on jboss.

regards
Vamsi





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



Unsolved datepicker problem

2007-08-28 Thread vamsi
Hi all,

 I posted this many times but still i don't have any response.
I am not asking solution what is the possible problem only.

My problem struts2 ajax based tags are not working in my application.
application was deployed on jboss.

regards
Vamsi


Stack Overflow alert when using tabbed panel

2007-08-23 Thread Vamsi


 Hi all ,

I am getting stack overflow error while using tabbed panel and in my
application no ajax based tags are working , datetimepicker,autocompleter
etc..
 
Previously I wrote some example where they all worked ,
  
But they are failing miserably when they required for my live
project.

regards
Vamsi Krishna
-- 
View this message in context: 
http://www.nabble.com/Stack-Overflow-alert-when-using-tabbed-panel-tf4315972.html#a12289054
Sent from the Struts - User mailing list archive at Nabble.com.


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



XWorkConversion of Date from string

2007-08-22 Thread vamsi

Hi all,

In my aplication I need to String to Date, it is working only for 
MM/dd/ format only

I found strange that it is hardcode inside the XWorkConversion class.

Is there any other place where I can set this date format.

thanks to all

regards
Vamsi



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



Re: the icons of datatimepicker cannot be displayed

2007-08-22 Thread vamsi

I kept that one too.
that's why I said all the script files are getting loaded also.


maybe you forget  to add  between the  tag




2007/8/21, vamsi <[EMAIL PROTECTED]>:


I am facing some problem with datetimepicker
datetimepicker not showing up any thing on the browser(any browser)
But the all the dojo scripts are getting loaded everything is happening
Even the error console in FireFox browser is also clear without any error
is any specific reason for this I am using sitemesh and acegi security
framework and struts 2.08
regards
Vamsi
- Original Message -
From: "Andvar Woo" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" 
Sent: Tuesday, August 21, 2007 7:54 AM
Subject: Re: the icons of datatimepicker cannot be displayed


> Nobody encountered this problem?
> by the way,I use struts2.0.9. I type the path of the icon in the 
> address

> bar
> of IE,only got a Not found error ? Anyone knows why?
> Seriously need your help.
>
>
> 2007/8/20, Andvar Woo <[EMAIL PROTECTED]>:
>>
>> when I use , it works well except that  the icons 
>> of

>> that
>> component cannot be displyed.eg. select a date, Up ,Down
>> these icons do exist in the struts-core.jar. Why they cannot be
>> displayed?
>> Anyone knows? Thanks.
>>
>


-
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: the icons of datatimepicker cannot be displayed

2007-08-20 Thread vamsi

I am facing some problem with datetimepicker
datetimepicker not showing up any thing on the browser(any browser)
But the all the dojo scripts are getting loaded everything is happening
Even the error console in FireFox browser is also clear without any error
is any specific reason for this I am using sitemesh and acegi security 
framework and struts 2.08

regards
Vamsi
- Original Message - 
From: "Andvar Woo" <[EMAIL PROTECTED]>

To: "Struts Users Mailing List" 
Sent: Tuesday, August 21, 2007 7:54 AM
Subject: Re: the icons of datatimepicker cannot be displayed



Nobody encountered this problem?
by the way,I use struts2.0.9. I type the path of the icon in the address 
bar

of IE,only got a Not found error ? Anyone knows why?
Seriously need your help.


2007/8/20, Andvar Woo <[EMAIL PROTECTED]>:


when I use , it works well except that  the icons of
that
component cannot be displyed.eg. select a date, Up ,Down
these icons do exist in the struts-core.jar. Why they cannot be 
displayed?

Anyone knows? Thanks.






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



Re: Autowiring multiple Items of same object

2007-08-20 Thread vamsi

Harper,

  For display the details over a Iterator is not my problem.
  It works fine for me
  The problem with assigning values to the same List
  U explained something like this
 



here irs in the sense it is a list in my action class which give a ir 
object
if I want to reassign some other value to the same "ir" object how to do 
that


Got my problem

regards
Vamsi



- Original Message - 
From: "Laurie Harper" <[EMAIL PROTECTED]>

To: 
Sent: Sunday, August 19, 2007 4:23 AM
Subject: Re: Autowiring multiple Items of same object


I'm not sure I understand the problem, but here are some comments that 
might help to clarify:


Vamsi wrote:


 Hi all,

  I will explain my problem scenario.
  I have a objects
  
   



You're instructing the s:iterator tag to iterate over a collection names 
'advisors'. Do you have a getAdvisors() method accessible through the 
value stack? What does it return?


For each element in the collection named 'advisors', you are then 
attempting to reference properties named 'irs.a' and 'irs.b'. So, 
translating (approximately) into Java, the above markup is roughly 
equivalent to:


for (SomeType item : getAdvisors()) {
out.writeln(item.getIrs().getA());
out.writeln(item.getIrs().getB());
}


  in My action class there is I am declaring like this
   List irs;


This doesn't match up with your markup. Perhaps what you intended to do 
was something more like








  Can anybody provide solutions for this one or references


http://struts.apache.org/2.0.9/docs/iterator.html
http://struts.apache.org/2.0.9/docs/property.html
http://struts.apache.org/2.0.9/docs/tag-syntax.html

If that doesn't clarify things, try re-posting with a more complete 
description of the code and markup you're using.


L.


-
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: Fw: Date problem

2007-08-17 Thread vamsi


Mikheev,

   But it is saying Paramtert interceptor unable to convert the 
java.lang.String to Date and giving an Illegalargumentexception


  any information why it is saying like that

regards
Vamsi




- Original Message - 
From: "Oleg Mikheev" <[EMAIL PROTECTED]>

To: "Struts Users Mailing List" 
Sent: Friday, August 17, 2007 2:09 AM
Subject: Re: Fw: Date problem



vamsi wrote:

 I have some problem with date conversion.
 Is struts automatically converts String in to date format?
if the answer is YES How to do that



http://struts.apache.org/2.x/docs/type-conversion.html

XWork will automatically handle the most common type conversion for you.

You don't have to do anything to do that.

Default conversion for date is SHORT format, to override - write your
own converter.

Oleg

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



Autowiring multiple Items of same object

2007-08-17 Thread Vamsi


 Hi all,

  I will explain my problem scenario.
  I have a objects
  
   

  

  in My action class there is I am declaring like this
   List irs;
   

  Can anybody provide solutions for this one or references

   Thank ful to everyone who responded.
  if no solutions I have to go back to the traditional way reading
using request object
regards
Vamsi krishna  

   
-- 
View this message in context: 
http://www.nabble.com/Autowiring-multiple-Items-of-same-object-tf4286621.html#a12202369
Sent from the Struts - User mailing list archive at Nabble.com.


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



Fw: Date problem

2007-08-16 Thread vamsi


Hi all,

 I have some problem with date conversion.

 Is struts automatically converts String in to date format?

if the answer is YES How to do that

regards
Vamsi Krishna



 

Date problem

2007-08-16 Thread vamsi
Hi all,

 I have some problem with date conversion.

 Is struts automatically converts String in to date format?

if the answer is YES How to do that

regards
Vamsi Krishna

 

 

Re: How to use JFreeChartPlugin in tag

2007-08-05 Thread vamsi

Is that  escaping the output ?
Can u post that weird characters.

- Original Message - 
From: "Struts2 Fan" <[EMAIL PROTECTED]>

To: 
Sent: Friday, August 03, 2007 1:20 PM
Subject: How to use JFreeChartPlugin in  tag




Hi all,

I am trying to put a JFreeChart in a  tag

---jsp file---
...


   Initial Content
...
---eof---

/TestChart.html displays correctly but when I try to put it in a  
tag

it displays weird characters.
http://www.nabble.com/file/p11978932/message.jpg

Any thoughts?
--
View this message in context: 
http://www.nabble.com/How-to-use-JFreeChartPlugin-in-%3Cs%3Adiv%3E-tag-tf4211109.html#a11978932

Sent from the Struts - User mailing list archive at Nabble.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]



Re: [S1]minipulate output of

2007-08-02 Thread vamsi
I think we can't specify the string format using bean write may u can handle 
this thing using CSS
- Original Message - 
From: "Alexander Jede" <[EMAIL PROTECTED]>

To: 
Sent: Thursday, August 02, 2007 2:22 PM
Subject: [S1]minipulate output of 



Hallo list,
I have an ActionForm with an attribute (String) to print the value of
this attribute I use .
The problem is the String could have small and capital letters but I
would like to print it always the same. For example always with capital
letters.
Exists a way to do this with struts or have I to write my own Tag to do
this?

Thanks
Alex



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



Problem with server side validation

2007-08-01 Thread Vamsi

Hi all,

  I am doing validations using struts2 validation framework.
Validations(Server-side validations) are working fine but my problem is
error messages are not getting displayed.when I am doing client-side
validations messages were getting displayed but the samething was not
working with server side validations

More Info on this : I am not redirecting the result it's a normal result
(Not using type="redirect" or "redirect-action")

All inputs are welcome and thankful to everyone 

regards
Vamsi Krishna

     
regards

Vamsi Krishna

-- 
View this message in context: 
http://www.nabble.com/Problem-with-server-side-validation-tf4204157.html#a11958534
Sent from the Struts - User mailing list archive at Nabble.com.


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



Problem with radio button for one default selection

2007-07-25 Thread Vamsi



Hi all,

 I have some requirement like this I need to display a group of
radio buttons where one them is defautly checked.

 Struts 2 ui componant display all the radio buttons without any
difficulty but my problem is I am not able to make the default selection.

 is there anything to make one of the radio button deafultly
selected.

 I found strange that for a checkbox there are two componants
like checkbox and checkboxlist
why can't we have something simillar to this for radio button,so that it
will more flexible for users when some has the same kind of requirement.
  
  if I am missing anything in my learning please refer some
links regarding radio button only to solve the above specified problem.
   
  thanks for all responses 
regards
Vamsi krishna

 




-- 
View this message in context: 
http://www.nabble.com/Problem-with-radio-button-for-one-default-selection-tf4142369.html#a11783193
Sent from the Struts - User mailing list archive at Nabble.com.


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



Re: Too many open files

2007-05-11 Thread Vamsi Gmail!

Hi
we also came across this problem when dealing with reading and wrting into
files
it is not witj tomcat or struts or any other thing it is problem with the
way your app developed

make sure that your are closing the files once you done with that file


regards
Vamsi

On 5/11/07, Jon Wynacht <[EMAIL PROTECTED]> wrote:


I'm working on that now, trying to get things to break.

On May 9, 2007, at 6:51 AM, Mike Baroukh wrote:

> > Would I look for things that are related to Tomcat/MySQL/Struts?
> I only
> > see about 20 items listed, none of which have anything to do with
> my app.
>
> If your application open too many files you would see it.
> lsof list every files, tcp connection included.
>
> Can you reproduce easyly the error ?
>
> Mike
>
>
> Jon Wynacht a écrit :
>> Would I look for things that are related to Tomcat/MySQL/Struts? I
>> only see about 20 items listed, none of which have anything to do
>> with my app.
>> Jon
>> On May 7, 2007, at 6:18 AM, Mike Baroukh wrote:
>>>
>>>
>>> Hi.
>>>
>>> If you are runnig on unix, couldn't you do something like
>>> lsof -p 
>>> to list wich files are actually opened by your app ?
>>> It may help to find wich part open so many files ...
>>>
>>>
>>> From my experience, each times I had this problem, it was because
>>> of Lucene ...
>>>
>>> Mike
>>>
>>>
>>> Jon Wynacht a écrit :
>>>> Whoops, sorry. 1.5
>>>> On May 6, 2007, at 3:27 PM, Martin Gainty wrote:
>>>>> JRE/JDK version???
>>>>> M--
>>>>> This email message and any files transmitted with it contain
>>>>> confidential
>>>>> information intended only for the person(s) to whom this email
>>>>> message is
>>>>> addressed.  If you have received this email message in error,
>>>>> please notify
>>>>> the sender immediately by telephone or email and destroy the
>>>>> original
>>>>> message without making a copy.  Thank you.
>>>>>
>>>>> - Original Message - From: "Jon Wynacht"
>>>>> <[EMAIL PROTECTED]>
>>>>> To: "Struts Users Mailing List" 
>>>>> Sent: Sunday, May 06, 2007 6:17 PM
>>>>> Subject: Too many open files
>>>>>
>>>>>
>>>>>> Hi,
>>>>>> I've got an app that, when it gets heavy usage, often dies
>>>>>> with this  message:
>>>>>> May 5, 2007 5:38:36 PM org.apache.catalina.core.StandardServer
>>>>>> await
>>>>>> SEVERE: StandardServer.await: accept:
>>>>>> java.net.SocketException: Too many open files
>>>>>> I've done some research and came across a number of articles
>>>>>> like this:
>>>>>> http://mail-archives.apache.org/mod_mbox/tomcat-users/
>>>>>> 200502.mbox/%
>>>>>> [EMAIL PROTECTED]
>>>>>> %3E
>>>>>> I had our sysadmin bump the max files open from 40960 to 81920
>>>>>> but  I'm still seeing the error.
>>>>>> Any advice as to how best track this down...should I start
>>>>>> with code  or database stuff? I'm running Struts 1.3.5 with
>>>>>> MySQL.
>>>>>> Cheers and thanks in advance,
>>>>>> Jon
>>>>>> Jon Wynacht
>>>>>> [EMAIL PROTECTED]
>>>>>> http://www.objectevolution.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]
>>>> Jon Wynacht
>>>> [EMAIL PROTECTED]
>>>> http://www.objectevolution.com
>>>> ---
>>>> --
>>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>
>>> --
>>> Mike Baroukh
>>>
>>> ---
>>> Cardiweb  - 31 Rue de Mogador Paris IXeme
>>> 06 63 57 27 22 - 01 53 21 82 63 - Jabber: [EMAIL PROTECTED]
>>> http://www.cardiweb.com
>>> ---
>>>
>>> 
>>> -
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>> Jon Wynacht
>> [EMAIL PROTECTED]
>> http://www.objectevolution.com
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>
> --
>
> Mike Baroukh
>
> ---
> Cardiweb  - 31 Rue de Mogador Paris IXeme
> 06 63 57 27 22 - 01 53 21 82 63 - Jabber: [EMAIL PROTECTED]
> http://www.cardiweb.com
> ---
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

Jon Wynacht
[EMAIL PROTECTED]
http://www.objectevolution.com



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




Regarding getting resource from external url

2007-05-10 Thread Vamsi Gmail!

Hi,

  I have a requirement where I have to hit the external
url and get the response and display it on the browser ,this can be done
using httpclient but my requirement is I am using a proxy pass in
apache.when I am make a request to the url that should be proxy passed is
working when I am requesting through browser a apache handles that one it
understands it should pass to some other url,but it is not working when I am
including the that page in other jsp page as struts handling it doesnot know
where to forward the request.Is there anything like this in struts that will
fetch the content from external site and display it on the browser

Thanks
Vamsi