Title: How to test only for the language-code but not for the country?
Tanks
for your answer. Do you hava an idea how i could pack this in a Tag? Or even
better if there allready exists a Tag in struts that allows to include a
HTML-text only if a certain language is chosen?
Beat Friedli
Shea,
The struts-user archives
(http://www.mail-archive.com/struts-user@jakarta.apache.org) are an
invaluable resource for problems like this - when I get an exception I
don't understand, the first thing I do is search for it there.
When I searched for remove attributes request scope I got a
Title: RE: getting jsp:include to work behind WEB-INF wall
I'am really astonishes, but thanks for this information.
Cédric
-Message d'origine-
De : Joey Gibson [mailto:[EMAIL PROTECTED]]
Envoyé : mercredi 12 septembre 2001 19:40
À : [EMAIL PROTECTED]
Objet : Re: getting
David Corbin wrote:
...
No real magic, but there is a better way to do that : tile attributes are
store
in the tile context. So, using put tag, you can retrieve them directly
from this
context :
tiles:put name=foo beanName=foo scope=template /
This solution allows to
Hi,
I just tried to start the example that distributed with the struts, and get
the following exception at the mainMenu.jsp:
Thu Sep 13 11:04:17 IST 2001:I WebAppServletContext-struts resolving
taglib
uri '/WEB-INF/app.tld' to taglib-location /WEB-INF/app.tld:
Thu Sep 13 11:04:18 IST 2001:I
Hi,
I just tried to start the unpacked web application of struts-example.war
that distributed with the struts with weblogic 5.1 and sp 8, and get
the following exception :
Thu Sep 13 11:35:17 CEST 2001:E WebAppServletContext-example Root cause
of ServletException
javax.servlet.ServletException:
Why not. Have to find a nice way to do that. Do you have something to
propose
?
How about having a an attribute on the tiles:insert that causes all of the
tiles to automatically propogate? My suggestions would be either
inherit=true, or cascade=true.
And, the last question (hah!)
Hi,
There are problems with Tiles' build system that prevent it from building from
Struts root. Because Struts' 'dist' target depends on Tiles, the Struts build
system is effectively broken too.
Tiles fails to build because it can't find a library:
init:
[echo] - Tiles 1.1-dev
Has anyone used application developer to develop a struts application. I am having trouble using the template tag. When I use the tag the html that is not part of the templates is printed at the bottom of the page, whereas when I use tomcat its fine. Please help if you can.
Thanks
ChijiGet your
Hi,
I used logic:iterate tag on Hashtable and the next is happened:
the iterator returns Hashtable$Entry object instead of the object of the
original type, and the results is explicit - exception on bean actions. I
think, that appropriate lines in the IterateTag.doStartTag() code should be
Thanks.
-Original Message-
From: James Holmes [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 12, 2001 6:31 PM
To: [EMAIL PROTECTED]
Subject:[ANNOUNCE] Struts Console
I have put together a GUI for Struts called Struts
Console. Struts Console is a Java Swing
When I use tiles:getAsString name=foo ignore=true, if foo is not
specified, I'm getting null.
David Corbin
Hello,
I've just begun to use Struts one month ago and I wonder how I could make a
condition like this :
If myParameter equals X then write
logic:iterate../logic:iterate, else write No selected item ? If
I do this, the logic:iterate won't work ?
Thanks for your help,
Regards, Lily
hi struts-users,
perhaps someone can help me? :-)
i have a problem with the html:text-tag. i dont surely understand what
i have to put in the value-parameter. it is stated that i can use
runtime-expressions, but i definitely dont get it running.
my tag looks something like:
html:text
Antigen for Exchange found alf.konrath.vcf matching =*.vcf file filter.
The file is currently Deleted. The message, shown variable value in
html:text-input, was
sent from Alf Konrath and was discovered in IMC Queues\Inbound
located at IBC/PA1/MG01.
Try removing the value attribute altogether, eg
html:text name=nameOfJSPBean
property=nameOfPropertyOfJSPBean
That should populate the text field with the value of the field in
nameOfJSPBean.
Cheers,
Gollo.
__
-Original Message-
From: Alf Konrath
Hi Ella,
you must always specify the type: java.util.Map.Entry , when iterasting over
a hashtable, because this Instance has getter methods getKey and
getValue which are then specified by the property attribute in the
bean:write tag.
try the following:
logic:iterate id=val name=res
Thanks.
-Original Message-
From: Michael Frenzel [mailto:[EMAIL PROTECTED]]
Sent: Thu, September 13, 2001 3:09 PM
To: '[EMAIL PROTECTED]'
Subject: RE: Hashtable and iterate tag
Hi Ella,
you must always specify the type: java.util.Map.Entry , when iterasting over
a hashtable, because
Hi Gollo,
thanks for your help, but the population to the bean isn't my problem,
that works well.
my problem is displaying the value of that JSPBeanProperty, that was
entered already or read from a database.
in 'normal' jsp-development i would use:
input type=text name=propertyname value=%=
Antigen for Exchange found alf.konrath.vcf matching =*.vcf file filter.
The file is currently Deleted. The message, Re: shown variable value in
html:text-input, was
sent from Alf Konrath and was discovered in IMC Queues\Inbound
located at IBC/PA1/MG01.
Hi,
Nice app. It should speed things up considerably. Just a quick suggestion
for future enhancements.
When it starts can it take the LF of the OS?
When you do a file open can you specify a default directory.
Thanks
Alex
Thanks for the feedback Alex.
Good ideas definitely. I'll add them to my TODO list
and should be able to get to them soon. I'll keep the
group updated as I add more functionality and fix
bugs.
Thanks,
-james
--- Alex Colic [EMAIL PROTECTED] wrote:
Hi,
Nice app. It should speed things
Hi Alf,
Yes, removing the value attribute should do exactly as you want. From
the documentation
value: Value to which this field should be initialized. [Use the
corresponding bean property value] [RT Expr]
The default value of value (this is confusing :-)) is described in the
square
Hi All,
I have a form bean that has a Map property that have the key and the
value for each option element in select element. Can I use the map or I need
to separate in two collection properties, one for the values and one for the
keys in order to user the properties with the html:options
Hello,
It ran fine under Redhat 7.1, other than a bunch of missing font
messages. I personally did not like the way it reformatted my entire
struts-config. Could this be because it is not interpreting unix text
file format correctly, or does it do this on windows too? Also, it put
a
Title: RE: Struts Console
When i download the file, i got a size mismatch error.
Could someone help me ??
Regards,
Cédric
-Message d'origine-
De : Alex Colic [mailto:[EMAIL PROTECTED]]
Envoyé : jeudi 13 septembre 2001 15:44
À : Struts
Objet : Struts Console
Hi,
Nice
I was thinking the same thing...
I'd like to give users the ability to see the raw XML
similar to the way JBuilder does it for WAR's web.xml
file. JBuilder is setup where you can edit the file
via the gui from one tab and view the raw contents
from another tab.
Not sure what you mean by
Glad to hear it works on platforms other than M$*.
I don't have access to any other platforms right this
second so I haven't had a chance to put together a
shell script for starting it or anything. Or even
test it.
I have had similar issues with the formmatting of the
file once it has been
That's weird. It sounds like your download didn't
finish properly or something along those lines. I
know several people have downloaded it now and you're
the first to mention this.
What OS are you using? What browser are you using?
-james
--- VIAUD_Cédric [EMAIL PROTECTED] wrote:
When i
I don't see that you changed anything except to add
braces around the if statement. It already checks if
the locale is null and uses the default locale if it
is null. Am I missing what you changed?
David
--- juraj Lenharcik [EMAIL PROTECTED]
wrote:
hi all,
In the class GenericValidator,
I would also like to see a New item on the File menu!
--
Steven Valin
[EMAIL PROTECTED]
Hi,
i want to use more than one config file for struts. So i could
use the configuration from an external component together with
my own one. Is this possible ?
greetings
ralf
Sound like a bug. I will correct it asap.
Cedric
David Corbin wrote:
When I use tiles:getAsString name=foo ignore=true, if foo is not
specified, I'm getting null.
David Corbin
Is there a Struts example of how to upload files using the built-in
org.apache.struts.upload package?
Thanks!
Pierre
_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
Aren't you missing the '/' at the end of the Text Tag?
If your tag is like this:
html:text name=nameOfJSPBean
property=nameOfPropertyOfJSPBean
value=
just add an '/' at the end of the tag:
html:text name=nameOfJSPBean
property=nameOfPropertyOfJSPBean
Title: RE: Struts Console
I first try several times with Opera 5.12 on Win2000. It always goes wrong.
I've done it with IE5.5 and it goes wrong too.
Do you think the problem is my Winzip version (6.2) ?
Regards,
Cédric
-Message d'origine-
De : James Holmes [mailto:[EMAIL
when i set the locale for germany , the fromatter object is still null after
the check. i set this line:
formatter = DateFormat.getDateInstance(DateFormat.SHORT, locale);
instead of:
DateFormat.getDateInstance(DateFormat.SHORT, locale);
after this the formatter object was
Hi all,
I went through the whole mail-list , even the archive, found some
solutions but none of them worked for me.
Maybe I have some problems with my setup, so here is my info, please help :
In the struts-config.xml :
-
data-sources
data-source
set-property
Hi Gollo,
now after a day of search i have found out, why the bean value wasn't
displayed.
you are right, the value would be shown ... IF the database is there! ;)
another teamdeveloper has switched the database without giving me a
hint.
sorry all for not checking that further.
thanx alf
Its really good.
I guess I saw a mismatch between the Path Name and Form Bean Name in Action
Mappings.
This may be due to the JTable.
Regards,
Rakesh
- Original Message -
From: James Holmes [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, September 13, 2001 7:01 AM
Subject:
Hi all,
Whenever there is invalid input in the form,iam able to show all the error
messsage at once ,instead of showing all the error messages ,i want to
change the color of the labels corresponding to those fields which has wrong
input.For eg. the lables of the invalid inputs should be red in
when i set the locale for germany , the fromatter object is still null after
the check. i set this line:
formatter = DateFormat.getDateInstance(DateFormat.SHORT, locale);
instead of:
DateFormat.getDateInstance(DateFormat.SHORT, locale);
after this the formatter object was
oops i ccd to the wrong person...
Combining different parts
- for a large app one may opt to have different XML files instead of one
long config files,
i.e. struts-config-formBeans.XML,
struts-config-actionMapping1.xml,
struts-config-actionMapping2.xml,
struts-config-globalForwards.xml,
Ralf I invite you to search the archive you'll find a lot of information on
that. I know you cannot use multiple config files but there are some ways
around that.
good luck
-Original Message-
From: Ralf Beier [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 13, 2001 10:45 AM
To:
My bad. I'm blind. I'll fix it and check it into
CVS.
David
--- juraj Lenharcik [EMAIL PROTECTED]
wrote:
when i set the locale for germany , the fromatter
object is still null after
the check. i set this line:
formatter =
DateFormat.getDateInstance(DateFormat.SHORT,
locale);
Yes, under the webapps directory of wherever you installed Struts, there is
a struts-upload.war file that contains everything you should need.
Ricky
At 10:41 AM 9/13/2001 -0400, you wrote:
Is there a Struts example of how to upload files using the built-in
org.apache.struts.upload package?
hi all struts users,
i am new to struts and just installed struts 1.0 to tomcat4-b7.
but when i tried to run the struts-example, i got the below exception.
how can i fix it?
thanks
---
A Servlet Exception Has Occurred
Exception Report:
Hello,
Does anybody know what I can do to resolve the following problem with the
file upload?
Summary of problem:
When I try to upload a file larger than the maximum limit allowed, the Maximum
length exceeded message doesn't appear on the screen until the entire file
is uploaded. In other
Hi, I'm curious if folks avoid using Connection objects directly in Action
servlets. My action servlets obtain a Connection from a static utility
method and pass this Connection into the methods of my database classes.
I'm wondering if there is any significant advantage to removing the
Chris,
What sort of errors are you getting?
Below is a reprint of a message I posted a few weeks ago. I believe it
addresses a similar question.
Princeton
Re: html:options not understanding collections from form beans?
I do the same myself. This way my data access code is not dependant on
the HTTP layer.
-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Custom Software ~ Technical Services.
-- Tel +1 716 737-3463
-- http://www.husted.com/about/struts/
(And, for the record, Actions are not servlets ;-)
Can the html:options tag handle collection=rowsetname? If not, has someone
contributed a library that will?
Thanks,
Matt
__
Terrorist Attacks on U.S. - How can you help?
Donate cash, emergency relief information
Hi,
Does any one know how mapping to a action class instead of a JSP file in
your Action class. In other word, when you return
return (mapping.findForward(success));
how do you set success is another xxxAction class instead of a xxx.jsp
file
Thanks
Julia
Hi All -
In my application, I would like to cache some of the
objects at the application scope in order to reduce
database access. What is the most recommended way of
achieving this in Struts ? Should I make them members
of OurActionServlet, which is derived from
ActionServlet ?
Please suggest.
In your struts-config.xml put
action...
forward name=success path=/nextAction.do /
/action
Kim
-Original Message-
From: Julia Yang [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 13, 2001 4:20 PM
To: [EMAIL PROTECTED]
Subject: How to mapping to a action class instead of a JSP
I'm attempting to serialize a form bean to a hidden field, but having a hard
time doing it right. Looks like the serialized data is not encoding
properly.
Once I have serialized my bean, what encoding should I apply, if any, to
have it transmitted back to me in good shape? I'm using
I created a servlet that is loaded at server initialization by including the
following in web.xml
servlet
servlet-nameInitialization/servlet-name
servlet-classcom.tfp.fraudban.InitializationServlet/servlet-class
load-on-startup1/load-on-startup
/servlet
and in the init method of
I did it, but get error page : page can not be found.
What I have in my mapping is:
action path=/dcu type=com.graviton.fe.struts.DCUsAction
name=DCUsForm scope=request input=/configure_dcu_create.jsp
validate=true
forward name=failure
path=/NoListDCUsAction.do/
My bad -
I must stop thinking of Action classes as servlets.
I must stop thinking of Action classes as servlets.
I must stop thinking of Action classes as servlets...
:-)
Actually Ted, it was your poll application that made me think about this.
The org.wxxi.polls.http.Client class calls methods
I am trying to accomplish the same thing but am taking a different
approach. I have not changed any Struts code, instead I am trying to use
the error page functionality to handle the ServletException. I tried a
file upload with the same limitations as you mention below and did not have
a
i'm a newbie i use struts with tomcat 3.2.2 and mod_jk
here is my problem when i use the html:img tag with mod_jk apache is
unable to find the images when i launch my index.jsp page for the first
time because i have that kind of code in my page img src =
/myimage.gif;jsession=xxx
i don't
Any body can help me
-Original Message-
From: Julia Yang
Sent: Thursday, September 13, 2001 3:30 PM
To: '[EMAIL PROTECTED]'
Subject: RE: iPlanet 6: action forward to an action mapping
Hi, Matt
Thanks for your mail
It certainly helps a lot. I am be able to see the browse try to
Ricky,
That's interesting! I would like to try the error page functionality
that you talked about. If you can give me some hints about how to use it,
that would be greatly appreciated. I don't understand how you can pass
the ServletException all the way up to the Error JSP without changing
Hi everybody, I want to do something like this:
template:put name=title content=bean:message key=main.title/
direct=true/
I intend to take the value of main.title and use that value as the
value for title for that template. It doesn't work because of the nested
tag but I couldn't
Ok. I've gotten lots of feedback from many people and
have started to incorporate it into the app. I have
also made some bug fixes.
http://www.ejcenter.com/struts/
Changes with Struts Console v0.2
*) Changed console.bat to run java from the
%JAVA_HOME%\bin directory
*) Added tool tip
template:put name=titlebean:message
key=main.title//template:put
- Original Message -
From: _ _ [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, September 13, 2001 6:40 PM
Subject: template, bean tag question
Hi everybody, I want to do something like this:
67 matches
Mail list logo