Mike,
1) You can use mapping.getInputForward() - more straightforward.
2) Yes, the forward can point to any resource, from a tiles definition to a jsp or an
action url (I'm talking about the value you put in the forward name=myforward
path=?/ bit).
--
If education is too expensive, try
Hey Matt / All,
Do you have an elegant way - in scriptlet form - at the JSP level to grab
an application.properties value to then use as a JSP expression ( %=...%)
in the value attribute of a tag.
I had tried to use the bean:message tag to get the value to populate into
the value attribute of
Hello All,
I have the following problem, and any help is greatly appreciated:
1. html form that has a checkbox which is associated with a Action Form
Bean - boolean attribute
2. ActionForm is in session scope
3. I call reset method selectively since I am trying to develope wizard
style pages
*sigh* I meant to include the following code snippet before hitting send,
but Outlook had other ideas
logic-el:iterate name=myList property=foo id=foo
c:out value=${foo.description}/
html-el:select property=myField indexed=true name=foo
Is there a way to accomplish something resembling this
without scriptlet?:
a href=Foo.do?Fooform.Foos[1].foo=BARepair/a
a
href=Foo.do?Fooform.Foos[2].foo=BARecognition/a
The jsp rendering this is using a nested indexed
ActionForm, and the action mapped via Foo.do uses the
same nested indexed
You can use this,
bean:define id=keybean:message key='myKey'//bean:define
You can use the key as a scriplet % =key%
This solution works also in the following case ,
if you want to display a title in your button if your write title =
bean:message key='myKey'/
it willn 't work ,
Following the
You mean like this?
bean:define id=someKey
bean:message key=some.key/
/bean:define
some:otherTag value=%=someKey%/
--
James Mitchell
Software Developer/Struts Evangelist
http://www.struts-atlanta.org
678-910-8017
AIM:jmitchtx
- Original Message -
From: Mike Deegan [EMAIL PROTECTED]
Thanks Konstadinis and James !
Appreciate the help - had a mental block after a week long Stampede party
here in Calgary.
Mike
- Original Message -
From: Konstadinis Euaggelos [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Saturday, February 15, 2003 1:00 PM
That's what I thought from looking at the source, I'm working on a similar
bit for handling exceptions in my transaction framework, attached is the
current code I'm working on to handle parent/child/grandchild inheritance,
not fully tested.
Jacob
-Original Message-
From: David Graham
Hi,
I've searched the FAQ and the archives, but can't find an answer to this question. I'm
know it's been asked before, but part of my problem seems to be that the mail-archive
search tool doesn't like colons or characters (so searching for html:select
becomes difficult). Try as I may, I'm
For some reason when I am calling mapping.getInputForward() I'm getting a
null value.
struts-config snip
action
className=com.labone.membersolutions.struts.BaseActionMapping
input=membersolutions.changepassword
Only the string in the value attribute gets submitted to the server so
there is no way of retrieving the text the user sees as the option.
David
--- Jung, Eric (Contractor) [EMAIL PROTECTED] wrote:
Hi,
I've searched the FAQ and the archives, but can't find an answer to this
question. I'm know
1) You can use mapping.getInputForward() - more straightforward.
so would you say cavaness's example broken? is there any way to
configure struts such that it would work?
2) Yes, the forward can point to any resource, from a tiles definition to a jsp or an action url (I'm talking about the
Hi,
Is there a way to return this resultset from a SQL Query as an xml file
using a beanutils class or Digester ?
Thanks,
Vijay
-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]
Sent: Monday, July 14, 2003 7:25 PM
To: Struts Users Mailing List
Subject: Re:
I can't believe people actually ask for this kind of thing. Completely
ridiculous.
It's hard to believe that someone fluent enough in computers to use struts
wouldn't have a grasp of the difficulty of language translation.
-Original Message-
From: Kearney, Michael [mailto:[EMAIL
http://www.google.com/search?q=javascript+confirm
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 15, 2003 1:39 PM
To: [EMAIL PROTECTED]
Subject: Java Script Confirm and struts
Hi i wud like to have a confirm box that displays a message
Mohan,
You can use javascript
script
function mymessage(){
alert( make sure all the values are correct, once it is submitted
it cannot be take back);
}
/script
on your
html:submit property=Submit value=Continue
onclick=Javascript:mymesage(); /
I think that should do it,..
My two
Can you also somehow check from a JSP whether a certain message resource
key is set to a certain value and then render certain HTML based on that
value, or not? Thanks
Martin
Tuesday, July 15, 2003, 9:53:51 AM, you wrote:
RM I forgot to add the simplest way in an Action class:
RM
[EMAIL PROTECTED] wrote:
When using the client side validation, there is always a javascript pop up box that says something along the lines of 'Your a thick b*stard, fill in xxx!' Our client requirement is that we produce a list of errors at the top of the page, (the red UL kinda thing), which
do you override the constructor and now call super()?
Jerry Jalenak wrote:
For some reason when I am calling mapping.getInputForward() I'm getting a
null value.
struts-config snip
action
className=com.labone.membersolutions.struts.BaseActionMapping
Or how about an ugly way? ;-)
%@ page import=org.apache.struts.util.MessageResources,
org.apache.struts.action.Action%
%
MessageResources resources =
(MessageResources) request.getAttribute(Action.MESSAGES_KEY);
%
%=resources.getMessage(userForm.userId)%
Matt
onclick=return confirm('Your message here')
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 15, 2003 12:39 PM
To: [EMAIL PROTECTED]
Subject: Java Script Confirm and struts
Hi i wud like to have a confirm box that displays a message saying
make
--- Vijay Balakrishnan [EMAIL PROTECTED] wrote:
Hi,
Is there a way to return this resultset from a SQL Query as an xml file
using a beanutils class or Digester ?
I don't know of any class that does that. Every application will require
its own XML format anyways.
David
Thanks,
Vijay
Hi,
I have a problem placing 2 logic:iterate.. with nested tags on one jsp.
When I put any of iterations below - they work fine. But when I put them
together, one after another, I receive an error:
org.apache.jasper.JasperException: No getter method for property projects of
bean projectsID
--- Mykola Ostapchuk [EMAIL PROTECTED] wrote:
Hi,
I have a problem placing 2 logic:iterate.. with nested tags on one
jsp.
When I put any of iterations below - they work fine. But when I put them
together, one after another, I receive an error:
org.apache.jasper.JasperException: No getter
Download the jar http://www.keyboardmonkey.com/downloads/km-nested-v2.03.jar and add
it to your classpath. See if that does the trick. This jar patches some bugs with
the nested classes included with Struts.
Sri
-Original Message-
From: Mykola Ostapchuk [mailto:[EMAIL PROTECTED]
Uh, no. Damn, it's always the littlest things... Thanks!
Jerry Jalenak
Team Lead, Web Publishing
LabOne, Inc.
10101 Renner Blvd.
Lenexa, KS 66219
(913) 577-1496
[EMAIL PROTECTED]
-Original Message-
From: Michael Muller [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 15, 2003 1:48
On Tue, 15 Jul 2003 12:34:07 -0600
Michael Muller [EMAIL PROTECTED] wrote:
1) You can use mapping.getInputForward() - more straightforward.
so would you say cavaness's example broken? is there any way to
configure struts such that it would work?
I'm not saying anything about Cavaness'
Thanks a lot! With km-nested-v2.03.jar it works fine.
Regards,
Mykola Ostapchuk
- Original Message -
From: Sri Sankaran [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]; Mykola
Ostapchuk [EMAIL PROTECTED]
Sent: Tuesday, July 15, 2003 3:14 PM
Subject: RE: 2 iterators on
I have an Action that could potentially take a long time to execute,
and would like to display a splash screen until the results of the
action are ready.
I went googling for this, but I can't seem to find a solution that
would fit within the Struts framework. Has anyone done this before?
i totally know the difficulty of language translation
so was just curious to find out what the other
developers do about language translation, i cannot
learn the other language or dont want to spent time
translating property files to other language, if some
one really needs it i will give him the
I want to make sure I got you right. So, you mean you put in each JSP
tile its required [EMAIL PROTECTED] taglibs?
Erez
-Original Message-
From: Chen, Gin [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 15, 2003 7:01 PM
To: 'Struts Users Mailing List'
Subject: RE: Tiles and %@ taglib
Hi did as u guys said but it submits the page anyway, i want the page not
submitted if i press the cancel button.It submits the page if press OK or
Cancel This is what i did...
script
function confirmSubmit(){
var agree=confirm(Make Sure all the Values are correct, once
html:submit property=Submit value=Continue
onclick=javascript:confirmSubmit()/
should be
html:submit property=Submit value=Continue onclick=javascript:return
confirmSubmit()/
-Tim
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 15, 2003 3:28 PM
To:
Mohan,
Try this
html:submit property=Submit value=Continue onclick=
javascript: return confirm('Your message here')/
marcos
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 15, 2003 12:28 PM
To: [EMAIL PROTECTED]
Subject: RE: Java Script
yuk how about a much cleaner way using jstl?
fmt:bundle basename=ApplicationResources
fmt:message var=foo key=bar/
/fmt:bundle
c:out value=${foo}/
Where ApplicationResources is the the name without .properties suffix.
-Tim
-Original Message-
From: Raible, Matt [mailto:[EMAIL
I have an Action that could potentially take a long time to execute,
and would like to display a splash screen until the results of the
action are ready.
I went googling for this, but I can't seem to find a solution that
would fit within the Struts framework. Has anyone done this before?
If a user selects something from a html:select field and the next time the pages loads
I want to get the value that they selected, how do I go about do this?
I know that if I used html:option struts would select the correct option for me, but
in my case the option tags get populated everytime
I do some webdesign as well, and that link was referenced on another mailing
list that I subscribe to. It wouldn't be google-able because the archives
aren't posted on the web.
Here's some other links that I have found helpful:
http://www.webstandards.org/
http://www.zeldman.com/
1. Change the html:submit to html:text
2. pass the form to the script and then submit
script
function confirmSubmt(form) {
var agree=confirm(Make Sure all the Values are correct, once submitted
this form cannot be take back);
if (agree)
form.submit();
else
return false;
}
I'm not saying anything about Cavaness' book. I haven't read it so I cannot comment :-) I'm just saying you can get the Input forward easily this way.
well, i'm not looking for a critique of the book, i'm just saying this
code looks broken.
return mapping.findForward( mapping.getInput() );
as
Thank you guys it works just by putting the return in there...thanks again
--Mohan
Mohan,
Try this
html:submit property=Submit value=Continue onclick=
javascript: return confirm('Your message here')/
marcos
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Hi,
I have a following requirement,
there are 2 links on a webpage, when the user clicks
on 1st link show the user login screen if he is not
logged in( ihave login info in session), if the login
is valid forward the request to 1st html page,
if the user clicks on 2nd link, again show the login
I'm not sure about other DB vendors, but Oracle provides an XML Developer's Kit
that includes:
XML SQL Utility: supporting Java, generates XML documents, DTDs and Schemas from
SQL queries.
Haven't used it before but it might be worth a look:
http://otn.oracle.com/tech/xml/xdkhome.html
The
i totally know the difficulty of language translation
so was just curious to find out what the other
developers do about language translation, i cannot
learn the other language or dont want to spent time
translating property files to other language, if some
one really needs it i will give
Instead of a String[], try a List that is populated with label value beans
and use the indexed properties to access individual elements.
logic-el:iterate name=myList property=foo id=foo
c:out value=${foo.description}/
html-el:select property=myField indexed=true
I read recently that you can convert from a Javabean to an xml file using
Digester with a dtd.I was wondering if there was a way to convert directly
from a sql resultset into an xml file without going through an intermediary
step of a javabean or custom formatting.
Thanks,
Vijay
-Original
Use the name attribute on html:select to refer to a bean which
contains this property (as described by the property attribute).
--- Sloan Seaman [EMAIL PROTECTED] wrote:
If a user selects something from a html:select field and the next
time the pages loads I want to get the value that they
Yes.
But beware O Man, beware, of Those who tread in Darkness the ramparts of Kadath, for
he that beholds Their mitred-heads shall know the claws of doom.
I've actually been struggling with this for a while now, and have come up with a
solution that (mostly) works, but it has been difficult.
OK, let me ask this:
Let's say that I have input.jsp, which goes to longAction.do, which in
turn forwards to long_results.jsp when finished. I've noticed that the
contents of input.jsp remain displayed after the submit button is
clicked, until the contents of input.jsp are ready for the browser
-Original Message-
From: James Childers
Sent: Tuesday, July 15, 2003 2:59 PM
To: Struts Users Mailing List
Subject: RE: Splash Screen in Struts (Please Wait page)
Yes.
But beware O Man, beware, of Those who tread in Darkness the
ramparts of Kadath, for he that beholds Their
Does anyone know how to solve the exception trace below? Both commons
logging and log4j are in the lib directory. Is this a class loading problem?
-Ryan
avax.servlet.ServletException
at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
l.java:471)
Dhruva,
I have done this before the absolute cleanest implementation is
almost 100% javascript:
1) Javascript submit(); call to start POST page loading
2) Javascript delete contents of the window (javascript:document.clear();)
3) Write new content to the window... adding in an img tag to a
HttpServletRequest has a method called getHeader(String name) use that with
a paramater of Referer which will give you the page the user came from.
Look at the Servlet specification for all your other answers.
--Amit
-Original Message-
From: Ashish Kulkarni [mailto:[EMAIL PROTECTED]
Hi there,
I am doing a mask validation for the phone - using the 'standard' regex
pattern:
constant
constant-namephone/constant-name
constant-value^(\d{3})[-| ]?(\d{4})$/constant-value
/constant
.
.
Aaron,
what will happen when server action takes 1-5 min?
user may get TIMEOUT ...
tnx
-Original Message-
From: Aaron Longwell [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 15, 2003 1:27 PM
To: Struts Users Mailing List
Subject: Re: Splash Screen in Struts
Dhruva,
I have done this
But googling takes effort! Asking a mailing list is so much easier :-)
--
If education is too expensive, try ignorance.
On Tue, 15 Jul 2003 13:40:26 -0500
Jarnot Voytek Contr AU HQ/SC [EMAIL PROTECTED] wrote:
http://www.google.com/search?q=javascript+confirm
-Original Message-
That, or you can always sub-contract the translation works. Translators are not
exactly hard to find, and anyone who even barely knows the language is likely to do a
better job than any translation program. If the sales people were not complete morons
they made sure that each extra language
First off, thank you for the reply.
As you point out both solutions that you suggest have a certain hackishness
over them it would be nice to avoid. As displaying data from a DB-table,
allowing that data to be edited (en masse, not one record at a time), must
be a pretty common task, doesn't
This doesn't seem to work--nothing after the first submit() call gets
executed.
I assume you put all of this code in the onclick handler for the submit
button.
--- Aaron Longwell [EMAIL PROTECTED] wrote:
Dhruva,
I have done this before the absolute cleanest implementation is
almost
Hi all,
I heard that struts doesn't work with epicentric. Is that true?
Thanks a lot!
--
Charles Liu
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hi
Are there any *best practices* or examples around showing the best way of
implementing the maintenance of a master/detail relationship using the
Struts framework?
For example if I provide a form with a supplier and list of products where
you can edit the supplier details and/or edit the
hi Charles,
I have imlemented some modules based on Struts 1.1 rc1 that I integrated to
Epicentric with out any problems.
yes I had some problems with Epicentric, but that all about links (href)
that Epicentric translates in own way - that is diff. story.
Best Regards.
Michael.
-Original
I have a property on a form bean that stores an object that contains
an array list.
The array list contains a wrapper object that contains 4 other
objects - each of a different type.
I try to access the respective properties of each of the four objects
contained in the wrapper object in the
I'll have to look into this... I know I did it before in a situation
with frames Javascript was actually executed in some other frame...
so that the long-loading window could be manipulated by another frame
(which can always execute javascript even when the other window is loading).
No, epicentric does not work with Struts. Struts is just fine (without the
friggin Validator).
-Original Message-
From: Charles Liu [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 15, 2003 5:46 PM
To: [EMAIL PROTECTED]
Subject: epicentric struts
Hi all,
I heard that struts doesn't work
I have a fresh installation of the following on Windows XP:
- Java 1.3.1_08 SDK
- Tomcat 3.2.3
- Struts 1.1
If I run Tomcat it starts fine, and all the examples work.
However, if I drop the Struts 1.1 struts-blank.war or struts-example.war
into the tomcat/webapps dir, I get the
On Tue, 15 Jul 2003, Jim Ryan wrote:
Date: Tue, 15 Jul 2003 17:25:31 -0700
From: Jim Ryan [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: PropertyMessageResourcesFactory ClassNotFoundException
I have a fresh installation of the
On Tue, Jul 15,'03 (04:04 PM GMT+0200), Adam wrote:
Since it's in my action base class, I never have to worry about
programming it manually.
If you are always going to check that the List is there in your
BaseAction class, why not just give the List application scope on start
up and not
- Original Message -
From: Shane Mingins [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, July 15, 2003 4:58 PM
Subject: How do I implement a Master/Detail maintenance form?
Hi
Are there any *best practices* or examples around showing the best way of
implementing the
I have the following scenario occuring.
I have a form with several fields on it (the fields are sourced to a
collection in an ActionForm).
I have a button that allows the removal of fields from the form (items
from the collection).
If a user removes a field from the form and then double
I am using struts with tiles and it works great.
Butt, Dudley [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hi all,
Just need some info on what you guys are using out there, and what
strategy is working the best for you.
Lets say i want to use Struts and I need to get a nice
snip
I call reset method selectively since I am trying to develope wizard style
pages with one form.
/snip
Ah, but if you dont reset the checkbox it will always stay ticked - as
nothing (not even an empty string!) is submitted for an unticked checkbox so
the forms setter method is never called.
Kris... this was just awesome! Thanks. You da 'man:)
On Tue, Jul 15,'03 (11:25 AM GMT-0400), Kris wrote:
As it turns out, some of my ideas about a standard property of type
Map versus a mapped property were a bit off. So, if you're still
interested, here's something I hacked together. You'll
snip
Is there any reason you are forwarding from JSP?
/snip
JSP where got?
He stated quite clearly he is forwarding from one action to another using
(returning I presume) an ActionForward.
snip
forward name=action2 path=/Action2.do/
/snip
I was going to suggest that you specify redirect=false
We have a situation where we've created a custom foo:include tag that
reads text from a file and writes it to the pageContext.getOut() JspWriter.
The problem is that the file is ISO-8859-1 (Latin 1) encoded. When it gets
brought into a String (via any method you care to suggest), it gets
hi,
struts does support for transaction tokens , pl check the struts docs
for the api implementation
-- nagi
---Original Message---
From: Struts Users Mailing
List
Date: Wednesday, July
16, 2003
101 - 177 of 177 matches
Mail list logo