Struts 2 and an array of textfields

2008-03-26 Thread Eugen Stoianovici
How do i handle an array of textfields? I have a form from which the user must check a list of checkboxes and enter some text in a textfield that must be associated with a textbox My action extends ActionSupport and i'm using s2

[S2]ActionSupport set parameters question.

2007-10-22 Thread Eugen Stoianovici
and, even though the form si set to not perform validation. I want to handle errors trough code (rather than providing an xml for it). What do i need to override to handle this type or errors? -- Regards, Eugen Stoianovici

Re: [S2]ActionSupport set parameters question.

2007-10-22 Thread Eugen Stoianovici
())) { addActionError(getText(user.address.empty)); } } Have a look at http://today.java.net/pub/a/today/2006/01/19/webwork-validation.html --- Eugen Stoianovici [EMAIL PROTECTED] wrote: I'm having trouble understanding how ActionSupport works. I've extended ActionSupport to handle a form page

[s2]struts-2-spring-2-jpa-ajax tutorial

2007-09-27 Thread Eugen Stoianovici
I've started learning struts based on this tutorial which (from my limited experience) is a good starting point. There's on problem for me though. It gets frustrating implementing all my persistence related calls in a service class. Is there a way to instantiate my action classes with an

[S2] action mappings help

2007-09-19 Thread Eugen Stoianovici
a The requested resource (/myapp/subfolder/welcome.action) is not available from my server. If i point my browser to http://website/myapp/subfolder/welcome.action (ie: if i type this in) everything works out just fine. What am i doing wrong? Thanks Eugen Stoianovici

Re: [S2] action mappings help

2007-09-19 Thread Eugen Stoianovici
. jsp:forward page=/myapp/subfolder/welcome.action/ Use: % String redirectAction = /myapp/subfolder/welcome.action; response.sendRedirect(redirectAction); % On 9/19/07, Eugen Stoianovici [EMAIL PROTECTED] wrote: I'm trying to create an index with an action mapped to it for a subfolder in my

Re: JAAS struts 2 Tutorial?

2007-09-17 Thread Eugen Stoianovici
just can't picture it yet in a real app. I know I'm not being helpful here, sorry. But if anyone wants to write a tutorial on this, it would be greatly appreciated regards Eugen Stoianovici Muhammad Momin Rashid wrote: Hello Tom, Thanks for your continued input. The application isn't simple

s:property/ and number format

2007-09-10 Thread Eugen Stoianovici
I want to display a number (double) into a jsp using a certain format (2 decimals). What's the best way to do it? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

[S2] Integrating with springframework and tiles

2007-08-30 Thread Eugen Stoianovici
I'm using using struts 2.0.9 with springframework 2.0.6 and i want to use tiles as a template engine. Now in struts1 i would use org.apache.struts.tiles.xmlDefinition.I18nFactorySet to initialize the org.springframework.web.servlet.view.tiles.TilesConfigurer but there's no such class in

Re: [S2] Integrating with springframework and tiles

2007-08-30 Thread Eugen Stoianovici
wouldn't this affect the spring listener? George Dadulescu wrote: Just add the tile listener in the web.xml file of your application and set a tiles result type in the struts.xml file. On 8/31/07, Eugen Stoianovici [EMAIL PROTECTED] wrote: I'm using using struts 2.0.9 with springframework

Re: [S2][Tabbed panel] posting data from one tab

2007-08-19 Thread Eugen Stoianovici
Alvaro Sanchez-Mariscal wrote: Hi, I've done the same using topics: 1) Publish on a topic after the request is executed (eg, notifyTopics=/submit in the s:submit). 2) Register to the same topic in the s:div corresponding to the tab (eg, listenTopics=/submit in the s:div). Alvaro. Can

Re: [S2][Tabbed panel] posting data from one tab

2007-08-19 Thread Eugen Stoianovici
Alvaro Sanchez-Mariscal wrote: Try prepending an slash, ie, /addProduct. Without it, it also didn't worked to me. Also, what happens exactly? Javascript errors? Have you tried inspecting it with firebug? Alvaro. On 8/19/07, Eugen Stoianovici [EMAIL PROTECTED] wrote: I've tried

Re: action mappings help

2007-08-17 Thread Eugen Stoianovici
Laurie Harper wrote: Eugen Stoianovici wrote: I'm using struts 2.0.9. Where do i read about action mappings and how to configure them? In the Struts2 documentation of course ;-) These pointers may help: http://struts.apache.org/2.x/docs/action-configuration.html http://struts.apache.org/2.x

[S2] session question

2007-08-17 Thread Eugen Stoianovici
how do i get a handle to Session / Request from an action implementing import com.opensymphony.xwork2.Preparable;? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: [S2] session question

2007-08-17 Thread Eugen Stoianovici
Laurie Harper wrote: Eugen Stoianovici wrote: how do i get a handle to Session / Request from an action implementing import com.opensymphony.xwork2.Preparable;? http://struts.apache.org/2.x/docs/how-do-we-get-access-to-the-session.html http://struts.apache.org/2.x/docs/how-can-we-access

struts irc channel?

2007-08-17 Thread Eugen Stoianovici
Is there a struts support channel?(other than the one on irc.freenode.net which only has 4 or 5 members) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

[S2][Tabbed panel] posting data from one tab

2007-08-17 Thread Eugen Stoianovici
i have a tabbedpanel which displays several tabs one of which contains a form. How do i turn back to that tab after i've pressed the submit button on that form? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

action mappings help

2007-08-16 Thread Eugen Stoianovici
I'm using struts 2.0.9. Where do i read about action mappings and how to configure them? Is there any detailed documentation? Right now i'm doing something like this...but i don't really know why i need the result name=input tag and couldn't find any info about it on my own: action

[action question]

2007-08-16 Thread Eugen Stoianovici
can i forward an action to another action using the result tag in action mappings? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: [action question]

2007-08-16 Thread Eugen Stoianovici
Dave Newton wrote: can i forward an action to another action using the result tag in action mappings? Yes; result type is redirect-action [1] ([2] for all types). See [3] regarding action mapping configuration. d. [1] http://struts.apache.org/2.x/docs/redirect-action-result.html [2]

tomcat 5.5 authentication question

2007-08-14 Thread Eugen Stoianovici
I'm very new to struts (and java for that matter) so my question might be stupid but here goes: I have an application that is based on companies and employees. Each employee may have a single company. Also each employee has a user (which is used by tomcat for authentication/authorization) and

struts 2.0.8 problem implementing filter

2007-08-10 Thread Eugen Stoianovici
i'm trying to use a custom filter to implement authorization and i can't get the damned thing to work (i'm an absolute beginner, be warned). i'm using struts2.0.8 with tomcat 5.5 my doFilter method looks like this public class AuthorizationFilter implements Filter { public void

struts2.0.8 javax.servlet.Filter implementation problem

2007-08-10 Thread Eugen Stoianovici
i'm trying to use a custom filter to implement authorization and i can't get the damned thing to work (i'm an absolute beginner, be warned). i'm using struts2.0.8 with tomcat 5.5 my doFilter method looks like this public class AuthorizationFilter implements Filter { public void