AW: STRUTS 1.3.8 Validator ist destroying my SessionToken

2007-08-29 Thread Thomas.Zygadlewicz
It is true.. I guess.
When the Struts-Validation fails, the following action-class is still executed 
- leading to the isTokenValid() Method being 
Used.
The strange thing is : the process stops after the first action-class and 
returns the validator-errors to the screen.

I found a way to forward the request-Token to the following action-class. So 
I'm able to test the token after the half-broken-validator did his test.
But it's not the way I imagined... And I bet it's not supposed to happen that 
way.
 

-Ursprüngliche Nachricht-
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Paul Benedict
Gesendet: Mittwoch, 29. August 2007 01:25
An: Struts Users Mailing List
Betreff: Re: STRUTS 1.3.8 Validator ist destroying my SessionToken

On 8/28/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]>
wrote:
>
> If the validator detects wrong data and returns me to the input-form it
> still starts the actionclass of the submit button - and its executing
> isTokenValid() .



This can't be true. If you're using automatic validation, the action will
not be invoked if validation fails. The only way this might seem like it is
happening, if your input forward refers to another action.


And of course it leads to the token being deleted... So if the user
> corrects his errors he still cant continue to page2...
>

I'd like to hear more about this.

Paul

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



Help posting a form with an anchor and targets

2007-08-29 Thread Ivan Fontanals
Hi,

I'm trying to send a form from an anchor tag, but I've only archieved to
send the form without the "targets" attribute.

When I put the target ID, the form is not sended but the page redirects
correctly.
Otherwise it works well but the page is not redirected.

My code is:







<%-- BUTTONS --%>
 
 

SAVE
 


Please, could you give me any ida about what is happening?

Thank you very much for your time!


Ivan Fontanals


Help posting a form with an anchor and targets

2007-08-29 Thread Ivan Fontanals
Hi,

I'm trying to send a form from an anchor tag, but I've only archieved to
send the form without the "targets" attribute.

When I put the target ID, the form is not sended but the page redirects
correctly.
Otherwise it works well but the page is not redirected.

My code is:







<%-- BUTTONS --%>
 
 

SAVE
 


Please, could you give me any ida about what is happening?

Thank you very much for your time!


Ivan Fontanals


Re: Help posting a form with an anchor and targets

2007-08-29 Thread Ivan Fontanals
I've finally found an answer to my question searching in the mail list.

Here is the explanation about what is going on and the solution:

http://www.mail-archive.com/user@struts.apache.org/msg54844.html


Basically the solution consists in not showing the "loadingText" in the
target div, because it removes the form elements when setting this text
inside the div.

Bests regards,

Ivan Fontanals


[S2] Type Coversion in nested bean.

2007-08-29 Thread Boon Leng

Hi,

I'm able to use type conversion to populate bean into List in the Action.
But when I tried to populate bean into a List nested inside another bean, is
not working and there's no error printed.
May I know how can I implement type conversion for nested bean?
Any help would be appreciated. Thanks.
The following is my code.

Action
---
public class UserAction  extends ActionSupport {

private User user;
...
}

Bean
---
public class User {
private Set roles = new HashSet();

public Set getRoles() {
return roles;
}

public void setRoles(Set value) {
this.roles = value;
}

...
}

JSP
---


SampleAction-coversion.properties
---
Element_user.roles=sample.model.Role
KeyProperty_user.roles=id
CreateIfNull_user.roles=true


Regards,
Boon Leng
-- 
View this message in context: 
http://www.nabble.com/-S2--Type-Coversion-in-nested-bean.-tf4347142.html#a12385079
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: S2 Ajax : Static files - what, where?

2007-08-29 Thread j alex
I copied over all the FTL files in "simple" theme to a new directory
"mytheme" and modify the  ones i need to ; don't think this is technically
extension, but does the job .

-Joseph

On 8/29/07, Oleg Mikheev <[EMAIL PROTECTED]> wrote:
>
> j alex wrote:
> > Since i cannot use the Ajax/XHTML theme due to UI layout issues , i'm
> having
> > a custom theme that extends "simple"  ; i wanted to know if this
> validation
> > really depends on having theme="ajax"
> >
> > I replaced  with the equivalent javascript
> includes,
> > and it seems to work fine ;are there any specific server-side
> > (Action/interceptors etc.) that rely on the theme being ajax which i may
> be
> > missing ?
>
> Joseph,
>
> I don't think theme effects the server side, it just controls
> tags HTML output.
> I also had layout issues with ajax theme, but extending struts 2
> themes seemed too complicated to me, so I just looked at the HTML
> output of ajax theme tags and copied them with my changes to JSP.
> Do you edit freemarker files to extend a theme?
>
> Oleg
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: S2 Ajax : Static files - what, where?

2007-08-29 Thread j alex
Oleg,

If you don't mind can you please paste the 

URL paramters accumulating in a sequence of actions

2007-08-29 Thread Riccardo Mollame
Can anyone explain to a poor newbie why, after calling
a sequence of actions, each one passing a set of URL
parameters, I end up having in the final URL **all**
the parameters called in the previous actions?  
Thanks in advance. 

 Ric






  ___ 
L'email della prossima generazione? Puoi averla con la nuova Yahoo! Mail: 
http://it.docs.yahoo.com/nowyoucan.html

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



Re: URL paramters accumulating in a sequence of actions

2007-08-29 Thread Antonio Petrelli
2007/8/29, Riccardo Mollame <[EMAIL PROTECTED]>:
>
> Can anyone explain to a poor newbie why, after calling
> a sequence of actions, each one passing a set of URL
> parameters, I end up having in the final URL **all**
> the parameters called in the previous actions?



What do you mean with "sequence of actions"?
Do you mean that you are into an action and you forward to the URL of
another action?

Antonio


RE: URL paramters accumulating in a sequence of actions

2007-08-29 Thread Arnaud Cogoluegnes
To avoid this behavior, use the global settings
struts.url.includeParams=none in struts.properties or the attribute
includeParams in each url tag (value can be 'none', 'get' or 'all')


-Message d'origine-
De : Riccardo Mollame [mailto:[EMAIL PROTECTED] 
Envoyé : mercredi 29 août 2007 13:42
À : user@struts.apache.org
Objet : URL paramters accumulating in a sequence of actions

Can anyone explain to a poor newbie why, after calling
a sequence of actions, each one passing a set of URL
parameters, I end up having in the final URL **all**
the parameters called in the previous actions?  
Thanks in advance. 

 Ric






  ___ 
L'email della prossima generazione? Puoi averla con la nuova Yahoo! Mail:
http://it.docs.yahoo.com/nowyoucan.html

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





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



Re: URL paramters accumulating in a sequence of actions

2007-08-29 Thread Riccardo Mollame
Yes: there I have a sequence of "return SUCCESS" all
with an actions.  Anyway, a good man gave me the
probable solution: using the includeParams="none" in
the s:url tag.
Thanks anyway!

  Ric


--- Antonio Petrelli <[EMAIL PROTECTED]> ha
scritto:

> 2007/8/29, Riccardo Mollame <[EMAIL PROTECTED]>:
> >
> > Can anyone explain to a poor newbie why, after
> calling
> > a sequence of actions, each one passing a set of
> URL
> > parameters, I end up having in the final URL
> **all**
> > the parameters called in the previous actions?
> 
> 
> 
> What do you mean with "sequence of actions"?
> Do you mean that you are into an action and you
> forward to the URL of
> another action?
> 
> Antonio
> 



  ___ 
L'email della prossima generazione? Puoi averla con la nuova Yahoo! Mail: 
http://it.docs.yahoo.com/nowyoucan.html

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



Re: URL paramters accumulating in a sequence of actions

2007-08-29 Thread Antonio Petrelli
2007/8/29, Riccardo Mollame <[EMAIL PROTECTED]>:
>
> Yes: there I have a sequence of "return SUCCESS" all
> with an actions.  Anyway, a good man gave me the
> probable solution: using the includeParams="none" in
> the s:url tag.
> Thanks anyway!



Arnaud was right, I thought that you were writing about Struts 1 (not 2).
Maybe the next time add a [s2] in front of the subject :-)

Antonio


Adding additional parameters to struts 2 tags and accessing them in the ftl files

2007-08-29 Thread afp

Reposting as last post was not very clear

Hi,

   I am trying to add some custom parameters/attributes to the struts2 tags
like  etc...

Some tihing like the below wud have been perfect



and I shud be able to access the parameter abc from within the ftl file like
this 
<#if parameters.abc?exists && parameters.abc == "def">
 ${parameters.abc}
 

This is not quite happenning for me, I tried giving the additional parameter
using the  tag 

  
http://www.nabble.com/Adding-additional-parameters-to-struts-2-tags-and-accessing-them-in--the-ftl-files-tf4347503.html#a12386188
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: URL paramters accumulating in a sequence of actions

2007-08-29 Thread Riccardo Mollame
Thanks!
All my best.

 Ric

--- Arnaud Cogoluegnes <[EMAIL PROTECTED]> ha
scritto:

> To avoid this behavior, use the global settings
> struts.url.includeParams=none in struts.properties
> or the attribute
> includeParams in each url tag (value can be 'none',
> 'get' or 'all')
> 
> 
> -Message d'origine-
> De : Riccardo Mollame [mailto:[EMAIL PROTECTED] 
> Envoyé : mercredi 29 août 2007 13:42
> À : user@struts.apache.org
> Objet : URL paramters accumulating in a sequence of
> actions
> 
> Can anyone explain to a poor newbie why, after
> calling
> a sequence of actions, each one passing a set of URL
> parameters, I end up having in the final URL **all**
> the parameters called in the previous actions?  
> Thanks in advance. 
> 
>  Ric
> 
> 
> 
> 
> 
> 
>   ___ 
> L'email della prossima generazione? Puoi averla con
> la nuova Yahoo! Mail:
> http://it.docs.yahoo.com/nowyoucan.html
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 
> 
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 



  ___ 
L'email della prossima generazione? Puoi averla con la nuova Yahoo! Mail: 
http://it.docs.yahoo.com/nowyoucan.html

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



Get the namespace in a jsp

2007-08-29 Thread Phillip Grenier
I am trying to have a single package that can be used in different
namespaces.
so if it was http://localhost:8080/project/secure/Action.action or
http://localhost:8080/project/Action.action
when the form is submitted to an action it stays in the correct
namespace and also want to switch themes based on the namespace.
I believe with two packages I could manage the namespaces separet but
still couldn't switch on them in the jsp, would prefer not to have 2
separete namespaces.
 
- Phillip


how to init action form when session expires

2007-08-29 Thread Randy Jonasz
Hello everyone,

I have a quick question.  When the user session expires and they try
to submit a form to the server through an open window, I'm finding my
array in my action form is not being populated through the setter
method.  In fact I'm getting the following exception

java.lang.NullPointerException
   at 
org.apache.commons.beanutils.PropertyUtilsBean.getIndexedProperty(PropertyUtilsBean.java:427)

I can eliminate the exception by initializing the array in the form's
constructor.  My question is how can I obtain the size of the array
dynamically?  The array size is determined by the user.

Thanks for any help,

Randy

--
Oscar Developer
McMaster University
75 Frid Street, Hamilton, ON
905 525 9140 x27735

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



Re: how to init action form when session expires

2007-08-29 Thread Antonio Petrelli
Sending the same email 4 times does not help getting an answer...

Antonio

2007/8/29, Randy Jonasz <[EMAIL PROTECTED]>:
>
> Hello everyone,
>
> I have a quick question.  When the user session expires and they try
> to submit a form to the server through an open window, I'm finding my
> array in my action form is not being populated through the setter
> method.  In fact I'm getting the following exception
>
> java.lang.NullPointerException
>at
> org.apache.commons.beanutils.PropertyUtilsBean.getIndexedProperty(
> PropertyUtilsBean.java:427)
>
> I can eliminate the exception by initializing the array in the form's
> constructor.  My question is how can I obtain the size of the array
> dynamically?  The array size is determined by the user.
>
> Thanks for any help,
>
> Randy
>
> --
> Oscar Developer
> McMaster University
> 75 Frid Street, Hamilton, ON
> 905 525 9140 x27735
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: how to init action form when session expires

2007-08-29 Thread Randy Jonasz
oops, sorry.  I kept getting errors from the mailserver so i thought
the message wasn't getting through.

Sorry again,

Randy

On 8/29/07, Antonio Petrelli <[EMAIL PROTECTED]> wrote:
> Sending the same email 4 times does not help getting an answer...
>
> Antonio
>
> 2007/8/29, Randy Jonasz <[EMAIL PROTECTED]>:
> >
> > Hello everyone,
> >
> > I have a quick question.  When the user session expires and they try
> > to submit a form to the server through an open window, I'm finding my
> > array in my action form is not being populated through the setter
> > method.  In fact I'm getting the following exception
> >
> > java.lang.NullPointerException
> >at
> > org.apache.commons.beanutils.PropertyUtilsBean.getIndexedProperty(
> > PropertyUtilsBean.java:427)
> >
> > I can eliminate the exception by initializing the array in the form's
> > constructor.  My question is how can I obtain the size of the array
> > dynamically?  The array size is determined by the user.
> >
> > Thanks for any help,
> >
> > Randy
> >
> > --
> > Oscar Developer
> > McMaster University
> > 75 Frid Street, Hamilton, ON
> > 905 525 9140 x27735
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>


-- 
Oscar Developer
McMaster University
75 Frid Street, Hamilton, ON
905 525 9140 x27735

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



Re: Struts and Weblogic 10.0 issue

2007-08-29 Thread Ashish Kulkarni
Hi
This is the error i get from weblogic console application

Error opening /jsp/app/install/Identity.jsp.
The source of this error is javax.servlet.ServletException:
javax.xml.transform.TransformerException:
javax.xml.transform.TransformerException:
com.sun.org.apache.xml.internal.utils.WrappedRuntimeException: Element type
"input" must be followed by either attribute specifications, ">" or "/>". at
weblogic.servlet.jsp.PageContextImpl.handlePageException(
PageContextImpl.java:418) at
jsp_servlet._jsp._app._install.__identity._jspService(__identity.java:163)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:34) at
weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(
StubSecurityHelper.java:226) at
weblogic.servlet.internal.StubSecurityHelper.invokeServlet(
StubSecurityHelper.java:124) at
weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(
RequestDispatcherImpl.java:503) at
weblogic.servlet.internal.RequestDispatcherImpl.include(
RequestDispatcherImpl.java:431) at
org.apache.beehive.netui.pageflow.scoping.internal.ScopedRequestDispatcher.include
(ScopedRequestDispatcher.java:119) at
com.bea.netuix.servlets.controls.content.JspContent.beginRender(
JspContent.java:541) at
com.bea.netuix.servlets.controls.content.NetuiContent.beginRender(
NetuiContent.java:363) at com.bea.netuix.nf.ControlLifecycle$7.visit(
ControlLifecycle.java:483) at
com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(
ControlTreeWalker.java:518) at
com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(
ControlTreeWalker.java:529) at
com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(
ControlTreeWalker.java:529) at
com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(
ControlTreeWalker.java:529) at
com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(
ControlTreeWalker.java:529) at
com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(
ControlTreeWalker.java:529) at com.bea.netuix.nf.ControlTreeWalker.walk(
ControlTreeWalker.java:220) at com.bea.netuix.nf.Lifecycle.processLifecycles




On 8/28/07, Paul Benedict <[EMAIL PROTECTED]> wrote:
>
> Can you paste in the line of the JSP that is erring?
>
> On 8/28/07, Ashish Kulkarni <[EMAIL PROTECTED]> wrote:
> >
> > Hi
> > It seems that weblogic console application may have error installing
> > application developed using struts, i was able to deploy the application
> > using command on dos
> >
> > Ashish
> >
> > On 8/28/07, Ashish Kulkarni <[EMAIL PROTECTED]> wrote:
> > >
> > > Hi
> > > This is an existing application, which was running on websphere and
> > > tomcat, and now have to installed on weblogic 10.0
> > > So what is the work around, to get this application installed and
> > running
> > > on weblogic,
> > > I got the error when installing this application on weblogic
> > >
> > > Ashish
> > >
> > > On 8/28/07, John Liptak <[EMAIL PROTECTED]> wrote:
> > > >
> > > >
> > > > Weblogic 9+ includes struts with weblogic, so you may not be running
> > > > 1.2.6
> > > > unless you have taken care to preferr your applications classes over
> > the
> > > > standard version.  To read more, look at
> > > >
> http://e-docs.bea.com/wls/docs90/programming/classloading.html#1082452
> > > >
> > > > While there isn't 10 specific information on this page, the general
> > > > struts
> > > > support information is at
> > > >
> > > >
> >
> http://support.bea.com/application_content/product_portlets/support_patterns/wls/InvestigatingStrutsWithWebLogicServerPattern.html#Debugging_the_WebLogic_Classloader
> > > >
> > > > Another possibility is that wls 10 is using a different XML parser
> > that
> > > > is
> > > > catching an error that was not caught before.
> > > >
> > > > It looks like you are getting the exception during install
> > > > (correct?).  I
> > > > would try turning off jsp pre-compilation for your application and
> try
> > > > and
> > > > get the error at runtime, vs. application deployment.
> > > >
> > > > Other than that, can you show the input field that is causing the
> > > > exception?
> > > >
> > > >
> > > > Ashish Kulkarni-2 wrote:
> > > > >
> > > > > Hi
> > > > > Has anybody run into problem installting struts based web
> > application
> > > > on
> > > > > Weblogic 10.0?
> > > > > I have a struts application using struts 1.2.6, which i am trying
> to
> > > > > install
> > > > > on weblogic and i keep getting the following error
> > > > > This application works fine in Websphere, tomcat, Sun
> > > > >
> > > > > Error opening /jsp/app/install/Identity.jsp.
> > > > > The source of this error is javax.servlet.ServletException:
> > > > > javax.xml.transform.TransformerException:
> > > > > javax.xml.transform.TransformerException :
> > > > > com.sun.org.apache.xml.internal.utils.WrappedRuntimeException:
> > Element
> > > > > type
> > > > > "input" must be followed by either attribute specif

Re: 2 jsp files using the same form

2007-08-29 Thread Anna Simbirtsev
This is how the submit button is defined:


varimage is defined as a tag in app.tld file:

varimage
/struts/taglib/varTag

accesskey
false
true


alt
false
true


altKey
false
true


In its definition, I can set the value.
But how do I retrieve the value in the form class?

public ActionErrors validate(ActionMapping mapping,HttpServletRequest
request)
 {

Those are the only parameters I receive in the validate function.

Thank you


On 8/28/07, Oleg Mikheev <[EMAIL PROTECTED]> wrote:
>
> Anna Simbirtsev wrote:
> > Hello
> > I have 2 screens that use the same form. The form class has a validate
> > function. To distinguish which screen(jsp file) is using the form I do
> the
> > following in jsp files:
> >
> > <% session.setAttribute("page", "add") %>
> > <% session.setAttribute("page", "add_2") %>
> >
> > Then in the form class I grab that value and figure out what values to
> > validate.
> > Is it a good way to do it?
>
>
> You should distinguish between two forms by passing different
> values of submit buttons (in my opinion)
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Anna Simbirtsev
(416) 729-7331


Re: how to init action form when session expires

2007-08-29 Thread Pavel Sapozhnikov
Yea you gotta filter that stuff in your gmail

On 8/29/07, Randy Jonasz <[EMAIL PROTECTED]> wrote:
>
> oops, sorry.  I kept getting errors from the mailserver so i thought
> the message wasn't getting through.
>
> Sorry again,
>
> Randy
>
> On 8/29/07, Antonio Petrelli <[EMAIL PROTECTED]> wrote:
> > Sending the same email 4 times does not help getting an answer...
> >
> > Antonio
> >
> > 2007/8/29, Randy Jonasz <[EMAIL PROTECTED]>:
> > >
> > > Hello everyone,
> > >
> > > I have a quick question.  When the user session expires and they try
> > > to submit a form to the server through an open window, I'm finding my
> > > array in my action form is not being populated through the setter
> > > method.  In fact I'm getting the following exception
> > >
> > > java.lang.NullPointerException
> > >at
> > > org.apache.commons.beanutils.PropertyUtilsBean.getIndexedProperty(
> > > PropertyUtilsBean.java:427)
> > >
> > > I can eliminate the exception by initializing the array in the form's
> > > constructor.  My question is how can I obtain the size of the array
> > > dynamically?  The array size is determined by the user.
> > >
> > > Thanks for any help,
> > >
> > > Randy
> > >
> > > --
> > > Oscar Developer
> > > McMaster University
> > > 75 Frid Street, Hamilton, ON
> > > 905 525 9140 x27735
> > >
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> >
>
>
> --
> Oscar Developer
> McMaster University
> 75 Frid Street, Hamilton, ON
> 905 525 9140 x27735
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Pavel Sapozhnikov
xFact, Inc
[EMAIL PROTECTED]


Using ActionMapper interface

2007-08-29 Thread Pavel Sapozhnikov
Hey guys I need some help using the ActionMapper interface so I know I need
to implement which means I need to make those two methods. Now I am not
exactly sure what those methods do. The ultimate goal that I want to achieve
is I want in my struts.xml to have one action per Action class (real java)
and then I want to make two parameters appContext and appAction and
basically set my method name into appAction parameter and it would call
appropriate method based on appAction and  appContext would basically be the
action name so if I want to call like completely different action I would
use appContext to do that. Anyway if I could get some help that would be
terrific thanks.

-- 
Pavel Sapozhnikov
xFact, Inc
[EMAIL PROTECTED]


Re: Struts and Weblogic 10.0 issue

2007-08-29 Thread John Liptak

Know bug CR321242.  Vote for it if you have a support contract.


-- 
View this message in context: 
http://www.nabble.com/Struts-and-Weblogic-10.0-issue-tf4341662.html#a12388355
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 and Weblogic 10.0 issue

2007-08-29 Thread Ashish Kulkarni
Done, voted for it
On 8/29/07, John Liptak <[EMAIL PROTECTED]> wrote:
>
>
> Know bug CR321242.  Vote for it if you have a support contract.
>
>
> --
> View this message in context:
> http://www.nabble.com/Struts-and-Weblogic-10.0-issue-tf4341662.html#a12388355
> 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 and Weblogic 10.0 issue

2007-08-29 Thread Paul Benedict
Can I actually see the line of the JSP that fails? You showed me the stack
trace. I want to see the actual JSP line.

On 8/29/07, Ashish Kulkarni <[EMAIL PROTECTED]> wrote:
>
> Done, voted for it
> On 8/29/07, John Liptak <[EMAIL PROTECTED]> wrote:
> >
> >
> > Know bug CR321242.  Vote for it if you have a support contract.
> >
> >
> > --
> > View this message in context:
> >
> http://www.nabble.com/Struts-and-Weblogic-10.0-issue-tf4341662.html#a12388355
> > Sent from the Struts - User mailing list archive at Nabble.com.
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>


Validation chaining in struts2

2007-08-29 Thread Pavel Sapozhnikov
Hey guys. Could somebody provide some input on validation chaining in s2.
Here's what I need to do. So there has to be a base validation which would
validate variable x and variable y then every other class has its own
validation for example Login class would validate if username and password
exist but the prerequisite is that base validation should pass. How do I do
that in struts2. Any input would be appreciated. Thanks.

-- 
Pavel Sapozhnikov
xFact, Inc
[EMAIL PROTECTED]


Re: Struts and Weblogic 10.0 issue

2007-08-29 Thread Ashish Kulkarni
Hi
 I cannot give you the actual JSP as this JSP is not with in my application,
this is a JSP in weblogic console
application, It can only be obtained from BEA i guess.

Ashish



On 8/29/07, Paul Benedict <[EMAIL PROTECTED]> wrote:
>
> Can I actually see the line of the JSP that fails? You showed me the stack
> trace. I want to see the actual JSP line.
>
> On 8/29/07, Ashish Kulkarni <[EMAIL PROTECTED]> wrote:
> >
> > Done, voted for it
> > On 8/29/07, John Liptak <[EMAIL PROTECTED]> wrote:
> > >
> > >
> > > Know bug CR321242.  Vote for it if you have a support contract.
> > >
> > >
> > > --
> > > View this message in context:
> > >
> >
> http://www.nabble.com/Struts-and-Weblogic-10.0-issue-tf4341662.html#a12388355
> > > Sent from the Struts - User mailing list archive at Nabble.com.
> > >
> > >
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> >
>


struts 2 locale in action and jsp

2007-08-29 Thread GEDA

I know I have to use the getText() method in action in order to get a message
from the package.properties file. The same for jsp with http://www.nabble.com/struts-2-locale-in-action-and-jsp-tf4348494.html#a12389586
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] Type Coversion in nested bean.

2007-08-29 Thread Boon Leng

Hi,

I'm trying to use type conversion for nested bean. I have no problem
populating the bean if the List is not nested inside another bean. Does
struts 2 able to perform type conversion for nested bean?
Any help would be appreciated. Thanks.

JSP
---


SampleAction-conversion.properties
---
Element_user.roles=com.intelopus.app.model.Role
KeyProperty_user.roles=roleId
CreateIfNull_user.roles=true
-- 
View this message in context: 
http://www.nabble.com/-S2--Type-Coversion-in-nested-bean.-tf4348629.html#a12389905
Sent from the Struts - User mailing list archive at Nabble.com.


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



ant, maven and creating war's

2007-08-29 Thread sp4rc
Hello listmembers, 

I am new to all this java webapplication stuff, but I hope you can help
me to get into this great technologies.

So far I have got my tomcat server (5.5.23-r6) up and runnig,
struts-2.0.9 is on my system (gentoo-linux) and I was able to deploy the
sample war "blank" ([1] tree output). Now I would like to follow the
struts tutorial [2] and create my own war file from scratch... 

But the problem is, that simply don't know how to create a war file
using ant or even maven. Can you point me to the right direction? 

What is this MANIFEST.MF about? 

Does ant or maven compile any sourcecode, or is it just packin the files
and the servlet-container compiles the first time it gets run? 

How does the filestructure of my sources have to look like befor using
[ant|maven]? 

Regs
/sp4rc

[1]
/var/lib/tomcat-5.5/webapps/struts2-blank-2.0.9
|-- META-INF
|   |-- MANIFEST.MF
|   `-- maven
|   `-- org.apache.struts
|   `-- struts2-blank
|   |-- pom.properties
|   `-- pom.xml
|-- WEB-INF
|   |-- classes
|   |   |-- LICENSE.txt
|   |   |-- NOTICE.txt
|   |   |-- example
|   |   |   |-- ExampleSupport.class
|   |   |   |-- HelloWorld.class
|   |   |   |-- Login-validation.xml
|   |   |   |-- Login.class
|   |   |   |-- package.properties
|   |   |   `-- package_es.properties
|   |   |-- example.xml
|   |   `-- struts.xml
|   |-- lib
|   |   |-- commons-logging-1.0.4.jar
|   |   |-- freemarker-2.3.8.jar
|   |   |-- ognl-2.6.11.jar
|   |   |-- struts2-core-2.0.9.jar
|   |   `-- xwork-2.0.4.jar
|   |-- src
|   |   `-- java
|   |   |-- LICENSE.txt
|   |   |-- NOTICE.txt
|   |   |-- example
|   |   |   |-- ExampleSupport.java
|   |   |   |-- HelloWorld.java
|   |   |   |-- Login-validation.xml
|   |   |   |-- Login.java
|   |   |   |-- build.bat
|   |   |   |-- package.properties
|   |   |   `-- package_es.properties
|   |   |-- example.xml
|   |   `-- struts.xml
|   `-- web.xml
|-- example
|   |-- HelloWorld.jsp
|   |-- Login.jsp
|   |-- Menu.jsp
|   |-- Missing.jsp
|   |-- Register.jsp
|   `-- Welcome.jsp
`-- index.html

[2] http://struts.apache.org/2.x/docs/simple-setup.html



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



Info about Calendar with Struts 1.x

2007-08-29 Thread john lee
could anyone tell me the info about calendar tag with Struts 1.x if any ?
   
  tks in advance
   
  john

   
-
Building a website is a piece of cake. 
Yahoo! Small Business gives you all the tools to get online.

[OT] Re: ant, maven and creating war's

2007-08-29 Thread nuwan chandrasoma
Hi,

Just google it, here are some of the links that may be useful to you

http://www.roseindia.net/jboss/buildingwebapplicationwithant.shtml

http://www.onjava.com/pub/a/onjava/2003/01/08/tomcat4.html?page=1

Thanks,

Nuwan

On 8/29/07, sp4rc <[EMAIL PROTECTED]> wrote:
>
> Hello listmembers,
>
> I am new to all this java webapplication stuff, but I hope you can help
> me to get into this great technologies.
>
> So far I have got my tomcat server (5.5.23-r6) up and runnig,
> struts-2.0.9 is on my system (gentoo-linux) and I was able to deploy the
> sample war "blank" ([1] tree output). Now I would like to follow the
> struts tutorial [2] and create my own war file from scratch...
>
> But the problem is, that simply don't know how to create a war file
> using ant or even maven. Can you point me to the right direction?
>
> What is this MANIFEST.MF about?
>
> Does ant or maven compile any sourcecode, or is it just packin the files
> and the servlet-container compiles the first time it gets run?
>
> How does the filestructure of my sources have to look like befor using
> [ant|maven]?
>
> Regs
> /sp4rc
>
> [1]
> /var/lib/tomcat-5.5/webapps/struts2-blank-2.0.9
> |-- META-INF
> |   |-- MANIFEST.MF
> |   `-- maven
> |   `-- org.apache.struts
> |   `-- struts2-blank
> |   |-- pom.properties
> |   `-- pom.xml
> |-- WEB-INF
> |   |-- classes
> |   |   |-- LICENSE.txt
> |   |   |-- NOTICE.txt
> |   |   |-- example
> |   |   |   |-- ExampleSupport.class
> |   |   |   |-- HelloWorld.class
> |   |   |   |-- Login-validation.xml
> |   |   |   |-- Login.class
> |   |   |   |-- package.properties
> |   |   |   `-- package_es.properties
> |   |   |-- example.xml
> |   |   `-- struts.xml
> |   |-- lib
> |   |   |-- commons-logging-1.0.4.jar
> |   |   |-- freemarker-2.3.8.jar
> |   |   |-- ognl-2.6.11.jar
> |   |   |-- struts2-core-2.0.9.jar
> |   |   `-- xwork-2.0.4.jar
> |   |-- src
> |   |   `-- java
> |   |   |-- LICENSE.txt
> |   |   |-- NOTICE.txt
> |   |   |-- example
> |   |   |   |-- ExampleSupport.java
> |   |   |   |-- HelloWorld.java
> |   |   |   |-- Login-validation.xml
> |   |   |   |-- Login.java
> |   |   |   |-- build.bat
> |   |   |   |-- package.properties
> |   |   |   `-- package_es.properties
> |   |   |-- example.xml
> |   |   `-- struts.xml
> |   `-- web.xml
> |-- example
> |   |-- HelloWorld.jsp
> |   |-- Login.jsp
> |   |-- Menu.jsp
> |   |-- Missing.jsp
> |   |-- Register.jsp
> |   `-- Welcome.jsp
> `-- index.html
>
> [2] http://struts.apache.org/2.x/docs/simple-setup.html
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: ant, maven and creating war's

2007-08-29 Thread Jim Cushing
I haven't touched Ant in years, so I can't help you much there, but  
with Maven 2, it's as simple as running 'mvn package'. The POM itself  
says whether the project produces a JAR, WAR, or some other artifact,  
so package always builds the appropriate artifact for the project.  
For a web app, that is of course a WAR, for something else, it may be  
a JAR.


For development, you might want to try using Jetty instead of Tomcat,  
because Maven 2 has a plugin that makes this really simple. Add the  
following to your POM:




org.mortbay.jetty
maven-jetty-plugin
6.1.5

10
  
		implementation="org.mortbay.jetty.nio.SelectChannelConnector">

  7171






You can set the port to whatever you want (7171 in this example),  
just make sure it doesn't conflict with anything else you have running.


Then, run 'mvn jetty:run', and a Jetty server will fire up. Nothing  
to install.


Go to http://localhost:7171/ in a browser, and you'll see a link to  
your application.


Now, the really fun part begins: Make changes to your application.  
Edit your pages, your actions, and your configuration, and Jetty will  
pick up those changes without you having to rebuild. Changes to your  
Java code or configuration will cause Jetty to restart your web app,  
automatically, though it may take several seconds. Page changes, of  
course, are picked up without a restart.


Sometimes, I'll find that Jetty does hang on me and ctrl-c won't kill  
the maven/jetty process. If that's the case, just hit ctrl-z to put  
it in the background, 'ps' to get the PID, and 'kill -9 ' to  
force it to quit. Run 'mvn jetty:run' again. But even if you find  
that happening to you 2-4 times a day, it's so much faster than  
WARing it up and pushing it to Tomcat. Plus, anyone on your team can  
use this same command, as they don't have to install or configure  
Tomcat.


On Aug 29, 2007, at 12:07 PM, sp4rc wrote:


Hello listmembers,

I am new to all this java webapplication stuff, but I hope you can  
help

me to get into this great technologies.

So far I have got my tomcat server (5.5.23-r6) up and runnig,
struts-2.0.9 is on my system (gentoo-linux) and I was able to  
deploy the

sample war "blank" ([1] tree output). Now I would like to follow the
struts tutorial [2] and create my own war file from scratch...

But the problem is, that simply don't know how to create a war file
using ant or even maven. Can you point me to the right direction?

What is this MANIFEST.MF about?

Does ant or maven compile any sourcecode, or is it just packin the  
files

and the servlet-container compiles the first time it gets run?

How does the filestructure of my sources have to look like befor using
[ant|maven]?

Regs
/sp4rc

[1]
/var/lib/tomcat-5.5/webapps/struts2-blank-2.0.9
|-- META-INF
|   |-- MANIFEST.MF
|   `-- maven
|   `-- org.apache.struts
|   `-- struts2-blank
|   |-- pom.properties
|   `-- pom.xml
|-- WEB-INF
|   |-- classes
|   |   |-- LICENSE.txt
|   |   |-- NOTICE.txt
|   |   |-- example
|   |   |   |-- ExampleSupport.class
|   |   |   |-- HelloWorld.class
|   |   |   |-- Login-validation.xml
|   |   |   |-- Login.class
|   |   |   |-- package.properties
|   |   |   `-- package_es.properties
|   |   |-- example.xml
|   |   `-- struts.xml
|   |-- lib
|   |   |-- commons-logging-1.0.4.jar
|   |   |-- freemarker-2.3.8.jar
|   |   |-- ognl-2.6.11.jar
|   |   |-- struts2-core-2.0.9.jar
|   |   `-- xwork-2.0.4.jar
|   |-- src
|   |   `-- java
|   |   |-- LICENSE.txt
|   |   |-- NOTICE.txt
|   |   |-- example
|   |   |   |-- ExampleSupport.java
|   |   |   |-- HelloWorld.java
|   |   |   |-- Login-validation.xml
|   |   |   |-- Login.java
|   |   |   |-- build.bat
|   |   |   |-- package.properties
|   |   |   `-- package_es.properties
|   |   |-- example.xml
|   |   `-- struts.xml
|   `-- web.xml
|-- example
|   |-- HelloWorld.jsp
|   |-- Login.jsp
|   |-- Menu.jsp
|   |-- Missing.jsp
|   |-- Register.jsp
|   `-- Welcome.jsp
`-- index.html

[2] http://struts.apache.org/2.x/docs/simple-setup.html



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




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



Re: S2 Ajax : Static files - what, where?

2007-08-29 Thread Oleg Mikheev

j alex wrote:

If you don't mind can you please paste the  includes and directory
structure where you placed the actual files (in relation to the webapp
root). I tried going thru the saved HTML output from S2 showcase example and
got a bunch of js files ; but not able to place them correctly in the webapp
; getting upto speed on Dojo concepts will take me some time, and i don't
have that luxury :-(

You don't have to work with JS files at all
You just put a