hi
i am using simple theme for struts 2.0.11.2
i have define s:actionerror/
s:fielderror /
also works fine ,
but i want to change border color of particular field when error comes
can anybody gives idea
thanks in advance
--
View this message in context:
hi
i am using simple theme for struts 2.0.11.2
i have define s:actionerror/
s:fielderror /
also works fine ,
but i want to change border color of particular field when error comes
can anybody gives idea
thanks in advance
--
View this message in context:
May I didn't explain myself correctly. What I would like to know is how to
validate multiple fields. I'll write an example. I have a form in a JSP which
generate the field dynamically. E.g:
s:form action=editPerson theme=simple validate=false
table
tr
thID/th
hope this help to you http://hardik4u.wordpress.com
Anoop-9 wrote:
Hi,
We are looking forward to integrating struts with hibernate in our web
application project. Could you guide us on how to to integrate them. I
tried the hibernate plugin as recommended on the hibernate website,
Hi, all
When I use s:form namespace=website action=edit/s:form, everything
works well, struts2 generate the html as below:
form id=XXX action=/myapp/website/edit/form
But when I want to add some parameters, and change the code as:s:form
namespace=website action=edit/%{id}/s:form,struts looks
thanks
i dont know how to create custom theme for that but
i have done manually
STYLE type=text/css
s:iterator value=fieldErrors
#s:property value=key/,
/s:iterator
{
border-color: #FFE6F7;
}
/STYLE
Torsten Krah wrote:
Am Donnerstag, 16. Oktober 2008 09:14:19 schrieb
No i want to get this arraylist using YUI Ajax functionality
i have a drop down in my jsp page and i am calling the ajax function with
onChange event the code which i have used for calling my action class is
working fine and even i am able to hot my action class using YUI APIbut what
i want is
That's the way you should not do it, I still don't understand what are you
doing there, though
There is an attribute called cssClass and cssStyle
s:fielderror cssClass=className/
style type=text/css
. className {
border:1px solid #cc;
}
/style
s:fielderror
--- On Wed, 10/15/08, Haulyn Jason wrote:
So, I want to know the details of the interceptorStack of
rest-default package. Or is there a way to find reference?
Looks like you found it.
Is this the default interceptor stack for rest plugin?
One line later:
default-interceptor-ref
Hi,
I am using struts1.2
I need to have a jsp page that has a form with two comboboxes or listboxes
and a submit button, so the user can transfer data between the two comboboxes
and the press submit button to update the database.
is there any small example on how to get data
You may want to look at type conversion [1] and VisitorValidator [2]
to validate those form fields.
Also, please note that collection indexing is done with [square]
brackets, like in: persons[2].name
[1]
Thanks Dave, it works well now. I need to make my package extends to
rest-default or setup the interceptorStack as rest-default's style.
---
Thanks!
Mobile: +086-15864011231
Website:http://www.openmotel.cn
http://www.vvthumb.com
GTalk:[EMAIL PROTECTED]
Hi All,
I am trying to integrate struts2 with YUI ,but facing some problems with
this. I want that when my action get called by YUI it must return a
arrayList of string which i must be able to handle using the YUI.
For this i took the help of example from YUI site and able to hit the action
but
Hi,
I'm using struts2. I want to make a drop down (s:select /) as a read only
element. If I use disabled attribute the data would be lost upon submission.
So I can't use disabled.
How do I make it read only without losing the data while submission?
Thanks,
Arunabh
--
View this message in
hi
you can use
s:iterator
s:property
/S:iterator
for getting array list of valuestack
but you should setter and getter for this arraylist for accessing it from
jsp side
shekher awasthi wrote:
Hi All,
I am trying to integrate struts2 with YUI ,but facing some
Try picking one of the suggestions from here:
http://www.experts-exchange.com/Programming/Languages/Java/J2EE/JSP/Q_23
689617.html
-Original Message-
From: arunabh [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 16, 2008 10:13 AM
To: user@struts.apache.org
Subject: Want to make
thanks for the links gabriele
If I had to make a suggestion to the xwork committers I would suggest their
attribute configurations be a bit more specific
so instead of Login-validation.xml configured as
validators
...
field name=user
field-validator type=visitor
param
I have struts application running in windows-xp., jdk1.5, apache-tomcat-5.5
I moved the same application to linux, jdk1.6.0-10, and apache-tomcat 5.5.26
I am getting following error on linux system.
HTTP Status 500 -
description : The server encountered an internal error () that
Am Donnerstag, 16. Oktober 2008 09:14:19 schrieb Hardik Shah:
can anybody gives idea
Make a custom theme for your tag you want to get a custom border and add your
css definition there.
Another solution would be, to use s:if and look in the fielderror List for a
failure for your field and if
sorry for using another mail box for posting the question i am geting some
problem in my ID while posting the question in the mail listso i have
used my alternative ID.
On Thu, Oct 16, 2008 at 4:31 PM, aum strut [EMAIL PROTECTED] wrote:
No i want to get this arraylist using YUI Ajax
Hi,
How can I check if my session is timed out and redirect then to the login page?
Regards,
Paco
_
Llega la nueva temporada. Consulta las nuevas tendencias en MSN Estilo
http://estilo.es.msn.com/moda/
I think the usual method is to have some kind of authentication
interceptor on your stack. If it cannot find a
User/Login/Authentication object in the session for the current request,
then it redirects to the login page. That's all server-side, of course.
Francisco Exposito wrote:
Hi,
How
Finally figured this one out! I am using the YSlow plugin to Firefox and it
is causing a second HTTP GET to gather information about the site. Thanks
for the heads up on using the Live HTTP headers plugin to help catch this
beast.
aum strut wrote:
well i did what you have mntioned in ur
Hi,
I have a long representing a date. How can I get the date and time
associated in a jspx?
I tried:
format.date.short={0, date, short}
format.time.short={0, time, short}
s:text name=format.date.shorts:param value=${value}/
s:text name=format.time.shorts:param value=${value}/
But it gives
Hi all,
Sorry, I don't know which mailing list to contact so...
I will try to explain as I can my problem :
* I use Struts 2, my actions are defined with Annotations.
* I have a struts.xml very simple, only defining a default page,
here it is :
?xml version=1.0
How about something like:
s:text name=format.date.shorts:param value=${new Date(value)}/
s:text name=format.time.shorts:param value=${new Date(value)}/
(disclaimer: haven't actually run it yet)
Tobin
On Thu, Oct 16, 2008 at 11:42 AM, Pablo Vázquez Blázquez
[EMAIL PROTECTED] wrote:
Hi,
I
The cleanest way would probably be to add an accessor to your Action that
return new Date(value). Something like:
public Date getDateValue () {
return new Date(value);
}
Then in your page you can use:
s:text name=format.date.shorts:param value=${dateValue}//s:text
s:text
your web.xml contains a session-timeout parameter set e.g.
session-config
session-timeout30/session-timeout
/session-config
from my understanding..regular catalina SSL or non-SSL connector has no ability
to understand events
you may want to look at implementing NIOConnector which will
Thanks both.
Pablo Vázquez Blázquez escribió:
Hi,
I have a long representing a date. How can I get the date and time
associated in a jspx?
I tried:
format.date.short={0, date, short}
format.time.short={0, time, short}
s:text name=format.date.shorts:param value=${value}/
s:text
Hi Anoop,
YOu can use the JNDI context to get the Hibernate's SessionFactory.
1)
in hibernate-cfg.xml give the jndi name as below
hibernate-configuration
session-factory name=HibernateSessionFactory
2)
in one of your startup servlet or first class handling the request for
session
Hello All,
What is the recommendation for sharing data between actions? I have one
action that performs a search and displays the results in a JSP page.
That results page contains links to another action in which I'd like to
have access to the original search results. My first instinct was
This is the million dollar question! Always strive to hold onto the least
amount of data possible. This usually means for as long as it takes to
build the web page.Use the request scope unless you *must* access the
*same* data later. At which point you should save only *keys* to the actual
If you want a Struts-y solution, you could take a look at the patch to
this JIRA -
https://issues.apache.org/struts/browse/WW-2635
It implements a flash scope, which sounds like what you're looking
for.
-Wes
On Thu, 2008-10-16 at 16:47 -0500, [EMAIL PROTECTED] wrote:
This is the million
Hi,
Has anyone run the struts2-blank-2.0.11.2.war in RAD7/WebSphere? I get 404
on calling an action.
First, https://localhost:9444/testo/example/HelloWorld.jsp works.
Then the action 404's:
https://localhost:9444/testo/example/HelloWorld.action?request_locale=en
I validated the HelloWorld.class
I have to build a list of display items from a legacy system which takes a
while to process.
I¹ve set up the execute and wait interceptor and that part of it is working
well.
Where I¹m running into problems is when the long running process is complete
and sitemesh. My decorator file has the
Hi,
I am trying to attach javascript event onkeypress with autocompleter tag but
can't. I can't seem to attach any event for that matter. Can anyone throw any
light on it? Please find my code details below.
Thanks.
My code:
s:autocompleter showDownArrow=false
Hi ,
Thank you for the reply . But the side you reffered me to , they charge
money for signing up . And without signing up i can't see the solutions . So
could tell me what is the solution for the problem .
With Regards
Arunabh
Kawczynski, David wrote:
Try picking one of the suggestions
styl9090 wrote:
Hi,
I am using struts 2 in my current project.
How can I write the action dynamically in my JSP form tag?
Here is the example: This case, I have my form action is in session.
s:form name=sampleForm action=
I have tried using below, which didn't work:
s:form name=openForm
38 matches
Mail list logo