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
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
())) {
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
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
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
.
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
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
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]
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
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
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
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
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
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]
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
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]
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
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
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]
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]
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
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
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
23 matches
Mail list logo