It's a standard build in validation of the validator see
http://struts.apache.org/userGuide/dev_validator.html
Gr,
Bram
I'm looking for a regular expression or something I can plug into Struts
1.2 to validate e-mail addresses off of a DynaForms. Anyone have any
pointers?
Thanks.
Also, look at the nested struts taglib.
/mats
-Ursprungligt meddelande-
Från: Michael Jouravlev [mailto:[EMAIL PROTECTED]
Skickat: den 27 september 2005 23:29
Till: Struts Users Mailing List
Ämne: Re: recursive and struts. SOS
On 9/27/05, Laurie Harper [EMAIL PROTECTED] wrote:
hi catherine,
I am new to the struts framework so please ignore and correct if i am wrong
But when using jsp without struts, you experience the same problem while
passing parameters to javascript function.
I think a better way(which always works!!!) is to make that java variable as
a hidden
display:table name=UserRole
display:column property=messageKey title=System /
/display:table
I'd like to change the messageKey column to
html:link action=href
bean:message key=messageKey
/html:link
where href is another property.
How can it be done?
What is the matter with the Struts Validator? Can't you use it? It's easy.
[EMAIL PROTECTED] escreveu:
I'm looking for a regular expression or something I can plug into Struts
1.2 to validate e-mail addresses off of a DynaForms. Anyone have any
pointers?
Thanks.
Wow, even better. Thanks.
It's a standard build in validation of the validator see
http://struts.apache.org/userGuide/dev_validator.html
Gr,
Bram
I'm looking for a regular expression or something I can plug into Struts
1.2 to validate e-mail addresses off of a DynaForms. Anyone have
I am looking for good pointers on getting debug logging turned on in
Struts. I've added debug and detail params to my web.xml file, but I get
nothing. Do I need log4j? In the Struts Cookbook I've found some things
on debugging, but it seems very complex to configure. Is this correct?
Is
Bryon Lape wrote:
I am looking for good pointers on getting debug logging turned on in
Struts. I've added debug and detail params to my web.xml file, but I get
nothing. Do I need log4j? In the Struts Cookbook I've found some things
on debugging, but it seems very complex to configure. Is
Hello,
I am struggling with the JSTL error for the past two days. Can someone help
me in this?
In my JSP, I have the following code to populate bean array properties.
c:forEach var=vsr items=${vsroute}
c:catch var=coercionError
tr
tdc:out value=${vsr.fromcity} //td
I hope this could help you:
1. get log4j and put it together with other jars of your web project
2. create a log4j.properties file and put on the root of your web app.
3. add following lines in log4j.properties
Borislav
My goodness, it is as long as I thought. I can at least cut and paste
Bryon Lape wrote:
My goodness, it is as long as I thought. I can at least cut and paste
this instead of doing all that typing.
is it so much?
Thanks. I'll let you know how it goes. I am running under iPlanet Web
Server 6.0 SP1, so things can goofy. It already will not find the
Bryon Lape wrote:
My goodness, it is as long as I thought. I can at least cut and paste
this instead of doing all that typing.
that's why I pasted you lines from my log4j.proprties file and it's sure
they are correct
borislav
An alternative is the following:
(1) Create the file commons-logging.properties and put it in
WEB-INF/classes with the following contents:
org.apache.commons.logging.Log=org.apache.commons.logging.impl.SimpleLog
(2) Create the file simplelog.properties and also place it in
WEB-INF/classes with
Bryon Lape wrote:
My goodness, it is as long as I thought. I can at least cut and paste
this instead of doing all that typing.
is it so much?
Thanks. I'll let you know how it goes. I am running under iPlanet Web
Server 6.0 SP1, so things can goofy. It already will not find the
message
My suggestion is to use an IDE that has source level debugging
(JDeveloper, Eclipse, NetBeans). If you start your appserver in
debugging mode, you can connect remotely with your IDE and step through
the code and observe variable values.
-Richard
Bryon Lape wrote:
Bryon Lape wrote:
user@struts.apache.org,
I have a problem with my tiles set up. I get a Null pointer exception with
the following stack trace.
java.lang.NullPointerException
org.apache.struts.taglib.tiles.InsertTag.processAttribute(InsertTag.java:687
)
I am currently using IntelliJ 5.0 and I have tried numerous times to get
remote debugging for iPlanet working. So far, no dice.
My suggestion is to use an IDE that has source level debugging
(JDeveloper, Eclipse, NetBeans). If you start your appserver in
debugging mode, you can connect
Bryon Lape wrote:
I am looking for good pointers on getting debug logging turned on in
Struts. I've added debug and detail params to my web.xml file, but I get
nothing. Do I need log4j? In the Struts Cookbook I've found some things
on debugging, but it seems very complex to configure. Is
Bryon Lape wrote:
Bryon Lape wrote:
I am looking for good pointers on getting debug logging turned on in
Struts. I've added debug and detail params to my web.xml file, but I get
nothing. Do I need log4j? In the Struts Cookbook I've found some things
on debugging, but it seems very
Lets try to like this
display:column titleKey=System
html:link action=href
${messageKey}
/html:link
/display:column
On 9/28/05, 梁炳場 [EMAIL PROTECTED] wrote:
display:table name=UserRole
display:column property=messageKey title=System /
/display:table
I'd like to change the messageKey
Bryon Lape wrote:
Bryon Lape wrote:
I am looking for good pointers on getting debug logging turned on in
Struts. I've added debug and detail params to my web.xml file, but I
get
nothing. Do I need log4j? In the Struts Cookbook I've found some
things
on debugging, but it seems very
Bryon Lape wrote:
Bryon Lape wrote:
Bryon Lape wrote:
I am looking for good pointers on getting debug logging turned on in
Struts. I've added debug and detail params to my web.xml file, but I
get
nothing. Do I need log4j? In the Struts Cookbook I've found some
things
on
On 9/28/05, Wendy Smoak [EMAIL PROTECTED] wrote:
From: Troy Bull [EMAIL PROTECTED]
snip/
c:out value=${session.variable}/
%= session.getAttribute(variable) %
So the c:out tag isn't working, any ideas why that would be?
Try just:
c:out value=${variable}/
It will check page,
Borislav Sabev wrote:
Bryon Lape wrote:
Bryon Lape wrote:
Bryon Lape wrote:
I am looking for good pointers on getting debug logging turned on in
Struts. I've added debug and detail params to my web.xml file,
but I
get
nothing. Do I need log4j? In the Struts Cookbook
Dave Newton wrote:
Holy crap, edit your replies!
Dave
Sorry Dave, ussualy i do
Borislav
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Bryon Lape wrote:
Bryon Lape wrote:
Bryon Lape wrote:
I am looking for good pointers on getting debug logging turned on in
Struts. I've added debug and detail params to my web.xml file, but I
get
nothing. Do I need log4j? In the Struts Cookbook I've found some
things
on debugging, but
Bryon Lape wrote:
just make a file search under the path where the server is installed
Please excuse my ignorance, but look for what? That is, what file name
should I expect to find? I did a search for *.log and *log* and didn't
find anything of use.
hm strange ... in this case I
hm strange ... in this case I don't know what ot tell you ...
the file name should be struts.log
may be somebody who is more familiar with log4j should give you an idea
...
borislav
Let me do a search on the whole harddrive for that file name.
Configuring a .File and giving it a name I've been able to find the log.
I can see it converting the parameter on message-resources / and
converts it to a String. WHat I don't see is it reading it nor are there
any errors. I even put a value in of a file that does not exist and still
no error.
I now have logging giving me something useful. When a form is submitted
with validation errors and below is an excerpt. No errors reported, but
it can't find tiles-def files. There is a tiles-def.xml, but the html
form is not listed there. Nor are the inputs or success urls.
What are the scope the variables used in that object?
Vijaya S [EMAIL PROTECTED] wrote:Hello,
I am struggling with the JSTL error for the past two days. Can someone help
me in this?
In my JSP, I have the following code to populate bean array properties.
Route Disp Err :
Hi,
When I use the following line...it prints a 4 on the screen. {
selectbox.size has been defined as 4 in application.properties file }
bean:message key='selectbox.size'/
However, the following code doesnt seem to work. Can somebody explain what
is wrong with this? I want a select box of size
If the form is being submitted by your Javascript event handler
(updateDiagramm() function) by building a URL rather than calling
form.submit() then yes, that URL will need the form inputs appended to
it explicitly.
L.
Lothar Krenzien wrote:
Hi there,
I'm new to struts but have to maintain
Your problem is a tricky one, so don't worry
bean:define id=selectboxSizebean:message
key='selectbox.size'//bean:define
html:select property=filter.topicId size='%=selectboxSize%'
html:optionsCollection name=topicsList value=id label=name/
/html:select
Cedric
Raghu Kanchustambham wrote:
You can't have nested struts tags. I usually do something like this,
although there's probably a better way:
c:set var=selectboxSize
bean:message key='selectbox.size'/
/c:set
...
html-el:select property=filter.topicId size=${selectboxSize}
html:optionsCollection name=topicsList value=id
Bryon Lape wrote:
hm strange ... in this case I don't know what ot tell you ...
the file name should be struts.log
may be somebody who is more familiar with log4j should give you an idea
...
borislav
Let me do a search on the whole harddrive for that file name.
make sure your
Yahzz Yan wrote the following on 9/28/2005 2:17 PM:
Route Disp Err :
value=${coercionError}/
Not sure what the above has to do with the below, but
I get the following error from the JSP
javax.servlet.jsp.JspException: An error occurred while evaluating custom
action attribute value
Can you describe in which case we should be using SwitchAction.java in struts?
Can you offer some sample code? Is this used for multiple submit buttons (save,
delete, update, cancle buttons for example) on one jsp page? Thanks.
-
Yahoo! for Good
I have a hidden html varibale called operation.
html text=hidden name=operation /
Now I want to conditionally display some buttons based on the value of
this hidden field. I am trying something like this...
logic:equal name=${operation} value=update
# display update related buttons
/logic
Hello
Does anyone know or used an open source for databaup
from windows XP, i need this software to be able
select folders for backup, backup files changed, add
if does not exist, and schedule backup from my laptop
and desktop
Ashish
__
Yahoo!
Hello
Does anyone know or used an open source for databaup
from windows XP, i need this software to be able
select folders for backup, backup files changed, add
if does not exist, and schedule backup from my laptop
and desktop
I'm guess you mean something in place of the backup programme
On 9/28/05, Raghu Kanchustambham [EMAIL PROTECTED] wrote:
I have a hidden html varibale called operation.
html text=hidden name=operation /
This defines a field in an HTML form, server knows nothing about it.
Now I want to conditionally display some buttons based on the value of
this
There is stuff all over if you want something server based. Amanda
(www.amanda.org) has a win32 client via a second sourceforge project), plus
stuff I've never heard of like http://backuppc.sourceforge.net/info.html and
more. Remember, google is your friend. :)
If it's just those 2 Windows based
Hi
Its good taht we have found the solution,
I have a question here!
Why are u making two url-patterns for action servlet.i want to know the use
case. coz i have never done that
is there some benefit with this
Regards
A
On 9/27/05, Jane Eisenstein [EMAIL PROTECTED] wrote:
Problem solved. The
I have my pages defined in tiles-defs.xml thus:
!-- main layout --
definition name=Main.layout path=/_common/layouts/mainLayout.jsp
put name=header value=/_common/layouts/tiles/_header.jsp /
put name=footer value=/_common/layouts/tiles/_footer.jsp /
/definition
!-- test Page --
definition
What I recomend is SyncBack - it's free but it's not open source.
quote
SyncBack is our freeware program that helps you easily backup and
synchronise your files to: the same drive; a different drive or medium
(CDRW, CompactFlash, etc); an FTP server; a Network; or a Zip archive.
/quote
Hi Raghu
What's the name of the form bean? Let's assume it's myformbean for the
example:
html:hidden name=operation/
logic:equal name=myformbean property=operation value=update
...
/logic:equal
Use the 'name' parameter to reference the form bean name. Use the 'property'
parameter to
I am investigating using struts on an upcoming project, and I will need to
figure out a way to port some of my custom struts security preprocessing to
Shale. In my most current Struts implementation, I use a chain to test
several attributes on a request to authenticate it, (things like cookies or
Contrary to popular belief, tiles attributes are not propagated to
jsp's defined as attributes. It means that _header.jsp doesn't have
any information about a tile attribute 'title', thus ignoring the
tiles:getAsString/ tag (when you remove the ignore=true, struts is
actually throwing an
On Sep 28, 2005, at 7:39 PM, Guillermo Castro wrote:
In order to do what you want you have to define your tiles as:
!-- main layout --
definition name=Main.layout path=/_common/layouts/mainLayout.jsp
put name=header value=layout.header /
put name=footer
My webapp using tomcat5.5 + struts
I create a new form bean in the struts-config.xml as following:
form-bean name=surveyForm
type=org.apache.struts.validator.DynaValidatorForm
form-property name=emailAddr type=java.lang.String/
form-property name=senderName type=java.lang.String/
I would guess that type is a reserved word. Try changing it to myType?
Kind regards
mc
On 29 Sep 2005 at 11:40, Elaine Sit wrote:
My webapp using tomcat5.5 + struts
I create a new form bean in the struts-config.xml as following:
form-bean name=surveyForm
52 matches
Mail list logo