Re: HELP, creating my own validation

2007-03-28 Thread Prithivirajan Dhamodharan

Can you make sure that class file of ValidationUtil resides in the classpath
of your application ...

It usually bundled as jar  file.

Prithvi

On 3/29/07, Niall Pemberton <[EMAIL PROTECTED]> wrote:


On 3/28/07, Dwight Galloway <[EMAIL PROTECTED]> wrote:
> here is what I have inside my struts, I guess I am not sure what I must
do inside of the struts config for the validation, but I am using version
1.0 with the config at 1.1.dtd, I inherited this system and I really know
very little about struts, thank you for your help...

OK I was more wondering what you have configured for the
ValidatorPlugIn - should be a  element in your struts config.

Also what you say about versions is confusing - can you be explicit
about the Struts version and the Commons Validator version you are
using. For example "the config at 1.1.dtd" doesn't tell me whether
you're referring to the Struts dtd or the Commons Valdiator dtd?

Niall

> 
>  name="cycleEditForm" scope="request"
parameter="getCycle" validate="false">
> 
> 
> 
>  name="cycleEditForm" scope="request"
parameter="saveCycle" validate="false"
> input="/cycle/edit.do">
> 
> 
> 
>  name="cycleEditForm" scope="request"
parameter="getAssignedServices" validate="false">
> 
> 
>  name="cycleEditForm" scope="session"
parameter="searchCycles" validate="false">
> 
> 
> 
>
> 
>  name="cycleEditForm" scope="session"
parameter="searchCycles" validate="false">
> 
> 
> 
>
> >>> "Niall Pemberton" <[EMAIL PROTECTED]> 3/28/2007 2:53 PM >>>
> I can't see anything wrong with what you have here. Can you show us
> how you have configured Struts to pick up your custom validation rules
> and also say what version of Struts and what version of Commons
> Validator you are using
>
> Niall
>
> On 3/28/07, Dwight Galloway <[EMAIL PROTECTED]> wrote:
> > I am having troubles getting my own validator to work, I wonder if it
is the classpath where I am pointing to my Class with? I am trying to create
a dateRange validation to determin if the date falls between two dates or
not. This is what I have in my validation.xml
> >
> > >   
> > >   
> > >
datePatternMM/dd/
> > >
minDate07/01/2003
> >
>
maxDate06/30/2004
> > >   
> >
> > > this is what I have in my validator-rules
> >
> > >> >   classname="gov.utah.dhs.pats.util.ValidationUtil"
> > >method="validateDateRange"
> > >  methodParams="java.lang.Object,
> > >   org.apache.commons.validator.ValidatorAction,
> > >   org.apache.commons.validator.Field,
> > >   org.apache.struts.action.ActionMessages,
> > >   javax.servlet.http.HttpServletRequest"
> > >   depends=""
> > >   msg="errors.dateRange"/>
> >
> > >  and my class looks like this, notice I have a println at the start
of my program, it is like it is completely ignoring my class, I am clueless
how to test this and to see what is really happening, I don't have much
experience with struts so please any suggestions would help,thank you...
> >
> > > package gov.utah.dhs.pats.util;
> > > import java.text.SimpleDateFormat;
> > > import java.util.Date;
> > > import javax.servlet.http.HttpServletRequest;
> > > import org.apache.commons.validator.Field;
> > > import org.apache.commons.validator.ValidatorAction;
> > > import org.apache.commons.validator.util.ValidatorUtils;
> > > import org.apache.struts.action.ActionMessages;
> > > import org.apache.struts.validator.Resources;
> > > public class ValidationUtil {
> > > public static final String DEFAULT_FORM_DATE_PATTERN =
"M/dd/";
> > > public static final Date DEFAULT_MIN_DATE =
getDefaultMinDate();
> > > public static final Date DEFAULT_MAX_DATE =
getDefaultMaxDate();
> > > public static boolean validateDateRange(Object bean,
ValidatorAction va, Field field, ActionMessages msg, HttpServletRequest
request) {
> > >   //if we're not properly configured to parse dates,
> > >   //all date validation will fail
> > >   System.out.println("!INSIDE THE VALIDATION
UTILITY the FIELD.. " + field );
> > >   if (DEFAULT_MIN_DATE == null || DEFAULT_MAX_DATE ==
null) return false;
> > >   try {
> > > String value = ValidatorUtils.getValueAsString(bean,
field.getProperty());
> > > Date date = getDate(value,
DEFAULT_FORM_DATE_PATTERN);

Help: Need of Structs aplication

2007-03-28 Thread Sreedhar Murthy
HI friends iam new member to the struts.apache.org list. I need a small 
application using structs which consists of login page and registeration 
page(like online student registration). can anyone help me for this application.
   
  Regards,
  sreedhar murthy
  [EMAIL PROTECTED]

 
-
Sucker-punch spam with award-winning protection.
 Try the free Yahoo! Mail Beta.

Help: Need of Structs aplication

2007-03-28 Thread Sreedhar Murthy
HI friends iam new member to the struts.apache.org list. I need a small 
application which consists of login page and registeration page(like online 
student registration). can anyone help me for this application.
   
  Regards,
  sreedhar murthy
  [EMAIL PROTECTED]

 
-
 Get your own web address.
 Have a HUGE year through Yahoo! Small Business.

Struts 1.2 validation not working!

2007-03-28 Thread davout

I've added Struts validation to my application and I'm getting an exception
when I try to use the 'required' validation type. 

Here's the code... 

The 'validation.xml' file... 

[Code] 
  
  
  
  

   
  
 
  
   

  
 [/code]

the start of the 'validation-rules.xml' file... 

[Code] 

  
  
 
  

 [/code]

the related action class... 

[Code] 
 public class ImpactNegationEditAction extends AbstractImpactNegationAction 
   implements EntityIDs, ImpactNegationIDs { 
  
public void save_onClick(FormActionContext aCtx) { 
   ImpactNegationEditForm aForm = (ImpactNegationEditForm) aCtx.form(); 
   aCtx.addErrors(aForm.validate(aCtx.mapping(),aCtx.request())); 
   if (aCtx.hasErrors() == false) { 
  // is add? 
  if (aForm.getImpactNegationIDInt() == ID_UNASSIGNED) { 
 // verify title is unique 
 try { 
ImpactNegation anOther =
getManager(aCtx).findByTitle(aForm.getTitle()); 
if (anOther != null) { 
  
addFieldError(aCtx,"title","error.duplicateField","Title"); 
} 
[/code] 

the related form... 

[Code]
 
 public abstract class AbstractSorForm extends FWValidatorForm { 
 } 
  
 public class ImpactNegationEditForm extends AbstractSorForm { 

private static final long serialVersionUID = 3604637580339030809L; 

private String fImpactNegationID; 
private String fTitle; 
private String fDesc; 
private String fDisplayOrder; 
private String fPercent; 
private String fCaptionDetail = null; 
private String fFormTitle = null; 
  
public ImpactNegationEditForm() { 
   // TODO Auto-generated constructor stub 
} 

public String getDesc() { 
   return fDesc; 
} 
  
public void setDesc(String aDesc) { 
   fDesc = aDesc; 
} 
  
public String getDisplayOrder() { 
   return fDisplayOrder; 
} 
public int getDisplayOrderInt() { 
   return Integer.parseInt(fDisplayOrder); 
} 
  
public void setDisplayOrder(String aDisplayOrder) { 
   fDisplayOrder = aDisplayOrder; 
} 
  
public String getImpactNegationID() { 
   return fImpactNegationID; 
} 
  
public int getImpactNegationIDInt() { 
   return Integer.parseInt(fImpactNegationID); 
} 
  
public void setImpactNegationID(String aId) { 
   fImpactNegationID = aId; 
} 
  
public String getPercent() { 
   return fPercent; 
} 
public double getPercentDouble() { 
   return Double.parseDouble(fPercent); 
} 
  
public void setPercent(String aPercent) { 
   fPercent = aPercent; 
} 
  
public String getTitle() { 
   return fTitle; 
} 
  
public void setTitle(String aTitle) { 
   fTitle = aTitle; 
} 
  
public String getCaptionDetail() { 
   return fCaptionDetail; 
} 
  
public void setCaptionDetail(String aCaptionDetail) { 
   fCaptionDetail = aCaptionDetail; 
} 
  
public String getFormTitle() { 
   return fFormTitle; 
} 
  
public void setFormTitle(String aFormTitle) { 
   fFormTitle = aFormTitle; 
} 
 } 
[/code]  

the JSP body file... 

[Code]

  
  
  
  
 
  
 
 
  
 




  





  
 
  
  
 
[/code]

the exception thrown...

[Code:]

the exception thrown when the form is validated... 
 ERROR: 18:54:18: org.apache.struts.validator.ValidatorForm:
org.apache.struts.validator.FieldChecks.validateRequired(java.lang.Object,
org.apache.commons.validator.ValidatorAction,
org.apache.commons.validator.Field, org.apache.struts.action.ActionMessages,
org.apache.commons.validator.Validator,
javax.servlet.http.HttpServletRequest) 
 org.apache.commons.validator.ValidatorException:
org.apache.struts.validator.FieldChecks.validateRequired(java.lang.Object,
org.apache.commons.validator.ValidatorAction,
org.apache.commons.validator.Field, org.apache.struts.action.ActionMessages,
org.apache.commons.validator.Validator,
javax.servlet.http.HttpServletRequest) 
   at
org.apache.commons.validator.ValidatorAction.loadValidationMethod(ValidatorAction.java:627)
 
   at
org.apache.commons.validator.ValidatorAction.executeValidationMethod(ValidatorAction.java:557)
 
   at org.apache.commons.validator.Field.validateForRule(Field.java:811) 
   at org.apache.commons.validator.Field.validate(Field.java:890) 
   at org.apache.commons.validator.Form.validate(Form.java:174) 
   at org.apache.commons.validator.Validator.validate(Validator.java:367) 
   at
org.apache.struts.validator.ValidatorForm.validate(ValidatorForm.java:112) 
   at
com.eis.sor.struts.action.impactnegation.ImpactNegationEditAction.save_onClick(ImpactNegationEditAction.java:84)
 
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
   at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccesso

Error loading actions in appfuse

2007-03-28 Thread appfused

I keep getting the following message when i try to access various links on
the page i created after deploying the struts2 basic achetype. Any ideas
what i might be doing wrong? 

There is no Action mapped for namespace / and action name summary. - [unknow 
n location] 

in the struts.xml, i have 

 
/WEB-INF/pages/summaryList.jsp 
/WEB-INF/pages/summarylList.jsp 
/WEB-INF/pages/mainMenu.jsp 
 
In the applicationContext.xml i have 

 
 
 

-- 
View this message in context: 
http://www.nabble.com/Error-loading-actions-in-appfuse-tf3484509.html#a9727331
Sent from the Struts - User mailing list archive at Nabble.com.


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



Suggestion about Type Conversion Error Handling!!!

2007-03-28 Thread joey

 I hate the default type conversion error report message which is Invalid
field value for field {1}.
after I read the document,I find there is two ways  to override it:
1.define the generic i18n key xwork.default.invalid.fieldvalue in your
global i18n resource bundle.
2.adding an i18n key associated with just your action (Action.properties)
using the pattern invalid.fieldvalue.xxx, where xxx is the field name.
 The first method is a global method which is more easier,but in the
default text I can't use ognl because it's loaded by ResourceBundle
and  formated with field name.I thought the error message  only with field
name is not enough.I always define an i18n key using the pattern field name.
 I thought it would be more flexible the text of the
xwork.default.invalid.fieldvalue key loaded by an ognl expression.


Re: HELP, creating my own validation

2007-03-28 Thread Niall Pemberton

On 3/28/07, Dwight Galloway <[EMAIL PROTECTED]> wrote:

here is what I have inside my struts, I guess I am not sure what I must do 
inside of the struts config for the validation, but I am using version 1.0 with 
the config at 1.1.dtd, I inherited this system and I really know very little 
about struts, thank you for your help...


OK I was more wondering what you have configured for the
ValidatorPlugIn - should be a  element in your struts config.

Also what you say about versions is confusing - can you be explicit
about the Struts version and the Commons Validator version you are
using. For example "the config at 1.1.dtd" doesn't tell me whether
you're referring to the Struts dtd or the Commons Valdiator dtd?

Niall

























>>> "Niall Pemberton" <[EMAIL PROTECTED]> 3/28/2007 2:53 PM >>>
I can't see anything wrong with what you have here. Can you show us
how you have configured Struts to pick up your custom validation rules
and also say what version of Struts and what version of Commons
Validator you are using

Niall

On 3/28/07, Dwight Galloway <[EMAIL PROTECTED]> wrote:
> I am having troubles getting my own validator to work, I wonder if it is the 
classpath where I am pointing to my Class with? I am trying to create a dateRange 
validation to determin if the date falls between two dates or not. This is what I 
have in my validation.xml
>
> >   
> >   
> >   
datePatternMM/dd/
> >   
minDate07/01/2003
> >
maxDate06/30/2004
> >   
>
> > this is what I have in my validator-rules
>
> >>   classname="gov.utah.dhs.pats.util.ValidationUtil"
> >method="validateDateRange"
> >  methodParams="java.lang.Object,
> >   org.apache.commons.validator.ValidatorAction,
> >   org.apache.commons.validator.Field,
> >   org.apache.struts.action.ActionMessages,
> >   javax.servlet.http.HttpServletRequest"
> >   depends=""
> >   msg="errors.dateRange"/>
>
> >  and my class looks like this, notice I have a println at the start of my 
program, it is like it is completely ignoring my class, I am clueless how to test 
this and to see what is really happening, I don't have much experience with struts so 
please any suggestions would help,thank you...
>
> > package gov.utah.dhs.pats.util;
> > import java.text.SimpleDateFormat;
> > import java.util.Date;
> > import javax.servlet.http.HttpServletRequest;
> > import org.apache.commons.validator.Field;
> > import org.apache.commons.validator.ValidatorAction;
> > import org.apache.commons.validator.util.ValidatorUtils;
> > import org.apache.struts.action.ActionMessages;
> > import org.apache.struts.validator.Resources;
> > public class ValidationUtil {
> > public static final String DEFAULT_FORM_DATE_PATTERN = "M/dd/";
> > public static final Date DEFAULT_MIN_DATE = getDefaultMinDate();
> > public static final Date DEFAULT_MAX_DATE = getDefaultMaxDate();
> > public static boolean validateDateRange(Object bean, 
ValidatorAction va, Field field, ActionMessages msg, HttpServletRequest request) {
> >   //if we're not properly configured to parse dates,
> >   //all date validation will fail
> >   System.out.println("!INSIDE THE VALIDATION UTILITY the 
FIELD.. " + field );
> >   if (DEFAULT_MIN_DATE == null || DEFAULT_MAX_DATE == null) 
return false;
> >   try {
> > String value = ValidatorUtils.getValueAsString(bean, 
field.getProperty());
> > Date date = getDate(value, DEFAULT_FORM_DATE_PATTERN);
> > Date minDate = getDate(field.getVarValue("minDate"),  
DEFAULT_FORM_DATE_PATTERN);
> > Date maxDate = getDate(field.getVarValue("maxDate"), 
DEFAULT_FORM_DATE_PATTERN);
> > if (date.compareTo(minDate) < 0 || date.compareTo(maxDate) 
> 0) {
> >   msg.add(field.getKey().toString(), 
Resources.getActionMessage(request, va, field));
> >   return false;
> > }
> > return true;
> >   }
> >   catch (Exception e) {
> > e.printStackTrace();
> > msg.add(field.getKey().toString(), 
Resources.getActionMessage(request, va, field));
> > return false;
> >   }
> > }
> >
> >   protected static Date getDate(String dateString, String pattern) {
> > Dat

Re: Struts and Zapatec

2007-03-28 Thread Martin Gainty
Please explain what you are seeing on screen and in the logs
M--
--- 
This e-mail message (including attachments, if any) is intended for the use of 
the individual or entity to which it is addressed and may contain information 
that is privileged, proprietary , confidential and exempt from disclosure. If 
you are not the intended recipient, you are notified that any dissemination, 
distribution or copying of this communication is strictly prohibited.
--- 
Le présent message électronique (y compris les pièces qui y sont annexées, le 
cas échéant) s'adresse au destinataire indiqué et peut contenir des 
renseignements de caractère privé ou confidentiel. Si vous n'êtes pas le 
destinataire de ce document, nous vous signalons qu'il est strictement interdit 
de le diffuser, de le distribuer ou de le reproduire.
- Original Message - 
From: "Ashuin Sharma Chamorro" <[EMAIL PROTECTED]>
To: 
Sent: Wednesday, March 28, 2007 6:02 PM
Subject: Struts and Zapatec


Is there some known issue integrating Zapatec Ajax Components with
struts 1.2.9 ?

It doesent seem to work properly.

 

 

 

Ashuin Sharma
Software Developer
Isthmus Inc.
The Costa Rica IT Outsourcing Company 
www.isthmusit.com http://www.isthmusit.com/>  
[EMAIL PROTECTED] 
Office +1 (506) 560-1600
Mobile +1 (506) 817-4059
Fax  +1 (506) 560-1610
San Jose, Costa Rica 

The information contained in this e-mail is privileged and confidential,
this information is intended only for the use of the individual or
entity to which it is addressed. If you are not the intended recipient,
you are hereby notified that any use, dissemination, distribution, copy
or taking action in reliance upon this email is strictly prohibited. If
you have received this e-mail in error, please immediately notify the
sender and then delete this e-mail in its entirety.


 



Re: [S2] JAAS & redirection

2007-03-28 Thread James Mitchell
I was getting the same error when trying to use a form (>) in a jsp without first going through an action in my app.


ActuallyI just fired up tomcat with the mailreader deployed.   
Going directly to the welcome jsp:


 http://localhost:8080/struts2-mailreader/Welcome.jsp



java.lang.NullPointerException
org.apache.struts2.views.jsp.TagUtils.getStack(TagUtils.java:58)
	org.apache.struts2.views.jsp.StrutsBodyTagSupport.getStack 
(StrutsBodyTagSupport.java:54)
	org.apache.struts2.views.jsp.ComponentTagSupport.doStartTag 
(ComponentTagSupport.java:49)

org.apache.jsp.Welcome_jsp._jspx_meth_s_text_0(Welcome_jsp.java:178)
...
...




I don't know if this is unique for Struts 2.0.6, but I can confirm  
that this happens in my app and in the mailreader.



--
James Mitchell


On Mar 28, 2007, at 3:18 PM, Pascal Lalonde wrote:


Hi,

   We are currently trying to update from webwork to struts 2.0.6,  
everything looks fine except one thing.


The application is deployed into JBoss 4.0.4 and JAAS is enabled  
into our web.xml configuration file. So when trying to access the  
secure namespace, it does its check and finds out that the user is  
not logged yet so its redirecting to our configured JSP, into this  
JSP, we have struts tags and we are applying a decorator.


With Webwork, it was working perfectly, but now, in Struts 2.0.6 we  
have the following stack.


Anyone knows what we are doing wrong ?

java.lang.NullPointerException
   at org.apache.struts2.views.jsp.TagUtils.getStack 
(TagUtils.java:58)
   at org.apache.struts2.views.jsp.StrutsBodyTagSupport.getStack 
(StrutsBodyTagSupport.java:54)
   at  
org.apache.struts2.views.jsp.ComponentTagSupport.doStartTag 
(ComponentTagSupport.java:49)
   at  
org.apache.jsp.WEB_002dINF.pages.security.LoginForm_jsp._jspx_meth_ww_ 
text_0(LoginForm_jsp.java:273)
   at  
org.apache.jsp.WEB_002dINF.pages.security.LoginForm_jsp._jspx_meth_pag 
e_applyDecorator_0(LoginForm_jsp.java:105)
   at  
org.apache.jsp.WEB_002dINF.pages.security.LoginForm_jsp._jspService 
(LoginForm_jsp.java:69)
   at org.apache.jasper.runtime.HttpJspBase.service 
(HttpJspBase.java:97)

   at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
   at org.apache.jasper.servlet.JspServletWrapper.service 
(JspServletWrapper.java:332)
   at org.apache.jasper.servlet.JspServlet.serviceJspFile 
(JspServlet.java:314)
   at org.apache.jasper.servlet.JspServlet.service 
(JspServlet.java:264)

   at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
   at  
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter 
(ApplicationFilterChain.java:252)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter 
(ApplicationFilterChain.java:173)
   at org.apache.catalina.core.ApplicationDispatcher.invoke 
(ApplicationDispatcher.java:672)
   at  
org.apache.catalina.core.ApplicationDispatcher.processRequest 
(ApplicationDispatcher.java:463)
   at org.apache.catalina.core.ApplicationDispatcher.doForward 
(ApplicationDispatcher.java:398)
   at org.apache.catalina.core.ApplicationDispatcher.forward 
(ApplicationDispatcher.java:301)
   at  
org.apache.catalina.authenticator.FormAuthenticator.forwardToLoginPage 
(FormAuthenticator.java:315)
   at  
org.apache.catalina.authenticator.FormAuthenticator.authenticate 
(FormAuthenticator.java:243)
   at org.apache.catalina.authenticator.AuthenticatorBase.invoke 
(AuthenticatorBase.java:490)
   at org.jboss.web.tomcat.security.JaccContextValve.invoke 
(JaccContextValve.java:74)
   at org.apache.catalina.core.StandardHostValve.invoke 
(StandardHostValve.java:126)
   at org.apache.catalina.valves.ErrorReportValve.invoke 
(ErrorReportValve.java:105)
   at org.apache.catalina.core.StandardEngineValve.invoke 
(StandardEngineValve.java:107)
   at org.apache.catalina.connector.CoyoteAdapter.service 
(CoyoteAdapter.java:148)
   at org.apache.coyote.http11.Http11Processor.process 
(Http11Processor.java:869)
   at org.apache.coyote.http11.Http11BaseProtocol 
$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java: 
664)
   at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket 
(PoolTcpEndpoint.java:527)
   at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run 
(MasterSlaveWorkerThread.java:112)

   at java.lang.Thread.run(Thread.java:595)
15:01:08,937 WARN  [FormAuthenticator] Unexpected error forwarding  
to login page
org.apache.jasper.JasperException: Exception in JSP: /WEB-INF/pages/ 
security/LoginForm.jsp:8


5:   
6:   
7: 
8:   
9: 
10:   
11:   


Stacktrace:
   at  
org.apache.jasper.servlet.JspServletWrapper.handleJspException 
(JspServletWrapper.java:504)
   at org.apache.jasper.servlet.JspServletWrapper.service 
(JspServletWrapper.java:393)
   at org.apache.jasper.servlet.JspServlet.serviceJspFile 
(JspServlet.java:314)
   at org.apache.jasper.servlet.Js

Re: HELP, creating my own validation

2007-03-28 Thread Dwight Galloway
here is what I have inside my struts, I guess I am not sure what I must do 
inside of the struts config for the validation, but I am using version 1.0 with 
the config at 1.1.dtd, I inherited this system and I really know very little 
about struts, thank you for your help...
























>>> "Niall Pemberton" <[EMAIL PROTECTED]> 3/28/2007 2:53 PM >>>
I can't see anything wrong with what you have here. Can you show us
how you have configured Struts to pick up your custom validation rules
and also say what version of Struts and what version of Commons
Validator you are using

Niall

On 3/28/07, Dwight Galloway <[EMAIL PROTECTED]> wrote:
> I am having troubles getting my own validator to work, I wonder if it is the 
> classpath where I am pointing to my Class with? I am trying to create a 
> dateRange validation to determin if the date falls between two dates or not. 
> This is what I have in my validation.xml
>
> >   
> >   
> >   
> > datePatternMM/dd/
> >   
> > minDate07/01/2003
> >
> > maxDate06/30/2004
> >   
>
> > this is what I have in my validator-rules
>
> >>   classname="gov.utah.dhs.pats.util.ValidationUtil"
> >method="validateDateRange"
> >  methodParams="java.lang.Object,
> >   org.apache.commons.validator.ValidatorAction,
> >   org.apache.commons.validator.Field,
> >   org.apache.struts.action.ActionMessages,
> >   javax.servlet.http.HttpServletRequest"
> >   depends=""
> >   msg="errors.dateRange"/>
>
> >  and my class looks like this, notice I have a println at the start of my 
> > program, it is like it is completely ignoring my class, I am clueless how 
> > to test this and to see what is really happening, I don't have much 
> > experience with struts so please any suggestions would help,thank you...
>
> > package gov.utah.dhs.pats.util;
> > import java.text.SimpleDateFormat;
> > import java.util.Date;
> > import javax.servlet.http.HttpServletRequest;
> > import org.apache.commons.validator.Field;
> > import org.apache.commons.validator.ValidatorAction;
> > import org.apache.commons.validator.util.ValidatorUtils;
> > import org.apache.struts.action.ActionMessages;
> > import org.apache.struts.validator.Resources;
> > public class ValidationUtil {
> > public static final String DEFAULT_FORM_DATE_PATTERN = "M/dd/";
> > public static final Date DEFAULT_MIN_DATE = getDefaultMinDate();
> > public static final Date DEFAULT_MAX_DATE = getDefaultMaxDate();
> > public static boolean validateDateRange(Object bean, 
> > ValidatorAction va, Field field, ActionMessages msg, HttpServletRequest 
> > request) {
> >   //if we're not properly configured to parse dates,
> >   //all date validation will fail
> >   System.out.println("!INSIDE THE VALIDATION 
> > UTILITY the FIELD.. " + field );
> >   if (DEFAULT_MIN_DATE == null || DEFAULT_MAX_DATE == null) 
> > return false;
> >   try {
> > String value = ValidatorUtils.getValueAsString(bean, 
> > field.getProperty());
> > Date date = getDate(value, DEFAULT_FORM_DATE_PATTERN);
> > Date minDate = getDate(field.getVarValue("minDate"),  
> > DEFAULT_FORM_DATE_PATTERN);
> > Date maxDate = getDate(field.getVarValue("maxDate"), 
> > DEFAULT_FORM_DATE_PATTERN);
> > if (date.compareTo(minDate) < 0 || date.compareTo(maxDate) 
> > > 0) {
> >   msg.add(field.getKey().toString(), 
> > Resources.getActionMessage(request, va, field));
> >   return false;
> > }
> > return true;
> >   }
> >   catch (Exception e) {
> > e.printStackTrace();
> > msg.add(field.getKey().toString(), 
> > Resources.getActionMessage(request, va, field));
> > return false;
> >   }
> > }
> >
> >   protected static Date getDate(String dateString, String pattern) {
> > Date date = null;
> > try {
> >   SimpleDateFormat df = new SimpleDateFormat(pattern);
> >   date = df.parse(dateString);
> > }
> > catch (Exception e) {
> >   e.printStackTrace();
> > }
> > return date;
> >   }
> >   protected static Date getDefaultMinDate() {
> > return getDate("01/01/1900",

RE: File upload fails first time, then works after page reload

2007-03-28 Thread Kelly Morrison
I really don't know if I'm using NTML Authentication: how would I check
that?

I managed to work around my problem by getting the request, wrapping it
in a JakartaMultiPartRequest, parsing the request, and retrieving the
values to initialize my class. For some reason, the very first time I
try to submit, the multipart request doesn't get wrapped and my bean
doesn't get initialized properly, but it works after that. It's very
puzzling.

Thanks for the advice,
   kell

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 27, 2007 11:10 PM
To: user@struts.apache.org; user@struts.apache.org
Subject: RE: File upload fails first time, then works after page reload

Are you using the Java NTML Authentication method by any chance (before
reaching this page or on this page) ?
NTLM makes tomcat/struts behave erratically. Form posts dont work
(Intermittently).
 



From: Kelly Morrison [mailto:[EMAIL PROTECTED]
Sent: Wed 3/28/2007 12:30 AM
To: Struts Users Mailing List
Subject: File upload fails first time, then works after page reload



   I'm a Struts newbie having problems with the file upload in Struts
2.0.6 with Tomcat 6.0.10. When I select a file and submit it, the
setXXX(), setXXXContentType(), and setXXXFileName() methods in my action
aren't being called. However, if I then hit the Back button and try
again, it works and my setters are called.
  
   If I set a breakpoint in my upload action's execute() method, I can
see that the first time around, all the way down in the
CoyoteAdapter.service() method, the "file", "uploadContentType", and
"uploadFilename" values are all null (in the
request->attributes->table->...etc... data). After backing up and
resubmitting, the values are filled in appropriately, so it looks like
the problem is occurring long before my upload action is called.
  
   I looked through the open issues, but didn't see anything relevant. I
would appreciate any suggestions that might help me debug this.
  
   Thanks,
  kell
  
  

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



Struts and Zapatec

2007-03-28 Thread Ashuin Sharma Chamorro
Is there some known issue integrating Zapatec Ajax Components with
struts 1.2.9 ?

It doesent seem to work properly.

 

 

 

Ashuin Sharma
Software Developer
Isthmus Inc.
The Costa Rica IT Outsourcing Company 
www.isthmusit.com http://www.isthmusit.com/>  
[EMAIL PROTECTED] 
Office +1 (506) 560-1600
Mobile +1 (506) 817-4059
Fax  +1 (506) 560-1610
San Jose, Costa Rica 

The information contained in this e-mail is privileged and confidential,
this information is intended only for the use of the individual or
entity to which it is addressed. If you are not the intended recipient,
you are hereby notified that any use, dissemination, distribution, copy
or taking action in reliance upon this email is strictly prohibited. If
you have received this e-mail in error, please immediately notify the
sender and then delete this e-mail in its entirety.


 



Re: Struts2 and Struts1 comingling w/ Tiles

2007-03-28 Thread Ted Husted

On 3/27/07, Greg Reddin <[EMAIL PROTECTED]> wrote:

If I had to guess I would say that the problems are mostly due to the fact
that Struts 2 does not have support for Tiles 1.


Not directly, but people were using Tiles 1 with WebWork 2 before
Tiles 2 existed.

* http://raibledesigns.com/rd/entry/how_to_use_tiles_with

I expect the same technique Matt used with T1 and WW2 could be used to
use T1 with S2.

HTH, Ted


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



Re: Struts 1.3 and maven

2007-03-28 Thread Niall Pemberton

On 3/28/07, Manfred Wolff <[EMAIL PROTECTED]> wrote:


James.

I know it. But at least one question: Does anybody know why every little
peace of open source is hosted at ibiblio, but not the famous struts. I
really don't understand this.


It is (both 1.3.5 and 1.3.8 versions) - but in the maven 2 repo here:

http://www.ibiblio.org/maven2/org/apache/struts/

AFAIK http://www.ibiblio.org/maven is the maven 1 repo

Niall


Manne

James Mitchell wrote:
> Ya, I don't know off the top of my head, but keep in mind that you can
> tell Maven to use different repositories, so you can easily host your
> own maven repo on your intranet which I presume that all of the devs
> could see and may or may not be open to the public.
>
> HTH
>
> --
> James Mitchell
>
>
> On Mar 28, 2007, at 11:34 AM, Manfred Wolff wrote:
>
>>
>> James.
>>
>> For a project with one worker this is a suitable resolution. But in a
>> big project, with developers round the world (in this case Germany,
>> India and Tunesia) it is a good thing to have all needed common open
>> source jars held in the project.xml accessable via a public maven
>> repo as ibiblio. So no one must be careful using the right versions -
>> and no one has problem to get all jars that are needed. I wonder if
>> there is a server who serves this jars for public access as the
>> struts 1.2 jars (last is 1.2.9).
>>
>> Manne
>>
>>
>> James Mitchell wrote:
>>> Oh, you're right.  Sorry.
>>>
>>> Would you be able to install them locally and just go with that?  Or
>>> do you have to have a portable solution?
>>>
>>> If you can install them locally (on your machine), then drop them in
>>> the right place, and call it done.
>>>
>>> If you must have a portable solution, just drop them on a server
>>> that you (and whoever else needs them) can see when building the app.
>>>
>>> The maven repos are nothing more than a file system fronted with a
>>> web server.
>>>
>>>
>>> --James Mitchell
>>> The Ruby Roundup
>>> http://www.rubyroundup.com/
>>>
>>>
>>> On Mar 28, 2007, at 11:22 AM, Manfred Wolff wrote:
>>>

 Sorry, but there  - as in ibiblio - is no 1.3 Struts in the
 repository.

 Manne

 James Mitchell wrote:
> http://www.apache.org/dev/repository-faq.html
>
>
> --James Mitchell
> The Ruby Roundup
> http://www.rubyroundup.com/
>
>
> On Mar 28, 2007, at 10:55 AM, Manfred Wolff wrote:
>
>> Hi
>>
>> Can somebody tell me, why there is no jar file at
>> ibiblio.org/maven - and - where I can get the jars (via url), if
>> I want to make a maven 1 project with struts 1.3.8?
>>
>> Thanks
>> Manne


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



Re: HELP, creating my own validation

2007-03-28 Thread Niall Pemberton

I can't see anything wrong with what you have here. Can you show us
how you have configured Struts to pick up your custom validation rules
and also say what version of Struts and what version of Commons
Validator you are using

Niall

On 3/28/07, Dwight Galloway <[EMAIL PROTECTED]> wrote:

I am having troubles getting my own validator to work, I wonder if it is the 
classpath where I am pointing to my Class with? I am trying to create a 
dateRange validation to determin if the date falls between two dates or not. 
This is what I have in my validation.xml

>   
>   
>   
datePatternMM/dd/
>   
minDate07/01/2003
>
maxDate06/30/2004
>   

> this is what I have in my validator-rules

>  classname="gov.utah.dhs.pats.util.ValidationUtil"
>method="validateDateRange"
>  methodParams="java.lang.Object,
>   org.apache.commons.validator.ValidatorAction,
>   org.apache.commons.validator.Field,
>   org.apache.struts.action.ActionMessages,
>   javax.servlet.http.HttpServletRequest"
>   depends=""
>   msg="errors.dateRange"/>

>  and my class looks like this, notice I have a println at the start of my 
program, it is like it is completely ignoring my class, I am clueless how to test 
this and to see what is really happening, I don't have much experience with struts 
so please any suggestions would help,thank you...

> package gov.utah.dhs.pats.util;
> import java.text.SimpleDateFormat;
> import java.util.Date;
> import javax.servlet.http.HttpServletRequest;
> import org.apache.commons.validator.Field;
> import org.apache.commons.validator.ValidatorAction;
> import org.apache.commons.validator.util.ValidatorUtils;
> import org.apache.struts.action.ActionMessages;
> import org.apache.struts.validator.Resources;
> public class ValidationUtil {
> public static final String DEFAULT_FORM_DATE_PATTERN = "M/dd/";
> public static final Date DEFAULT_MIN_DATE = getDefaultMinDate();
> public static final Date DEFAULT_MAX_DATE = getDefaultMaxDate();
> public static boolean validateDateRange(Object bean, ValidatorAction 
va, Field field, ActionMessages msg, HttpServletRequest request) {
>   //if we're not properly configured to parse dates,
>   //all date validation will fail
>   System.out.println("!INSIDE THE VALIDATION UTILITY the 
FIELD.. " + field );
>   if (DEFAULT_MIN_DATE == null || DEFAULT_MAX_DATE == null) 
return false;
>   try {
> String value = ValidatorUtils.getValueAsString(bean, 
field.getProperty());
> Date date = getDate(value, DEFAULT_FORM_DATE_PATTERN);
> Date minDate = getDate(field.getVarValue("minDate"),  
DEFAULT_FORM_DATE_PATTERN);
> Date maxDate = getDate(field.getVarValue("maxDate"), 
DEFAULT_FORM_DATE_PATTERN);
> if (date.compareTo(minDate) < 0 || date.compareTo(maxDate) > 
0) {
>   msg.add(field.getKey().toString(), 
Resources.getActionMessage(request, va, field));
>   return false;
> }
> return true;
>   }
>   catch (Exception e) {
> e.printStackTrace();
> msg.add(field.getKey().toString(), 
Resources.getActionMessage(request, va, field));
> return false;
>   }
> }
>
>   protected static Date getDate(String dateString, String pattern) {
> Date date = null;
> try {
>   SimpleDateFormat df = new SimpleDateFormat(pattern);
>   date = df.parse(dateString);
> }
> catch (Exception e) {
>   e.printStackTrace();
> }
> return date;
>   }
>   protected static Date getDefaultMinDate() {
> return getDate("01/01/1900", DEFAULT_FORM_DATE_PATTERN);
>   }
>   protected static Date getDefaultMaxDate() {
> return getDate("12/31/2030", DEFAULT_FORM_DATE_PATTERN);
>   }
>   }

> if anyone can please just help guide me a bit on this I would appreciate it.


Dwight S. Galloway
(801) 538-4234
[EMAIL PROTECTED]
Department of Technology Services
MAKE IT A GREAT DAY!



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



Bug in a token-session interceptor ?

2007-03-28 Thread Gajbhe, Laxman \(Contractor\)
  

Hi,

 

 I've following action mapping for token-session interceptor:

 

 

 

 

workflow.action?primaryKey=${primaryKey}

/pages/commentNew.jsp

 

 

In the form I've:

 



 

 

 On double-posting I get following error:

 

 at
weblogic.servlet.internal.ServletRequestImpl.getContextPath(ServletReque
stImpl.java:531)

 at
javax.servlet.http.HttpServletRequestWrapper.getContextPath(HttpServletR
equestWrapper.java:183)

 at org.apache.struts2.RequestUtils.getServletPath(RequestUtils.java:46)

 at
org.apache.struts2.dispatcher.mapper.DefaultActionMapper.getUri(DefaultA
ctionMapper.java:443)

 at
org.apache.struts2.dispatcher.mapper.DefaultActionMapper.getMapping(Defa
ultActionMapper.java:267)

 

 

I tested with  interceptor that seem to be working fine but I
really need token-interceptor to work seamlessly without change in user
interface.

 

Thanks,

 

Laxman



Best Way to Secure Access to Downloadable Documents

2007-03-28 Thread Mike Duffy
Does anyone have any suggestions for the best methods to secure access to 
downloadable documents?

I could of course use container security to secure the document directories; 
however, for quotas,
tracking, rights, etc., I probably need to manage each download.

Is there an elegant solution in Struts?

Thx.

Mike


 

Don't get soaked.  Take a quick peek at the forecast
with the Yahoo! Search weather shortcut.
http://tools.search.yahoo.com/shortcuts/#loc_weather

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



Re: ETA for 2.0.7

2007-03-28 Thread Ted Husted

We found a problem with the i18n tag that we needs to be fixed in XW
first, so 2.0.7 will probably remain a test build. As soon as there is
a new XW, we can roll 2.0.8.

Anyone who is curious about such things should follow the dev list.

* http://www.nabble.com/Struts---Dev-f205.html

Everything is decided on the dev list, and no where else.

-Ted.

On 3/26/07, James Mitchell <[EMAIL PROTECTED]> wrote:

Probably later this week, but there's no guarantee that it will be GA
or even beta.



On Mar 26, 2007, at 9:13 PM, Rohit Dewan wrote:

> Would anyone be able to let me know the ETA for release 2.0.7?
>
> Thanks,
> Rohit


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



Re: Zero-config and annotations

2007-03-28 Thread Ted Husted

There's a patch, but I'm not using annotations myself, and some
feedback from a couple of other people who are using annotations would
be helpful.

* https://issues.apache.org/struts/browse/WW-1796

There is also suppose to be some work being done a ZC MailReader,
which should turn up some things.

-T.

On 3/28/07, doktora <[EMAIL PROTECTED]> wrote:


Zero-config will be quite some fun if we had some more annotations.

Are there any plans on adding Interceptor and onther annotations?

All we have now is org.apache.struts2.config.Result.

-- doktora


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



Re: Struts2 and Struts1 comingling w/ Tiles

2007-03-28 Thread Ray Clough
I use S1 with T1 using the standard tiles-defs.xml definition file.  I use S2 
with T2 using tiles.xml file.  It is true that if your jsp pages include the 
Tiles tags, then you would need probably need separate versions for T1 and T2.  
I generally only use Tiles in the Template file, and I do have 2 of them.  That 
is a very simple file, though, and duplicating it is easy.  If I feel the need 
for Tiles tags in the component jsp's, then I'd have to duplicate them also, 
which would definitely be a pain. 

Calling S1 actions from S2 or S2 from S1 just requires putting ".do" after the 
action (from S2) or ".action" (from S1).  I typically use the S2 tags in my new 
pages, and they work OK called from S1 actions.  I mostly use links, rather than 
buttons.  I have found that some fudging is necessary:


calling S2 action using S2 tags (use 'action' attribute):

   
   
   
   

calling S1 action using S2 tags (use 'value' attribute)

   
   
   
   

I have also used the jstl core tags for the url, but you need to put the suffix 
after the url.


calling S2 from S1, using S1 and jstl tags:

 
 
 
  key="rp.Xxxx" bundle="menu" />
   
calling S1 usign S1 tags:


 key="rp.Xxxx"

   bundle="menu" />

I hope this helps.

- Ray Clough
[EMAIL PROTECTED]



doktora wrote:

Ray,

Which definition files specifically do you need to be split?

One of the biggest problems I had (which I couldn't figure out) was mixing
jsps with T1 and T2. At compile time, all my JSPs wanted to be either
T1-compliant, or T2-compliant.

Even if I had figured this out, there is still a big problem because you
can't migrate some actions to S2 without duplicating jsps to be in T2 mode
because S1 actoins and S2 actions may be using those jsps simultaneously.
Which means a messy migration with a lot of (jsp) code replication.

I still stand firm -- until there is S1->T2 compatibility, migrating from
S1->S2 will be a nightmare, if Tiles are involved.

I also suspect that calling S2 actions from S1 would have to be hard-wired
with , as opposed to using html:link. Is that so?

doktora


Ray Clough wrote:
  
It definitely IS possible to comingle a S1 app using Tiles1 and an S2 
app using Tiles2 in the same WAR file.  But they have separate 
definition files.  You can call a S1 action from an S2 page and vice 
versa.  I know it is possible, because I'm doing it.  I believe that it 
is NOT possible to use S1 with T2 or S2 with T1 - at least not out of 
the box.


Ray Clough



Greg Reddin wrote:


On 3/27/07, Frank W. Zammetti <[EMAIL PROTECTED]> wrote:
  

Your saying that any S1 app using Tiles can't, based on your experience,
be run with part of it being S2-based, in the same WAR?  Could you
describe more what the problems you encountered were?

If I had to guess I would say that the problems are mostly due to the 
fact
that Struts 2 does not have support for Tiles 1.  So you'll have to 
migrate

to Tiles 2 at the same time.  I can't imagine there being huge
incompatibilities between Tiles 1 and 2 that would keep them from running
together in the same app, but it's certainly possible.  The biggest 
struggle

would likely be the taglib API differences between Tiles 1 and 2.

Greg

  

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



Zero-config and annotations

2007-03-28 Thread doktora

Zero-config will be quite some fun if we had some more annotations.

Are there any plans on adding Interceptor and onther annotations?

All we have now is org.apache.struts2.config.Result.

-- doktora
-- 
View this message in context: 
http://www.nabble.com/Zero-config-and-annotations-tf3481752.html#a9718432
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: struts.xml - change default location

2007-03-28 Thread Ted Husted

Done.

You can also add comments directly to the page.

-T.

On 3/28/07, doktora <[EMAIL PROTECTED]> wrote:


I think the fact that you cannot change the location of struts.xml should be
put in here:

http://struts.apache.org/2.x/docs/struts-1-solutions.html

This will help out a lot of people who do not expect s2 to have this
different behaviour. I failed to find this documented anywhere which cost me
quite a bit of time and frustration with s2 because I couldn't even
jumpstart it.



Ted Husted-4 wrote:
>
> Struts 2 uses a different approach to loading the configuration. The
> initial struts.xml is loaded from the root of the classpath. The
> easiest way to set that up is to put the struts.xml under the classes
> folder. The "boostrap" struts.xml can then load whatever other
> struts.xml's you would like using the include element.
>
> HTH, Ted
>  
>
>
> On 3/27/07, doktora <[EMAIL PROTECTED]> wrote:
>>
>> Why is it that putting this in the FilterDispatcher  section in
>> web.xml breaks Sturts2:
>>
>> 
>>   config
>>   /WEB-INF/struts.xml
>> 
>>
>> It looks to me as if this makes S2 confused about the whereabouts of its
>> other struts-default.xml, etc. files.
>>
>>
>> doktora
>>
>>
>> Ted Husted-4 wrote:
>> >
>> > Put a stub struts.xml on the classpath that loads your working
>> > configuration from another location. If the stub is under classes and
>> > the one you want is under WEB-INF, try
>> >
>> > 
>> > 
>> > 
>> >
>> > -HTH, Ted
>> >  
>> >
>> > On 3/19/07, Bartek <[EMAIL PROTECTED]> wrote:
>> >>
>> >> Hi
>> >>
>> >> I have to face up the following issue. My location of struts.xml
>> shoudl
>> >> be
>> >> WEB-INF directory, not WEB-INF/classes.
>> >> What is the easiest way to achieve this?? I tried several different
>> >> config
>> >> locations (e.g. WEB-INF/struts.xml) for
>> StrutsXmlConfigurationProvider,
>> >> none
>> >> of them worked. Creating custom configuration provider might help, but
>> it
>> >> is
>> >> pojo by default , protocol independant and therefore without any
>> >> ServletContext access - what is a pain in this case.
>> >>
>> >> Cheers
>> >> bartek


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



Re: Struts2 and Struts1 comingling w/ Tiles

2007-03-28 Thread doktora

Ray,

Which definition files specifically do you need to be split?

One of the biggest problems I had (which I couldn't figure out) was mixing
jsps with T1 and T2. At compile time, all my JSPs wanted to be either
T1-compliant, or T2-compliant.

Even if I had figured this out, there is still a big problem because you
can't migrate some actions to S2 without duplicating jsps to be in T2 mode
because S1 actoins and S2 actions may be using those jsps simultaneously.
Which means a messy migration with a lot of (jsp) code replication.

I still stand firm -- until there is S1->T2 compatibility, migrating from
S1->S2 will be a nightmare, if Tiles are involved.

I also suspect that calling S2 actions from S1 would have to be hard-wired
with  , as opposed to using html:link. Is that so?

doktora


Ray Clough wrote:
> 
> It definitely IS possible to comingle a S1 app using Tiles1 and an S2 
> app using Tiles2 in the same WAR file.  But they have separate 
> definition files.  You can call a S1 action from an S2 page and vice 
> versa.  I know it is possible, because I'm doing it.  I believe that it 
> is NOT possible to use S1 with T2 or S2 with T1 - at least not out of 
> the box.
> 
> Ray Clough
> 
> 
> 
> Greg Reddin wrote:
>> On 3/27/07, Frank W. Zammetti <[EMAIL PROTECTED]> wrote:
>>>
>>> Your saying that any S1 app using Tiles can't, based on your experience,
>>> be run with part of it being S2-based, in the same WAR?  Could you
>>> describe more what the problems you encountered were?
>>
>>
>> If I had to guess I would say that the problems are mostly due to the 
>> fact
>> that Struts 2 does not have support for Tiles 1.  So you'll have to 
>> migrate
>> to Tiles 2 at the same time.  I can't imagine there being huge
>> incompatibilities between Tiles 1 and 2 that would keep them from running
>> together in the same app, but it's certainly possible.  The biggest 
>> struggle
>> would likely be the taglib API differences between Tiles 1 and 2.
>>
>> Greg
>>
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Struts2-and-Struts1-comingling-w--Tiles-tf3474341.html#a9718430
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: struts.xml - change default location

2007-03-28 Thread Manu Mahajan

I second this.

And thanks for the replies.

doktora wrote:

I think the fact that you cannot change the location of struts.xml should be
put in here:

http://struts.apache.org/2.x/docs/struts-1-solutions.html

This will help out a lot of people who do not expect s2 to have this
different behaviour. I failed to find this documented anywhere which cost me
quite a bit of time and frustration with s2 because I couldn't even
jumpstart it.



Ted Husted-4 wrote:
  

Struts 2 uses a different approach to loading the configuration. The
initial struts.xml is loaded from the root of the classpath. The
easiest way to set that up is to put the struts.xml under the classes
folder. The "boostrap" struts.xml can then load whatever other
struts.xml's you would like using the include element.

HTH, Ted
 


On 3/27/07, doktora <[EMAIL PROTECTED]> wrote:


Why is it that putting this in the FilterDispatcher  section in
web.xml breaks Sturts2:


  config
  /WEB-INF/struts.xml


It looks to me as if this makes S2 confused about the whereabouts of its
other struts-default.xml, etc. files.


doktora


Ted Husted-4 wrote:
  

Put a stub struts.xml on the classpath that loads your working
configuration from another location. If the stub is under classes and
the one you want is under WEB-INF, try





-HTH, Ted
 

On 3/19/07, Bartek <[EMAIL PROTECTED]> wrote:


Hi

I have to face up the following issue. My location of struts.xml
  

shoudl
  

be
WEB-INF directory, not WEB-INF/classes.
What is the easiest way to achieve this?? I tried several different
config
locations (e.g. WEB-INF/struts.xml) for
  

StrutsXmlConfigurationProvider,
  

none
of them worked. Creating custom configuration provider might help, but
  

it
  

is
pojo by default , protocol independant and therefore without any
ServletContext access - what is a pain in this case.

Cheers
bartek
  

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






  


Re: Struts 1.3 and maven

2007-03-28 Thread Manfred Wolff


James.

I know it. But at least one question: Does anybody know why every little 
peace of open source is hosted at ibiblio, but not the famous struts. I 
really don't understand this.


Manne

James Mitchell wrote:
Ya, I don't know off the top of my head, but keep in mind that you can 
tell Maven to use different repositories, so you can easily host your 
own maven repo on your intranet which I presume that all of the devs 
could see and may or may not be open to the public.


HTH

--
James Mitchell


On Mar 28, 2007, at 11:34 AM, Manfred Wolff wrote:



James.

For a project with one worker this is a suitable resolution. But in a 
big project, with developers round the world (in this case Germany, 
India and Tunesia) it is a good thing to have all needed common open 
source jars held in the project.xml accessable via a public maven 
repo as ibiblio. So no one must be careful using the right versions - 
and no one has problem to get all jars that are needed. I wonder if 
there is a server who serves this jars for public access as the 
struts 1.2 jars (last is 1.2.9).


Manne


James Mitchell wrote:

Oh, you're right.  Sorry.

Would you be able to install them locally and just go with that?  Or 
do you have to have a portable solution?


If you can install them locally (on your machine), then drop them in 
the right place, and call it done.


If you must have a portable solution, just drop them on a server 
that you (and whoever else needs them) can see when building the app.


The maven repos are nothing more than a file system fronted with a 
web server.



--James Mitchell
The Ruby Roundup
http://www.rubyroundup.com/


On Mar 28, 2007, at 11:22 AM, Manfred Wolff wrote:



Sorry, but there  - as in ibiblio - is no 1.3 Struts in the 
repository.


Manne

James Mitchell wrote:

http://www.apache.org/dev/repository-faq.html


--James Mitchell
The Ruby Roundup
http://www.rubyroundup.com/


On Mar 28, 2007, at 10:55 AM, Manfred Wolff wrote:


Hi

Can somebody tell me, why there is no jar file at 
ibiblio.org/maven - and - where I can get the jars (via url), if 
I want to make a maven 1 project with struts 1.3.8?


Thanks
Manne


- 


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]




--===
Dipl.-Inf. Manfred Wolff
Software Engineer
Fon  : +49 421 534522
Fax  : +49 421 4314578
Mobil: +49 173 2494181
---
http://www.manfred-wolff.de
http://www.struts-it.org
---


-
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: struts.xml - change default location

2007-03-28 Thread doktora

I think the fact that you cannot change the location of struts.xml should be
put in here:

http://struts.apache.org/2.x/docs/struts-1-solutions.html

This will help out a lot of people who do not expect s2 to have this
different behaviour. I failed to find this documented anywhere which cost me
quite a bit of time and frustration with s2 because I couldn't even
jumpstart it.



Ted Husted-4 wrote:
> 
> Struts 2 uses a different approach to loading the configuration. The
> initial struts.xml is loaded from the root of the classpath. The
> easiest way to set that up is to put the struts.xml under the classes
> folder. The "boostrap" struts.xml can then load whatever other
> struts.xml's you would like using the include element.
> 
> HTH, Ted
>  
> 
> 
> On 3/27/07, doktora <[EMAIL PROTECTED]> wrote:
>>
>> Why is it that putting this in the FilterDispatcher  section in
>> web.xml breaks Sturts2:
>>
>> 
>>   config
>>   /WEB-INF/struts.xml
>> 
>>
>> It looks to me as if this makes S2 confused about the whereabouts of its
>> other struts-default.xml, etc. files.
>>
>>
>> doktora
>>
>>
>> Ted Husted-4 wrote:
>> >
>> > Put a stub struts.xml on the classpath that loads your working
>> > configuration from another location. If the stub is under classes and
>> > the one you want is under WEB-INF, try
>> >
>> > 
>> > 
>> > 
>> >
>> > -HTH, Ted
>> >  
>> >
>> > On 3/19/07, Bartek <[EMAIL PROTECTED]> wrote:
>> >>
>> >> Hi
>> >>
>> >> I have to face up the following issue. My location of struts.xml
>> shoudl
>> >> be
>> >> WEB-INF directory, not WEB-INF/classes.
>> >> What is the easiest way to achieve this?? I tried several different
>> >> config
>> >> locations (e.g. WEB-INF/struts.xml) for
>> StrutsXmlConfigurationProvider,
>> >> none
>> >> of them worked. Creating custom configuration provider might help, but
>> it
>> >> is
>> >> pojo by default , protocol independant and therefore without any
>> >> ServletContext access - what is a pain in this case.
>> >>
>> >> Cheers
>> >> bartek
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/struts.xml---change-default-location-tf3425865.html#a9718423
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: Handling login for struts 2.0

2007-03-28 Thread cilquirm

I think the answer is a 2 part solution, but you're on the right track.

1) Create the interceptor that returns Action.LOGIN ( or whatever it is when
the user isn't authenticated ).

2) set up your login page in your global results type. See this page for
more information :
http://struts.apache.org/2.x/docs/result-configuration.html

That should really be all that needs be done.


Ståle Undheim wrote:
> 
> I am currently using Struts 2.0 using guice for dependency injection.
> I have a goal to have a minimum amount of xml in my project.
> 
> I want to handle all login in 1 place. So if a user isn't
> authenticated, he will be sent to the login page.
> 
> I first tried this with a base action class that I extended, in the
> base class I defined @Result for Action.LOGIN, while the subclasses
> would define @Result for Action.SUCCESS. This didn't seem to work as
> only the @Result annotation on the subclass was found by struts.
> 
> Then I tried to create an interceptor, but it seems that the only
> thing I can do here is to change the result String, not actually
> affect which page the user gets sent to.
> 
> Currently it seems to me that I have to define both Action.LOGIN and
> Action.SUCCESS @Result annotations for all Actions I define. This is
> clearly not according to the DRY principles, and not what I want.
> 
> I also now have to set @Package on all my actions, so they are in the
> package I have defined my interceptor.
> 
> What I really want, is to not have anything in my Actions that
> indicate that they require authentication (all of the do), or just a
> marker interface/annotation to enable authentication.
> 
> How can I achieve this? Is Action chaining something I should look at?
> I don't really know anything about it except that it exists. And is it
> something that can be configured from my guice module loading, or does
> it require definitions in struts.xml?
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Handling-login-for-struts-2.0-tf3480451.html#a9718422
Sent from the Struts - User mailing list archive at Nabble.com.


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



[S2] JAAS & redirection

2007-03-28 Thread Pascal Lalonde

Hi,

   We are currently trying to update from webwork to struts 2.0.6, 
everything looks fine except one thing.


The application is deployed into JBoss 4.0.4 and JAAS is enabled into 
our web.xml configuration file. So when trying to access the secure 
namespace, it does its check and finds out that the user is not logged 
yet so its redirecting to our configured JSP, into this JSP, we have 
struts tags and we are applying a decorator.


With Webwork, it was working perfectly, but now, in Struts 2.0.6 we have 
the following stack.


Anyone knows what we are doing wrong ?

java.lang.NullPointerException
   at org.apache.struts2.views.jsp.TagUtils.getStack(TagUtils.java:58)
   at 
org.apache.struts2.views.jsp.StrutsBodyTagSupport.getStack(StrutsBodyTagSupport.java:54)
   at 
org.apache.struts2.views.jsp.ComponentTagSupport.doStartTag(ComponentTagSupport.java:49)
   at 
org.apache.jsp.WEB_002dINF.pages.security.LoginForm_jsp._jspx_meth_ww_text_0(LoginForm_jsp.java:273)
   at 
org.apache.jsp.WEB_002dINF.pages.security.LoginForm_jsp._jspx_meth_page_applyDecorator_0(LoginForm_jsp.java:105)
   at 
org.apache.jsp.WEB_002dINF.pages.security.LoginForm_jsp._jspService(LoginForm_jsp.java:69)
   at 
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)

   at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
   at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
   at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)

   at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
   at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
   at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
   at 
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
   at 
org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)
   at 
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
   at 
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
   at 
org.apache.catalina.authenticator.FormAuthenticator.forwardToLoginPage(FormAuthenticator.java:315)
   at 
org.apache.catalina.authenticator.FormAuthenticator.authenticate(FormAuthenticator.java:243)
   at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:490)
   at 
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
   at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
   at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
   at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
   at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
   at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
   at 
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
   at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
   at 
org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)

   at java.lang.Thread.run(Thread.java:595)
15:01:08,937 WARN  [FormAuthenticator] Unexpected error forwarding to 
login page
org.apache.jasper.JasperException: Exception in JSP: 
/WEB-INF/pages/security/LoginForm.jsp:8


5:   
6:   
7: 
8:   
9: 
10:   
11:   


Stacktrace:
   at 
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:504)
   at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:393)
   at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)

   at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
   at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
   at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
   at 
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
   at 
org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)
   at 
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
   at 
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
   at 
org.apache.catalina.authenticator.FormAuthenticator.forwardToLoginPage(FormAuthenticator.java:315)
   at 
org.apache.catalina.authenticator.FormAuthenticator.authenticate(FormAuthe

Re: Changing location of struts.xml

2007-03-28 Thread Manu Mahajan
Yes, that seems to work fine but I would have liked to keep it in a 
separate conf/struts folder inside the jar.


Adam Ruggles wrote:
I put mine in the root of my jar file and it works fine.  I don't even 
have a classes folder.


Manu Mahajan wrote:

Hello

I want to know if it is possible to change the location of the 
struts.xml file. I don't want to keep it in the WEB-INF\classes 
directory. Ideally I would like to create a jar file with all my 
configuration files(including configurations of 
hibernate/spring/sitemesh etc) and place it in the lib folder. I will 
be using Tomcat for deployment.


Thanks
Manu


-
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: Struts 1.3 and maven

2007-03-28 Thread James Mitchell
Ya, I don't know off the top of my head, but keep in mind that you  
can tell Maven to use different repositories, so you can easily host  
your own maven repo on your intranet which I presume that all of the  
devs could see and may or may not be open to the public.


HTH

--
James Mitchell


On Mar 28, 2007, at 11:34 AM, Manfred Wolff wrote:



James.

For a project with one worker this is a suitable resolution. But in  
a big project, with developers round the world (in this case  
Germany, India and Tunesia) it is a good thing to have all needed  
common open source jars held in the project.xml accessable via a  
public maven repo as ibiblio. So no one must be careful using the  
right versions - and no one has problem to get all jars that are  
needed. I wonder if there is a server who serves this jars for  
public access as the struts 1.2 jars (last is 1.2.9).


Manne


James Mitchell wrote:

Oh, you're right.  Sorry.

Would you be able to install them locally and just go with that?   
Or do you have to have a portable solution?


If you can install them locally (on your machine), then drop them  
in the right place, and call it done.


If you must have a portable solution, just drop them on a server  
that you (and whoever else needs them) can see when building the app.


The maven repos are nothing more than a file system fronted with a  
web server.



--
James Mitchell
The Ruby Roundup
http://www.rubyroundup.com/


On Mar 28, 2007, at 11:22 AM, Manfred Wolff wrote:



Sorry, but there  - as in ibiblio - is no 1.3 Struts in the  
repository.


Manne

James Mitchell wrote:

http://www.apache.org/dev/repository-faq.html


--James Mitchell
The Ruby Roundup
http://www.rubyroundup.com/


On Mar 28, 2007, at 10:55 AM, Manfred Wolff wrote:


Hi

Can somebody tell me, why there is no jar file at ibiblio.org/ 
maven - and - where I can get the jars (via url), if I want to  
make a maven 1 project with struts 1.3.8?


Thanks
Manne


-- 
---

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]




--===
Dipl.-Inf. Manfred Wolff
Software Engineer
Fon  : +49 421 534522
Fax  : +49 421 4314578
Mobil: +49 173 2494181
---
http://www.manfred-wolff.de
http://www.struts-it.org
---


 
-

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]



[S2] sitemesh skins

2007-03-28 Thread Monttez
Hi,

I want to show a system with different skins (per client), at 'load-time'..

Desired behavior:
Has this client a custom skin ?  If (YES) load_it();   Else
load_the_default_skin();

I would be grateful if the SessionDecoratorMapper overrides the
ConfigDecoratorMapper, but its not happening (at least with my settings.. :)
)

How can I do it?  I'm confused 



MAPPERS:


  







DECORATORS:


/*



/*



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



Re: [S2] s:tabbedPanel with remote tabs and javascript on the remote tabs

2007-03-28 Thread Musachy Barroso

on showcase, remote div, there is an example that works(#6 I think), based
on that example I modified one of tabbedpanel examples on showcase to this:



 


The returned jsp is test.jsp from apps/showcase/src/main/webapp/ajax:


   alert('This JavaScript currently being evaluated is in the result...');

Show me some text also

   alert('And some more text for fun!');


And it shows the two alerts, and sets the tab content to: "Show me some text
also"

regards
musachy

On 3/28/07, Guillaume Carré <[EMAIL PROTECTED]> wrote:


2007/3/28, Brian Thompson <[EMAIL PROTECTED]>:
> I HAD thought that setting executeScripts="true" on the div would do the
> trick, but I saw the same behavior with or without it.
>
> My divs looked like:
>
>  id="selectResource" executeScripts="true"/>
>

same problem here

I define a javascript function in the div, and a call to that function
from the div doesn't work, the function is not found.
--
Guillaume Carré

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





--
"Hey you! Would you help me to carry the stone?" Pink Floyd


How to render a using a map?

2007-03-28 Thread Felipe Rodrigues

Hi,
I have a map to render 



The problem is that the select did not rendered, and sometimes got an
JasperException.
How could I do that?

Thanks in advance,

Felipe


-- 
View this message in context: 
http://www.nabble.com/How-to-render-a-%3Cs%3Aselect%3E-using-a-map--tf3481550.html#a9717863
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: Changing location of struts.xml

2007-03-28 Thread Adam Ruggles
I put mine in the root of my jar file and it works fine.  I don't even 
have a classes folder.


Manu Mahajan wrote:

Hello

I want to know if it is possible to change the location of the 
struts.xml file. I don't want to keep it in the WEB-INF\classes 
directory. Ideally I would like to create a jar file with all my 
configuration files(including configurations of 
hibernate/spring/sitemesh etc) and place it in the lib folder. I will 
be using Tomcat for deployment.


Thanks
Manu


-
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, ModelDriven and Field Errors

2007-03-28 Thread Juan Espinosa
Hi dave here is all the data you ask
I have a jsp where i register a customer, diferent kind of customer,
personalcustomer, enterprisecustomer depending on the type of customer in
the action variable "customer" the file i use to validate..
I have several validation files Personal-validation.xml,
Enterprise-validation.xml

Any suggestions ??
Regards, juan


Fields in jsp



 

---

Action class

public class CustomerRegistration extends BaseAction implements ModelDriven
{

private static final long serialVersionUID = 1L;
private static Logger logger =
Logger.getLogger(CustomerRegistration.class);

Customer customer = null;

public Customer getCustomer() {
return customer;
}
public void setCustomer(Customer customer) {
this.customer = customer;
}

--- 

Validation file one CustomerRegistration-customerRegistration-validation.xml






  


Validation file two Personal-validation.xml











  







-Mensaje original-
De: Dave Newton [mailto:[EMAIL PROTECTED] 
Enviado el: miércoles, 28 de marzo de 2007 13:00
Para: Struts Users Mailing List
Asunto: Re: Validation, ModelDriven and Field Errors

--- Juan Espinosa <[EMAIL PROTECTED]> wrote:
> Then i change the action to an action that implements ModelDriven, 
> when i do this changes the errors next to the controls doesnt appear 
> any more.
I
> must add in the jsp page the tag   to

> get the errros.
> 
> Anyone knows why the errors doesnt appear ??

How are you naming your form fields, both on the JSP and in the validation?
Are you still using the modelClass.fieldName or just fieldName, and are they
the same in both the JSP form fields and validation file?

d.



 


Now that's room service!  Choose from over 150,000 hotels in 45,000
destinations on Yahoo! Travel to find your fit.
http://farechase.yahoo.com/promo-generic-14795097

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

--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.446 / Virus Database: 268.18.20/736 - Release Date: 27/03/2007
16:38
 

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.446 / Virus Database: 268.18.20/736 - Release Date: 27/03/2007
16:38
 


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



Re: [S2] s:tabbedPanel with remote tabs and javascript on the remote tabs

2007-03-28 Thread Guillaume Carré

2007/3/28, Brian Thompson <[EMAIL PROTECTED]>:

I HAD thought that setting executeScripts="true" on the div would do the
trick, but I saw the same behavior with or without it.

My divs looked like:





same problem here

I define a javascript function in the div, and a call to that function
from the div doesn't work, the function is not found.
--
Guillaume Carré

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



Re: Validation, ModelDriven and Field Errors

2007-03-28 Thread Dave Newton
--- Juan Espinosa <[EMAIL PROTECTED]> wrote:
> Then i change the action to an action that
> implements ModelDriven, when i do this changes the 
> errors next to the controls doesnt appear any more.
I
> must add in the jsp page the tag   to

> get the errros.
> 
> Anyone knows why the errors doesnt appear ??

How are you naming your form fields, both on the JSP
and in the validation? Are you still using the
modelClass.fieldName or just fieldName, and are they
the same in both the JSP form fields and validation
file?

d.



 

Now that's room service!  Choose from over 150,000 hotels
in 45,000 destinations on Yahoo! Travel to find your fit.
http://farechase.yahoo.com/promo-generic-14795097

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



Re: [S2] s:tabbedPanel with remote tabs and javascript on the remote tabs

2007-03-28 Thread Brian Thompson

I HAD thought that setting executeScripts="true" on the div would do the
trick, but I saw the same behavior with or without it.

My divs looked like:



-Brian



On 3/28/07, Musachy Barroso <[EMAIL PROTECTED]> wrote:


Just set executeScripts="true" on the div, and that will do the trick.

musachy




Validation, ModelDriven and Field Errors

2007-03-28 Thread Juan Espinosa

Hi to all i have some problems with messages of validation

When i started to use validation i have an action with some filelds getting
validated (with an xml file, same name of the action). With this approach
when an error ocurred the error apears next to the controls that generated
that error.

Then i change the action to an action that implements ModelDriven, when i do
this changes the errors next to the controls doesnt appear any more. I must
add in the jsp page the tag   to get the errros.

Anyone knows why the errors doesnt appear ??

Regards

Juan

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.446 / Virus Database: 268.18.20/736 - Release Date: 27/03/2007
16:38
 


Re: [S2] s:tabbedPanel with remote tabs and javascript on the remote tabs

2007-03-28 Thread Guillaume Carré

2007/3/28, Musachy Barroso <[EMAIL PROTECTED]>:

Just set executeScripts="true" on the div, and that will do the trick.


why not setting true as the default value?
--
Guillaume Carré

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



Re: Struts 1.3 and maven

2007-03-28 Thread Manfred Wolff


James.

For a project with one worker this is a suitable resolution. But in a 
big project, with developers round the world (in this case Germany, 
India and Tunesia) it is a good thing to have all needed common open 
source jars held in the project.xml accessable via a public maven repo 
as ibiblio. So no one must be careful using the right versions - and no 
one has problem to get all jars that are needed. I wonder if there is a 
server who serves this jars for public access as the struts 1.2 jars 
(last is 1.2.9).


Manne


James Mitchell wrote:

Oh, you're right.  Sorry.

Would you be able to install them locally and just go with that?  Or 
do you have to have a portable solution?


If you can install them locally (on your machine), then drop them in 
the right place, and call it done.


If you must have a portable solution, just drop them on a server that 
you (and whoever else needs them) can see when building the app.


The maven repos are nothing more than a file system fronted with a web 
server.



--
James Mitchell
The Ruby Roundup
http://www.rubyroundup.com/


On Mar 28, 2007, at 11:22 AM, Manfred Wolff wrote:



Sorry, but there  - as in ibiblio - is no 1.3 Struts in the repository.

Manne

James Mitchell wrote:

http://www.apache.org/dev/repository-faq.html


--James Mitchell
The Ruby Roundup
http://www.rubyroundup.com/


On Mar 28, 2007, at 10:55 AM, Manfred Wolff wrote:


Hi

Can somebody tell me, why there is no jar file at ibiblio.org/maven 
- and - where I can get the jars (via url), if I want to make a 
maven 1 project with struts 1.3.8?


Thanks
Manne


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




--===
Dipl.-Inf. Manfred Wolff
Software Engineer
Fon  : +49 421 534522
Fax  : +49 421 4314578
Mobil: +49 173 2494181
---
http://www.manfred-wolff.de
http://www.struts-it.org
---


-
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: Struts 1.3 and maven

2007-03-28 Thread James Mitchell

Oh, you're right.  Sorry.

Would you be able to install them locally and just go with that?  Or  
do you have to have a portable solution?


If you can install them locally (on your machine), then drop them in  
the right place, and call it done.


If you must have a portable solution, just drop them on a server that  
you (and whoever else needs them) can see when building the app.


The maven repos are nothing more than a file system fronted with a  
web server.



--
James Mitchell
The Ruby Roundup
http://www.rubyroundup.com/


On Mar 28, 2007, at 11:22 AM, Manfred Wolff wrote:



Sorry, but there  - as in ibiblio - is no 1.3 Struts in the  
repository.


Manne

James Mitchell wrote:

http://www.apache.org/dev/repository-faq.html


--
James Mitchell
The Ruby Roundup
http://www.rubyroundup.com/


On Mar 28, 2007, at 10:55 AM, Manfred Wolff wrote:


Hi

Can somebody tell me, why there is no jar file at ibiblio.org/ 
maven - and - where I can get the jars (via url), if I want to  
make a maven 1 project with struts 1.3.8?


Thanks
Manne


 
-

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]




--
===
Dipl.-Inf. Manfred Wolff
Software Engineer
Fon  : +49 421 534522
Fax  : +49 421 4314578
Mobil: +49 173 2494181
---
http://www.manfred-wolff.de
http://www.struts-it.org
---


-
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: [S2] s:tabbedPanel with remote tabs and javascript on the remote tabs

2007-03-28 Thread Musachy Barroso

Just set executeScripts="true" on the div, and that will do the trick.

musachy

On 3/28/07, Brian Thompson <[EMAIL PROTECTED]> wrote:


I'm using a simple jsp with
















Inside my selectResource action, I have some javascript defined:



Test


alert("javascript!");





However, when I load the page, I don't see the alert.  When I inspect the
source using Firebug, I note that the 

Re: Struts 1.3 and maven

2007-03-28 Thread Manfred Wolff


Sorry, but there  - as in ibiblio - is no 1.3 Struts in the repository.

Manne

James Mitchell wrote:

http://www.apache.org/dev/repository-faq.html


--
James Mitchell
The Ruby Roundup
http://www.rubyroundup.com/


On Mar 28, 2007, at 10:55 AM, Manfred Wolff wrote:


Hi

Can somebody tell me, why there is no jar file at ibiblio.org/maven - 
and - where I can get the jars (via url), if I want to make a maven 1 
project with struts 1.3.8?


Thanks
Manne


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




--
===
Dipl.-Inf. Manfred Wolff
Software Engineer
Fon  : +49 421 534522
Fax  : +49 421 4314578
Mobil: +49 173 2494181
---
http://www.manfred-wolff.de
http://www.struts-it.org
---


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



Re: Struts 1.3 and maven

2007-03-28 Thread James Mitchell

http://www.apache.org/dev/repository-faq.html


--
James Mitchell
The Ruby Roundup
http://www.rubyroundup.com/


On Mar 28, 2007, at 10:55 AM, Manfred Wolff wrote:


Hi

Can somebody tell me, why there is no jar file at ibiblio.org/maven  
- and - where I can get the jars (via url), if I want to make a  
maven 1 project with struts 1.3.8?


Thanks
Manne


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



[S2] s:tabbedPanel with remote tabs and javascript on the remote tabs

2007-03-28 Thread Brian Thompson

I'm using a simple jsp with




   






   
   



Inside my selectResource action, I have some javascript defined:


   
   Test

   
   alert("javascript!");
   

   


However, when I load the page, I don't see the alert.  When I inspect the
source using Firebug, I note that the 

Re: How to configure result in the code

2007-03-28 Thread Dale Newfield

Shuai Zheng wrote:

But I may not know the filename, contentType, etc (because these files are
uploaded by the user).


http://struts.apache.org/2.0.6/struts2-core/apidocs/org/apache/struts2/dispatcher/StrutsResultSupport.html
http://struts.apache.org/2.0.6/struts2-core/apidocs/com/opensymphony/xwork2/util/TextParseUtil.html#translateVariables(java.lang.String,%20com.opensymphony.xwork2.util.ValueStack)


  
${dbFile.contentType}
${dbFile.contentLength}
inputStream
filename="${dbFile.filename}"
true
  


-Dale

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



[S2] Infinite Recursion Detected error

2007-03-28 Thread Harring Figueiredo

Folks,

I am getting the following error:

Infinite recursion detected: [//connect!execute, //conf, //conf] -
[unknown location]

com.opensymphony.xwork2.ActionChainResult.execute(ActionChainResult.java:207)

com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:343)

com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)


The action set up is as follow:




   conf

   


   get_status
   get_role
   
   



   Home.jsp
   


   Home.jsp
   
   

Any help appreciated.

Hf
--


Struts 1.3 and maven

2007-03-28 Thread Manfred Wolff

Hi

Can somebody tell me, why there is no jar file at ibiblio.org/maven - and - 
where I can get the jars (via url), if I want to make a maven 1 project with 
struts 1.3.8?

Thanks
Manne


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



HELP, creating my own validation

2007-03-28 Thread Dwight Galloway
I am having troubles getting my own validator to work, I wonder if it is the 
classpath where I am pointing to my Class with? I am trying to create a 
dateRange validation to determin if the date falls between two dates or not. 
This is what I have in my validation.xml

>   
>   
>   
> datePatternMM/dd/
>   
> minDate07/01/2003
>
> maxDate06/30/2004
>   

> this is what I have in my validator-rules

>  classname="gov.utah.dhs.pats.util.ValidationUtil"
>method="validateDateRange"
>  methodParams="java.lang.Object,
>   org.apache.commons.validator.ValidatorAction,
>   org.apache.commons.validator.Field,
>   org.apache.struts.action.ActionMessages,
>   javax.servlet.http.HttpServletRequest"
>   depends=""
>   msg="errors.dateRange"/>

>  and my class looks like this, notice I have a println at the start of my 
> program, it is like it is completely ignoring my class, I am clueless how to 
> test this and to see what is really happening, I don't have much experience 
> with struts so please any suggestions would help,thank you...

> package gov.utah.dhs.pats.util;
> import java.text.SimpleDateFormat;
> import java.util.Date;
> import javax.servlet.http.HttpServletRequest;
> import org.apache.commons.validator.Field;
> import org.apache.commons.validator.ValidatorAction;
> import org.apache.commons.validator.util.ValidatorUtils;
> import org.apache.struts.action.ActionMessages;
> import org.apache.struts.validator.Resources;
> public class ValidationUtil {
> public static final String DEFAULT_FORM_DATE_PATTERN = "M/dd/";
> public static final Date DEFAULT_MIN_DATE = getDefaultMinDate();
> public static final Date DEFAULT_MAX_DATE = getDefaultMaxDate();
> public static boolean validateDateRange(Object bean, ValidatorAction 
> va, Field field, ActionMessages msg, HttpServletRequest request) {
>   //if we're not properly configured to parse dates,
>   //all date validation will fail
>   System.out.println("!INSIDE THE VALIDATION UTILITY 
> the FIELD.. " + field );
>   if (DEFAULT_MIN_DATE == null || DEFAULT_MAX_DATE == null) 
> return false;
>   try {
> String value = ValidatorUtils.getValueAsString(bean, 
> field.getProperty());
> Date date = getDate(value, DEFAULT_FORM_DATE_PATTERN);
> Date minDate = getDate(field.getVarValue("minDate"),  
> DEFAULT_FORM_DATE_PATTERN);
> Date maxDate = getDate(field.getVarValue("maxDate"), 
> DEFAULT_FORM_DATE_PATTERN);
> if (date.compareTo(minDate) < 0 || date.compareTo(maxDate) > 
> 0) {
>   msg.add(field.getKey().toString(), 
> Resources.getActionMessage(request, va, field));
>   return false;
> }
> return true;
>   }
>   catch (Exception e) {
> e.printStackTrace();
> msg.add(field.getKey().toString(), 
> Resources.getActionMessage(request, va, field));
> return false;
>   }
> }
> 
>   protected static Date getDate(String dateString, String pattern) {
> Date date = null;
> try {
>   SimpleDateFormat df = new SimpleDateFormat(pattern);
>   date = df.parse(dateString);
> }
> catch (Exception e) {
>   e.printStackTrace();
> }
> return date;
>   }
>   protected static Date getDefaultMinDate() {
> return getDate("01/01/1900", DEFAULT_FORM_DATE_PATTERN);
>   }
>   protected static Date getDefaultMaxDate() {
> return getDate("12/31/2030", DEFAULT_FORM_DATE_PATTERN);
>   }
>   }

> if anyone can please just help guide me a bit on this I would appreciate it. 


Dwight S. Galloway
(801) 538-4234
[EMAIL PROTECTED]
Department of Technology Services
MAKE IT A GREAT DAY! 



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



Handling login for struts 2.0

2007-03-28 Thread Ståle Undheim

I am currently using Struts 2.0 using guice for dependency injection.
I have a goal to have a minimum amount of xml in my project.

I want to handle all login in 1 place. So if a user isn't
authenticated, he will be sent to the login page.

I first tried this with a base action class that I extended, in the
base class I defined @Result for Action.LOGIN, while the subclasses
would define @Result for Action.SUCCESS. This didn't seem to work as
only the @Result annotation on the subclass was found by struts.

Then I tried to create an interceptor, but it seems that the only
thing I can do here is to change the result String, not actually
affect which page the user gets sent to.

Currently it seems to me that I have to define both Action.LOGIN and
Action.SUCCESS @Result annotations for all Actions I define. This is
clearly not according to the DRY principles, and not what I want.

I also now have to set @Package on all my actions, so they are in the
package I have defined my interceptor.

What I really want, is to not have anything in my Actions that
indicate that they require authentication (all of the do), or just a
marker interface/annotation to enable authentication.

How can I achieve this? Is Action chaining something I should look at?
I don't really know anything about it except that it exists. And is it
something that can be configured from my guice module loading, or does
it require definitions in struts.xml?

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



Jasper result tag

2007-03-28 Thread Manoel Pimentel

Hi 

Please, Can somebody explain to me how  configure the file strust.xml for to
use the jasper result tag?   and
if possible, send to me any little sample, ok?   

Regards,

Manoel Pimentel
http://manoelpimentel.blogspot.com/

-- 
View this message in context: 
http://www.nabble.com/Jasper-result-tag-tf3480422.html#a9714077
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: Struts 2 and Content Management

2007-03-28 Thread Musachy Barroso

I will have to do the same thing soon (Struts 2  + CMS), and I was looking
at Hypercontent, it looks really intuitive and easy to use, but the project
seems stale.

musachy

On 3/27/07, tom tom <[EMAIL PROTECTED]> wrote:


My suggestion is, try hypercontent, and have jstl
import pointing to the hypercontent resource,

This is something I can give u a hand.

But hypercontent does not use any struts 2.

thanks.
--- Jim Young <[EMAIL PROTECTED]> wrote:

> Anyone have any ideas on Content Management Software
> and using Struts 2?  We are devloping a new Web Site
> and would like to turn all the Content Maintenance
> over to our Marketing Department.  We are using
> Struts 2 and jsp's to render the content now.  We
> would like to pull the content from the Content
> Management System if possible.
>
> Jim
>






We won't tell. Get more on shows you hate to love
(and love to hate): Yahoo! TV's Guilty Pleasures list.
http://tv.yahoo.com/collections/265

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





--
"Hey you! Would you help me to carry the stone?" Pink Floyd


Changing location of struts.xml

2007-03-28 Thread Manu Mahajan

Hello

I want to know if it is possible to change the location of the 
struts.xml file. I don't want to keep it in the WEB-INF\classes 
directory. Ideally I would like to create a jar file with all my 
configuration files(including configurations of 
hibernate/spring/sitemesh etc) and place it in the lib folder. I will be 
using Tomcat for deployment.


Thanks
Manu


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



RE: struts-html-el.tld

2007-03-28 Thread Neil Meyer
Thanks Dave,




-Original Message-
From: Dave Newton [mailto:[EMAIL PROTECTED] 
Sent: 28 March 2007 02:59 PM
To: Struts Users Mailing List
Subject: Re: struts-html-el.tld

--- Neil Meyer <[EMAIL PROTECTED]> wrote:
> Can anybody explain to me why struts-html-el.tld and
> struts-html.tld doesn't support id in the text tag
> 
> 
>  property="comments"
> size="50" maxlength="50"/>

styleId.

http://struts.apache.org/1.2.9/userGuide/struts-html.html#text

or if you're on 1.3

http://struts.apache.org/1.3.8/struts-taglib/tagreference.html#text

d.



 
_
___
Finding fabulous fares is fun.  
Let Yahoo! FareChase search your favorite travel sites to find flight and
hotel bargains.
http://farechase.yahoo.com/promo-generic-14795097

-
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: struts-html-el.tld

2007-03-28 Thread Dave Newton
--- Neil Meyer <[EMAIL PROTECTED]> wrote:
> Can anybody explain to me why struts-html-el.tld and
> struts-html.tld doesn't support id in the text tag
> 
> 
>  property="comments"
> size="50" maxlength="50"/>

styleId.

http://struts.apache.org/1.2.9/userGuide/struts-html.html#text

or if you're on 1.3

http://struts.apache.org/1.3.8/struts-taglib/tagreference.html#text

d.



 

Finding fabulous fares is fun.  
Let Yahoo! FareChase search your favorite travel sites to find flight and hotel 
bargains.
http://farechase.yahoo.com/promo-generic-14795097

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



Re: ajax framework

2007-03-28 Thread Musachy Barroso

GWT will compile your java code to javascript, and you can integrate it with
your struts 2 actions using the GWT plugin.

regards
musachy

On 3/28/07, Mikolaj Rydzewski <[EMAIL PROTECTED]> wrote:


temp temp wrote:
>
>   I have to  create highly interactive web page ie use of  lot of
java script. Are there open source java  ajax frameworks  where I code only
in java  and do not write  any  java script? I mean any  ajax
framework  where I have the whole  power of java script   but I  work with
only java .
>
GWT - google web toolkit

--
Mikolaj Rydzewski <[EMAIL PROTECTED]>






--
"Hey you! Would you help me to carry the stone?" Pink Floyd


struts-html-el.tld

2007-03-28 Thread Neil Meyer
Hi

Can anybody explain to me why struts-html-el.tld and struts-html.tld doesn't
support id in the text tag




Kr
Neil Meyer

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



Re: ajax framework

2007-03-28 Thread Mikolaj Rydzewski

temp temp wrote:
 
  I have to  create highly interactive web page ie use of  lot of java script. Are there open source java  ajax frameworks  where I code only in java  and do not write  any  java script? I mean any  ajax framework  where I have the whole  power of java script   but I  work with only java .   
  

GWT - google web toolkit

--
Mikolaj Rydzewski <[EMAIL PROTECTED]>



smime.p7s
Description: S/MIME Cryptographic Signature


Re: ajax framework

2007-03-28 Thread Pascal Lalonde

You can take a look to this:
http://struts.apache.org/2.x/docs/ajax-tags.html

- Pascal

temp temp wrote:
 
  I have to  create highly interactive web page ie use of  lot of java script. Are there open source java  ajax frameworks  where I code only in java  and do not write  any  java script? I mean any  ajax framework  where I have the whole  power of java script   but I  work with only java .   

 
-

Don't pick lemons.
See all the new 2007 cars at Yahoo! Autos.
  



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



ajax framework

2007-03-28 Thread temp temp
 
  I have to  create highly interactive web page ie use of  lot of java 
script. Are there open source java  ajax frameworks  where I code only in java  
and do not write  any  java script? I mean any  ajax framework  where I have 
the whole  power of java script   but I  work with only java .   

 
-
Don't pick lemons.
See all the new 2007 cars at Yahoo! Autos.

Re: Session not set before prepare() function with Struts 2 prepare interceptor

2007-03-28 Thread Dave Newton
--- Jason Wyatt <[EMAIL PROTECTED]> wrote:
> 
> 
> 
> 
> 

Your question was already answered, but I'd add that
normally "prepare" is already part of "defaultStack".

d.



 

Expecting? Get great news right away with email Auto-Check. 
Try the Yahoo! Mail Beta.
http://advision.webevents.yahoo.com/mailbeta/newmail_tools.html 

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