Hello,
I'm also interested in a solution of that problem. Admittedly the
subject-matter is not the struts-config.dtd but rather any dtd of any
(custom) xml-document struts works with.
TIA
Thomas Burns schrieb:
My coworker posted the original question in the Running Tomcat+Struts w/o
It seems to be a general problem, because I'm facing exactly the same problem (Tomcat
3.2.2). So, is there anybody out there who has a hint how to overcome this error?
Thanks, Marcel
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 25, 2001
I have a detail screen with some fields on it
and a save button, reset button and a link to the master page...
How do I return to the same page after the save ?
let say the link to this page is something like
/editPersonalInfo.do?action=edit
thanks,
Kris
P.S. can you put me in cc when
Hi,
I am developping a Apache Tomcat Struts Web Application that will be use in
ASP mode (Application Service Provider not the MSoft stuff) by different
Users.
The thing is that Users will have common JSP for a part and specific ones
for the other part (Number of fields in page forms, look and
Hi
I have a big image with different mapping areas. In that I have one 'go' mapping area by clicking which, I should submit the form. I could receive only null values into the ActionForm which does mean that the values are not being submitted.Could u please help!
Have a nice time.
EdaDo You
Hi!
In the struts-config.xml-file:
!-- Edit Personal Info--
action path=/The one you specify on you jsp-page
type=.
name= current FormBean
scope=session
validate=false
forward name=success path= /the page you want to return to, or
Hello,
I'm trying to use STRUTS with WEBSPHERE 3.5.4.
When I try index.jsp, I have the following error message:
Error 500
Une erreur s'est produite lors du traitement de la demande
:http://localhost/struts-example/index.jsp
Message : Server caught unhandled exception from servlet [jsp11]:
I´ve installed struts, under Tomcat
3.2.
None Webapplication will run which uses
ApplicationResources.properties, when I start an index.jsp there comes always
the error
javax.servlet.ServletException: Missing message for key
index.title
but i don´t know why?!!? The File is in correct
Hi Maik,
in your web.xml, add/change following parameter:
!-- Action Servlet Configuration --
[...]
init-param
param-namenull/param-name
param-valuefalse/param-value
/init-param
this does not solve your problem, but then you don't
get an exception/Error 500 but you
Hi Klaus,
thanks for your help, but as I already wrote it´s always the first key of
the propertiesfile, in my case the index.title - key. I assume Struts
don´t find any keys, and I dont know why.
And in fact that I tried to start several war files, e.g. the struts-example
(!) it has to work,
I have an array beans which I am trying to use to build up a dynamic form.
The bean has 3 properties DisplayName, id and value.
The id property is the unique identifier that corresponds to the name of the
HTML input field.
The value property contains the value of the HTML text field.
The
Hi all,
Has anyone else experienced problems with the file upload lately? I'm
finding that uploaded files are being corrupted. It doesn't seem to matter
what type the document is. I've found an Excel spreadsheet and a Word
document that have displayed problems. It seems, doing a binary compare,
I just got done fighting this problem for the last week. Upgrade to struts
1.0 and that will solve your problem.
Jeff Krueger
-Original Message-
From: Darryl Pentz [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 26, 2001 4:38 AM
To: [EMAIL PROTECTED]
Subject: File Upload Problem
Hi
I have resorted to using scriptlets. There must be a more elegant solution
though!
logic:iterate id=searchField type=package.SearchField
name=%=Constants.SEARCH_FIELD_KEY %
tr
tdbean:write name=searchField property=displayName //td
tdinput type=text name=%= searchField.getId() %
That's just it. We HAVE upgraded to Struts 1.0 final. This fixed a problem
we were having with ZIP files but now it seems we can't view spreadsheets
and documents that are successfully uploaded. In other words, they do upload
fine, but when you try and view them, Excel can't open them up.
-
A validation / transformation framework has been made open source,
courtesy of Rey Francois and Capco, and is now available for download on
the More About Struts Resources page.
http://husted.com/about/struts/resources.htm
Two other new contributions have also been posted there this week - a
You would think that theALL WEB APPs scope
(or hierarchicial scopes) would be easy to do. It is not. I had
thought that by having one app run another app, the controlling app could
"peek". Doesn't work that way either. (Too bad.)
One can fetch the sessionid's of other HttpSessions
from the
remove struts.jar from your claspath.
--- Maik Mrazovic [EMAIL PROTECTED] wrote:
Hi Klaus,
thanks for your help, but as I already wrote it´s
always the first key of
the propertiesfile, in my case the index.title -
key. I assume Struts
don´t find any keys, and I dont know why.
And in
I've found some indications on the web. It's about the struts.jar file.
In the article, below, the author deals with TOMCAT. It's also true with
WEBSPHERE.
I've found it on http://www.husted.com/about/struts/kickstart.html.
More about Classpaths
There has been some confusion around
Hi,
I am trying to create a dynamic label HTML form through the bean:message
tag. What I want to do is as follows:
bean:message key=%= myBean.getLabel() %.label.header /
It gives a compilation error that the key string is unenclosed, anybody have
any ideas how to do this?
Thanks in advance
try
bean:message key='%= myBean.getLabel() + .label.header %' /
--m
- Original Message -
From: Pal, Gaurav [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, June 26, 2001 7:48 AM
Subject: Dynamic label
Hi,
I am trying to create a dynamic label HTML form through the
Please respond to me at [EMAIL PROTECTED] as I am not subscribed to this
list. Thanks.
Is it possible to place a dynamic element in my
ApplicationResources.properties?
For instance,
required.image = img src=%=staticPathCommon%/images/required.gif
width=10 height=12 align=absmiddle
In my jsp
Hi there
I have a link in an existing page like this:
a href=mailto:[EMAIL PROTECTED];
span class=link
bean:message key=footer.mailto/
/span
/a
Is there a possibility to use the html:link-tag for this? And if yes, which
Please respond to me at [EMAIL PROTECTED] as I am not subscribed to this
list. Thanks.
Is it possible to get the alt value of an html:img element from the
message bean? For instance:
html:img src=%=staticPathCommon%/images/required.gif width=10
height=12 align=absmiddle
I don't believe you can. Though being able to specify alternate schemes
would be helpful for some other things, like switching over to a secure
connection.
Meanwhile, you can do this:
a href=mailto:bean:write name=actionForm property=email/Email
User/a
The main purpose of the html:link tag
Guten Tag,
my problem is:
How can unicode be submitted from form fields in an adequate way to the
server?
I'm using the struts framework and trying to submit some unicode text in
a HTML form to the server. My Target is, to use that unicode characters
on the server (as parameter for a RPC to a
Dave -
I have been off the list for a while so I missed your original post.
Any idea if these indexed tags might make it into the formal releases?
We are beginning the process of transisitioning to the final 1.0 release
but would wait for an early 1.1 release if this would be included.
One
try:
html:img src='%=staticPathCommon + /images/required.gif + %' width=10
height=12 align=absmiddle alt=Required Field Image /
As for the alt attribute, it looks at though the html:img taglib will only
accept either a string or a resource bundle key.
Since you cannot nest taglibs
I am learning the struct architecture. I want to use the internationalization in
my application. I have seen the example application that is currently using the
internationalization. I want to change the locale of the application. Which are
the points in the architecture I have to change to use
Clicking a hyperlink does not submit a form. Fields within a form are
only passed through the request when the form is submitted. Therefore,
you need to have your image hyperlink submit the form.
You can do this using javascript. Check the archives, there are many
messages about this.
Pete
Not sure if this is what you want,
but I changed the locale using my web browser.
if using IE it is toolsinternet optionslanguages
n.b. you may need to stop and start IE for the change to be noticed.
cheers
Andy
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL
The ActionServlet class stores the users locale (retrieved from the browser) during
the first request.
(see ProcessLocale() method)
It is stored in the user's session under the key: Action.LOCALE_KEY -- member
variable of Action class.
Therefore, to change the locale, you need to change the
Hi Laine,
Yep, I am hoping that it will be included in the formal releases. Hopefully
tomorrow or Thursday I will post it all to the -dev list to see about this.
Hopefully that will mean it will be in a daily build soon. Not sure when 1.1
will start being released. The code I have posted is
Hi Jerzy,
To get the value of the property in your form bean, don't add value= to the
hidden tag
ie html:hidden name=geoEntityForm property=recordId
Don't want to push my changes on you, but sure is easy to use the submit button
with an indexed name! ;-)
Dave
Jerzy Kalat [EMAIL
Hi,
I just hit the same problem last night, and did as follows:
logic:iterate id=contacts name=actor property=contactDataVector
html:form action=showContacts
html:hidden name=contacts property=contactId/
tr
td width=150
html:submit property=submitbean:message
try this:
html:hidden name=geoEntityForm property=recordId
value=%=element.id%/
If you want to create a bean on the jsp page (???), then you will need to place
it in the session before leaving the page so that the servlet is able to
retrieve it later.
HTH,
Pete
Jerzy Kalat wrote:
Hi
Hi Dave
Well, I have binary version of Struts only, and I suspect that other members
of team
feel more comfortable to work with official release of Struts.
About your hint below: geoEntityForm is the form bean. recordId is one of
its properties,
So how the value of element.id will be passed? I
Hi,
I have problem with understanding one thing here. How do you have access to
this hidden field in Action servlet? Does it mean that in form bean you have
to have property named 'contactId'?
JK
- Original Message -
From: Torsten Terp [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent:
Yeah, that's one of the problems with changes - take a while to become official!
Ah, thought you just wanted to set the recordId in the hidden field...Peter
Alfors just posted how to do it if you want it set to the element.id.
Cheers,
Dave
Jerzy Kalat [EMAIL PROTECTED] on 06/26/2001
Hi,
Yes, the form bean has fields matching the names used in the jsp! In
my case contactId (among others). In my action code i then get the form
in the request and can do whatever i need to do...
^terp
-Original Message-
From: Jerzy Kalat [mailto:[EMAIL PROTECTED]]
Sent: Tuesday,
I figured outthe problem. For the
interest of the mail archives, the solution is to use regular expressions in
obj.conf. "*.do" is not enough for iPlanet (struts documentation should be
ammended for this). I found I needed to use "*.do;jsessionid*" in addition
to "*.do". This fixed the
Hi there !
Thank all of you for all your inputs and hints.
I made it working.
What I had to do is to add another property to form bean 'id' and put Struts
form tag INSIDE iterator tag. Without the last change I always see id of the
first record.
table border=1
logic:iterate id=element
Just as aside, another way to go in the short term would be to package
Dave's version as a seperate taglib. So, it would augment, rather than
replace, the tags in the distribution. Most significant projects will
often use their own custom tags in addition to what is provided in the
Struts
Hello!
This was a bug that existed in earlier versions of 5.1 but it was fixed at
around service pack 5. So it seems that your configuration are not
picking up the service pack properly.
When I manage to fail to pick up a service pack its usually becuase
I misremember where the service pack
I would like to know why some tags in the template file (ie img) use a
relative path to the
calling file, while the get tags do not.
For example the line in a template file:
html:img src=../graphics/picture.jpg/
render the path relative to the file that put to the template (ex
Ok... I've tried and tried to figure this out, with some help from this
group, to no avail. I'm just trying to get the example to run. I'm going
to try some more.
I'm running JRUN on a Win2k box, so any help either needs to be specific to
JRUN so I can use it, or totally generalized, so I can
Can you try moving the application.properties file under web-inf/classes.
Also I remember reading that the strut.jar file should be under struts
example\web-inf\lib
and there were errors when you try to put it into the appserver classpath
...
-Original Message-
From: Wes Bramhall
Hello all,
I am new to Struts and was experimenting the various HTML tags. I was trying
to improve the code below. Could anyone tell me how I can achieve the same
functionality of filling the select block, but by removing the for loop
from this code(I mean just by filling values with a list).
Hi:
Can someone help with this? I can't find an example whether struts iterate
throught a collection.
! The code --%
%
java.util.Collection roles = client.getUserRoles(admin);
%
logic:iterate id=element collection=roles
H4Next element is bean:write
I think you need to say name=roles instead of collection=roles.
Assuming there is as roles.getValue() accessor, the rest looks fine.
If not, you may just need bean:write:element if the objects in roles
have a toString() method.
Simon Liang wrote:
Hi:
Can someone help with this? I can't
logic:iterate id=element collection=roles
should be
logic:iterate id=element name=roles
--- Simon Liang [EMAIL PROTECTED] wrote:
Hi:
Can someone help with this? I can't find an example whether struts
iterate
throught a collection.
! The code
hi:
I tried the suggestion, but still didn't work. This seem to work.
! The code --%
%
java.util.Collection roles = client.getUserRoles(admin);
%
...
logic:iterate id=element collection=%=roles%
h4Next element is bean:write name=element//h4
you need to add the collection to the request object
java.util.Collection roles = client.getUserRoles(admin);
request.setAttribute(roles);
then
logic:iterate id=element name=roles
this will work
--- Simon Liang [EMAIL PROTECTED] wrote:
hi:
I tried the suggestion, but still
How do i iterate over a HashMap ? The key is a String but the value is an
Object of a certain type (example .. com.agilquest.bean.DataBean ).
I need to call a getter in the 'value i.e dataBean.getName() ;
Below is the code i use...The value is calling the toString() of DataBean. I
need to
Goto http://jakarta.apache.org/struts/struts-logic.html#iterate
--m
- Original Message -
From: Nanduri, Amarnath [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, June 26, 2001 2:01 PM
Subject: iterate over a HashMap
How do i iterate over a HashMap ? The key is a String but
Thanks. This did not help me though..
cheers,
Amar..
-Original Message-
From: Mike Thompson [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 26, 2001 3:01 PM
To: [EMAIL PROTECTED]
Subject: Re: iterate over a HashMap
Goto http://jakarta.apache.org/struts/struts-logic.html#iterate
--m
in J2EE tutorial there are some of example about struts and J2EE
http://ioctl.org/doc/j2ee-tutorial/doc/JSPTags3.html
i tray develop of login aplication and used struts with J2EE 1.3 beta 2 Server
after i deploy my login aplication with deploytool that include in J2EE
i run it, but always get
Mike,
Thanks a lot for your help. I am trying to figure out how to typecast the
'value' object into type DataBean so that i can call one of its methods.
Maybe i need to do something fancy to satisfy the compiler and the JVM.
cheers,
Amar..
-Original Message-
From: Mike Thompson
I figured it out. I changed my HashMap into a collection and started
iterating over the collection. Since the value object in the HashMap
contains the key also ( the business side is returning a HashMap instead of
a collection btw) , i was able to iterate through the collection and so
typecast
logic:iterate id=itemEntry property=offerItems name=someForm
scope=session
td valign=top
bean:write name=itemEntry property=key/
/td
td valign=top
bean:write name=itemEntry property=value.name /
/td
/logic:iterate
should work.
--m
- Original Message -
From: Nanduri, Amarnath
Tried it. Got a runtime (or is it compile time ? ) exception. Thanks.
cheers,
Amar..
-Original Message-
From: Mike Thompson [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 26, 2001 3:19 PM
To: [EMAIL PROTECTED]
Subject: Re: iterate over a HashMap
logic:iterate id=itemEntry
Hi,
I have a bean stored in application scope in a startup servlet using:
getServletContext().setAttribute(Constants.COMMON_DROP_DOWN_KEY,
commonDropDownListBean);
This bean of type CommonDropDownList has a property getResponseIndicatorList which
returns a HashMap.
I want to use this
use jsp:useBean id='%=Constants.COMMON_DROP_DOWN_KEY %'
scope=application /
-Original Message-
From: Shamdasani Nimmi-ANS004 [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 26, 2001 3:53 PM
To: struts-user@jakarta. apache. org (E-mail)
Subject: How do I use application scope bean in
Any ideas why someimtes, but not all the time, the HTML the example creates
has
base href=http://255.255.255.255:8100/struts-example/registration.jsp;
instead of
base href=http://127.0.0.1:8100/struts-example/registration.jsp;??
I can refresh the page, and usually get the latter.
Thanks,
I did try this:
jsp:useBean id=common_lists scope=application
type=com.motorola.mms.msqc.beans.CommonDropDownListBean/
bean:define id=responseIndicator name=common_lists
property=responseIndicatorList /
html:options collection=responseIndicator labelProperty=value property=key/
But I still
Hi,
I have a question regarding local forwards.
It seems that a popular way to avoid hardcoding navigation in your action
class is to have a local forward named success, that can be updated in
your struts-config.xml:
action path=/maauto/quote
type=MyClass
forward
Michael,
I just use the collection and property value on my html:options, and Struts does
the rest!
ie html:options collection=... property=... (and you can use the
labelProperty if you want too)
Check out the documentation on it...
Dave
Michael Skariah [EMAIL PROTECTED] on 06/26/2001
In case any of you are interested in these examples...
Dave
-- Forwarded by David Hay/Lex/Lexmark on 06/26/2001 05:52 PM
---
David Hay
06/26/2001 05:37 PM
To: Jason Rosenblum [EMAIL PROTECTED] @ LEXMTA
cc:
Subject: RE: Struts iterate tag
Thanks Dave,
I will try it out.
-Michael.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 26, 2001 2:33 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: Minimizing the code in JSP file..by removing the for
loop
Michael,
I just
Assuming your List is a bean named list, use
html:options name=list/
Please read the Tag Library Reference for html:options on
http://jakarta.apache.org/struts/struts-html.html#options for details
--
...roland huss
Hello all,
I am trying to replace the following with the Struts HTML link tag.
a href=test.doTest/a
Could anyone help me out here\.
Thanks,
Michael.
%@ taglib uri=/WEB-INF/struts-html.tld prefix=html %
*make sure above line is in your jsp page
html:link page=/test.do target=_topClick Here/html:link
*in order for above line to work you need to set up an action in
struts-config.xml
ie:
!-- Handle actions for /Test --
action
this day I installed tomcat with apache using mod_jk. To use struts, the
*.do URIs that go to the controller servlet will not be recognized until I
add the appropriate handler. To fix this, I must add the following line to
the httpd.conf (in my own configuration) file:
AddHandler jserv-servlet
I found this message to be quite helpful for integrating struts with
Tomcat/Apache
http://www.mail-archive.com/struts-user@jakarta.apache.org/msg00476.html
-Original Message-
From: Mustapha Essalihe [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 26, 2001 3:47 PM
To: [EMAIL PROTECTED]
I have a bean in application scope and I want to use one of its collection
property(responseIndicatorList) in a drop-down but I keep getting an error:
No getter method for property responseIndicatorList of bean common_lists
This is how I have in my jsp:
jsp:useBean id=common_lists
I have a web app and everything works fine under a
URL like www.webappcabaret.com/mycontext.
As soon as I got a domain name and tried to run things under http://www.mydomain.comthings don't
work. I see the following symptons.
- html:link href works but html:link page does
not
- The
Umm... ok... you are my newest and bestest friend. It works, it really
works! Sure, I'm getting an error message deeper into the example, not
finding struts-config.xml, but at least it's a NEW error! I'll figure it
out or cry for help again!
THANK YOU!
-Original Message-
From:
Someone posted a while back a revision to the link tag
(http://www.mail-archive.com/struts-dev@jakarta.apache.org/msg01185.html)
I was wondering the same thing myself about the link tag. Why create a Map
just to use it in the url. This also adds pain since you need to use a
scriptlet to create
Thanks a million Spencer.
-Michael.
-Original Message-
From: Spencer Smith [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 26, 2001 3:37 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: HTML:link tag
%@ taglib uri=/WEB-INF/struts-html.tld prefix=html %
*make sure above line is
Does anyone know how to extract the link url using
struts, rather than the full a.../a tag? I would
like to get a URL from a global-forward for use in a
javascript function.
Thanks,
Matt
--- Michael Skariah [EMAIL PROTECTED] wrote:
Thanks a million Spencer.
-Michael.
-Original
You must configure your web application to DECODE the utf8 encoded stuff.
In weblogic I make this entry in the web.xml file:
web-app
context-param
param-nameweblogic.httpd.inputCharset./*/param-name
param-valueUTF-8/param-value
/context-param
/web-app
I'm not sure what you need for tomcat
81 matches
Mail list logo