Any help/takers ?
-Original Message-
From: Janarthan Sathiamurthy
Sent: Thursday, March 25, 2004 10:16 PM
To: [EMAIL PROTECTED]
Subject: Struts Validator and Select boxes
Hi,
I am using Struts validator.
One page of mine has dates displayed as MM DD .
All the above 3 are
Hello Marco,
maybe this will help (using struts-el):
bean-el:message key='prompt.productType.${product.productType}'/
Dima.
Thursday, March 25, 2004, 6:02:54 PM, you wrote:
MM Hi all,
MM I was wondering if anyone of you have a solution
MM For this dilemma.
MM I have a collectin of
As someone with good experience in MVC-based applications but a newbie
to Struts, what I understand from this discussion is that the
recommended implementation would have to comply, at least, with this
guidelines:
- The conversion code is encapsulated in a separate class (I suppose one
converter
+1
I also suggest this approach to keep the date as string during posts and convert
them to date object when porcessing the entered dates, surely not in the Form.
Depends on what you really want to achieve. Would suggest the KISS rule..:-)
Robert Taylor [EMAIL PROTECTED] on 03/25/2004
Hi,
thanks everybody for the responses, they help us a lot to make a
decision, i think that it could be better solution trying to do my
requirements with tags , but i need that an import could load a resource
dinamycally, something like these
c:import url=${sessionScope.SomeVariable} /
I think the way of going about converting is pretty open, either have
some conversion utils between the web tier and the model. I tend to do
it in the action and then when things get long or i need the code again
move it out into a util class or like you're saying make my model util
classes
I've just finished fixing what I think is the same problem you guys have
been
having i.e. switching modules on Struts 1.1
First, make sure you have the most recent release build of struts, as I had
problems
with earler 1.1 builds on weblogic 8.1
I originally started with the
Since I just wrestled greatly with this particular beast, my $.02 follows.
Subclass whatever flavor of ActionForm you use, and give it a method with a
footprint like-
java.util.Date StringToDate(String)
{
}
This way you can do something like this in your action:
public ActionForward
Hi,
Suppose I've got a web based form that posts data to an action, and I
have that action protected by container form based authorization - how
does the ActionForm data get through.
I have a situation like this, and my ActionForm is empty after I've been
through the form-based login page.
One
Mark, didn't mean to be pedantic... just wanted to prevent everybody
from going through all the (obvious / basic / simple) details and just
go to the important stuff. Neither am I an MVC guru.
In any case, thanx everybody 4 your help.
Regards,
Freddy.
-Mensaje original-
De: Mark Lowe
Thank you for your assist, Mr. Jason
(B
(BJason Lea [EMAIL PROTECTED] wrote:
(B
(B He was saying it 'can' display Japanese characters. The example doesn't
(B have any Japanese characters in in (if i remember correctly), but if
(B they are put into the properties files for the locale they
Freddy. No, you misunderstood if you thought I was responding with any
hostility whatsoever.
There is a general problem where input would be better validated in the
web tier so it can be decoupled from the model. So times comparing two
dates would be useful and so on. But i think its also try
Cool!
No offence, Mark. In part, it's my fault since English is not my native
tongue and sometimes the same word translated into other language
changes the connotation of a phrase. Sh*t happens! :)
I believe yours is a valid approach (in fact, was one of the options I
was considering for the
Hello
I have multiple Struts web applications deployed within Jetty but the
locale that Struts saves in the session is not shared between the
contexts. I guess that is to be expected. But how do I create a
work-around for this problem? I need the applications to share the
locale so that if
Hi Van
I am not using simple logger.I am using apache's commons logger.Pls le me
know how to do it
Thanks
Sougata
-Original Message-
From: Van Riper, Mike [mailto:[EMAIL PROTECTED]
Sent: Friday, March 26, 2004 12:38 PM
To: 'Struts Users Mailing List'
Subject: RE: Pls help me in
Hi,
I read that some of you had some problems to run
Struts apps on WSAD and as I run into that problem
too i wanted to know how you solved it!
I as far as I understand some turned of different validations
including the on concerning Struts, but where couldn't
fide the right place to do that!
Oliver,
What version of WSAD are you running? What problems are you having
specifically?
Validation is controlled through the menu option Window Preferences
Validation
Susan Bradeen
Oliver Thiel [EMAIL PROTECTED] wrote on 03/26/2004 08:09:34 AM:
Hi,
I read that some of you had some
Which version of WSAD are you using ?
I don't have problems with 5.0 + updates or 5.1.
Rouven
- Original Message -
From: Oliver Thiel [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, March 26, 2004 2:09 PM
Subject: [OT] WSAD problems with Struts
Hi,
I read that some of you
Well I've just simplified by login form - plain html - no struts stuff
going on.
I've also simplified the filter so detects a fresh logon and starts a
session accordingly - no longer any redirecting to LoginAction.
However the critical behaviour is still the same - existingCustomerForm
- the
Hi,
I have to use: WebSphere Studio Application Developer (Windows) Version:
5.1.0
I developed my app with the StrutsStudio, as it is not that complex. But
know I have
to run it on WSAD and run into different problems:
a. WSAD did not like the validation.XML
(so deleted it cause I did
At 1:59 PM + 3/26/04, Martin Alley wrote:
Well I've just simplified by login form - plain html - no struts stuff
going on.
I've also simplified the filter so detects a fresh logon and starts a
session accordingly - no longer any redirecting to LoginAction.
However the critical behaviour is
On 26 Mar 2004 13:59:25 -, struts-user-digest-help wrote
Re: Pls help me in configuring common logger
109791 by: sougata
sougata, if you're using Log4j you need to add a file called
commons-logging.properties file under your WEB-INF/classes directory. In that
file you need one line:
I posted a tag (StoreTag) which will store the generated html from a jsp in
a bean, then in your action you can get the RequestDispatchter and do an
include:
Details in the following messages:
http://www.mail-archive.com/[EMAIL PROTECTED]/msg94956.html
http://www.mail-archive.com/[EMAIL
Hi Joe,
I might be able to put some general code in the login form (as a jsp)
that puts all form data present in the previous page into the login form
so it could be passed on, but that will still leave the problem of the
method becomes GET instead of POST.
I'm really hoping there's a more
This is the only solution I can think of:
public class RedirectServletRequest extends HttpServletRequest {
public RedirectServletRequest(HttpServletRequest req) {
this.request = req;
}
public String getParameter(String name) {
if (
Posting whats in your validation.xml for the form and the bit of your jsp
with your select fields would be helpfull.
If you take the fromDay as an example, you are using
field.getVarValue(fromDay) - if you don't have a var defined in your
validation.xml for fromDay then that would cause the No
I might be able to put some general code in the login form (as a jsp)
that puts all form data present in the previous page into the login form
so it could be passed on, but that will still leave the problem of the
method becomes GET instead of POST.
I'm really hoping there's a more elegant
Paddy,
Looks like you've been here before!! :-)
It'll take me a bit of time to digest this, but I'll have a look.
Does this actually work for you?
Thanks
Martin
-Original Message-
From: Pady Srinivasan [mailto:[EMAIL PROTECTED]
Sent: 26 March 2004 15:21
To: Struts Users Mailing List
I think I need to do some simple test cases - with and without struts.
Martin
-Original Message-
From: Joe Germuska [mailto:[EMAIL PROTECTED]
Sent: 26 March 2004 15:20
To: Struts Users Mailing List
Subject: RE: How does ActionForm data pass through container called form
based login
We were going to implement this today or early next week :-)...looking at
the code, I feel you don't need to extend ActionServlet at all. Instead the
filter will create the request before forwarding to the ActionServlet.
public class LoginFilter implements Filter {
public void
I'll be very interested to here the outcome...
Thanks
Martin
-Original Message-
From: Pady Srinivasan [mailto:[EMAIL PROTECTED]
Sent: 26 March 2004 16:07
To: Struts Users Mailing List
Subject: RE: How does ActionForm data pass through container called form
based login page?
We were
Hello everybody,
An off-topic question (it's Friday, I hope you accept it!):
I want to implement a Business Object Model on top of many DAOs. Those
BOs will be - obviously - related to each other (mainly 1:n and m:n
relationships).
I must implement this in such way that, when - for
Hello everybody,
I hope it's not a trivial question.
I'm trying to access the current Locale from a JSP page. The key to
access the Locale is stored in variable
org.apache.struts.Globals.LOCALE_KEY. So what I did is to look up the
value of the variable in the source file
let say your class' name is A and your static method
is aaa();
all you hava to do is A.aaa();
--- Sunny [EMAIL PROTECTED] a écrit : How can i
invoke static methods of a Class without
instantiating it in
struts
-
To
--- Joe Hertz [EMAIL PROTECTED] wrote:
Does Struts provide a method where I provide it the name of the bean
defined
in the struts-config.xml and it return me an instance of the appropriate
class, with all the dyna properties set up?
At 3:19 PM -0800 3/25/04, Hubert Rabago wrote:
It does
Folks, this may be an off topic question, but I am curious to understand why.
We know that Http protocol has features such as Headers. Both response and request
have HTTP headers. It is easy to get the headers in J2EE from a HttpServletRequest
objects using getHeader() and/or getHeaders()
Hallo together,
Thx, for the help. I installed the Tomcat v5.x engine and now it's working
like you guys suggested without EL.
Regards
Joern
-Original Message-
From: Brian Buchanan [mailto:[EMAIL PROTECTED]
Sent: Dienstag, 23. März 2004 15:12
To: Struts Users Mailing List
Subject: RE:
Hello,
I am playing around with modules and things work pretty nicely =
except
I have a tiles template that reads in a menu.jsp from the default =
WEB-INF. The links to the actions are prepended with the module. (i.e. =
html:link action =3Dmodule1/dosomething.do/. )
This works fine expect
Larry,
I'll go out on a limb here and say that since the
response is being generated on the server by a servlet
or JSP, there is no need for getHeader() or
getHeaders() methods because the developer is setting
them. The HttpServletResponse interface has
addHeader() and addXXXHeader() methods to
try this
session.getAttribute(Globals.LOCALE_KEY);
--- Denis Laroche [EMAIL PROTECTED] a écrit :
Hello everybody,
I hope it's not a trivial question.
I'm trying to access the current Locale from a JSP
page. The key to
access the Locale is stored in variable
try change the scope of the le locale from session
to application
--- Jan Normann Nielsen [EMAIL PROTECTED] a
écrit : Hello
I have multiple Struts web applications deployed
within Jetty but the
locale that Struts saves in the session is not
shared between the
contexts. I guess that is
Freddy, I think you only need to look into using JTA and XA transactions
if you are spanning multiple data sources (databases). If you are not,
then I would look into using an Object-relational mapping tool like
Hibernate or OJB to do what you want to do. These tools usually provide
support
Thanks,
but is there a way to do it without using Java code directly in the JSP
page?
Nizeyimana
Freddy,
You may want to take a look at Hibernate (http://www.hibernate.org), if you
haven't done so already.
Hibernate is a persistence mechanism which utilizes XML mappings to map
Java objects to relational database schemas, and does support cascading
deletes, amoung other things.
HTH,
Ian
I am trying to display a value from a requestAttribute in an html-el:text
... but I can't get it to work. Here is my code:
html-el:text: property=searchType
value=%=request.getAttribute(searchType)%/
I recieve the error:
Attribute searchType has no value
Someone told me I have to
And if you wanted to use JSTL you would use:
c:out value=${info.infoName} escapeXml=false/
Bill Siggelkow
Anybody knows how to display a bean property with html
markup properly in the output. I have the JSP snippet
code as follows:
HTML
abcdefg bean:write name=info property=infoName /
You can also override the global Validation preferences within the
Validation portion of the Project Properties.
Ian
Susan Bradeen
I am trying to display a value from a requestAttribute in an
html-el:text ... but I can't get it to work. Here is my code:
html-el:text: property=searchType
value=%=request.getAttribute(searchType)%/
I recieve the error:
Attribute searchType has no value
Someone told me I have
From: Bender, James [mailto:[EMAIL PROTECTED]
I am trying to display a value from a requestAttribute in
an html-el:text
... but I can't get it to work. Here is my code:
html-el:text: property=searchType
value=%=request.getAttribute(searchType)%/
I recieve the error:
Attribute searchType
Hi all,
I am trying to write a SELECT ... LIKE %whatever% statement with
iBatis but I can't seem to get it to work, nor can I find a clear
explanation of how to do this. Does anybody have a code snippet they
could share with me of how to do this?
Thanks in advance.
Andy
At 1:03 PM -0500 3/26/04, [EMAIL PROTECTED] wrote:
Thanks,
but is there a way to do it without using Java code directly in the JSP
page?
In this cases there is not, although this has been discussed just
today on struts-dev:
http://article.gmane.org/gmane.comp.jakarta.struts.devel/18429/
In
Hi Andy,
we have a same kind of statement in our xml file and it looks like this:
codesnippet
mapped-statement name=statementName result-map=result
SELECT * FROM tbl_name WHERE column_name LIKE '%';
/mapped-statement
/codesnippet
Pay attention to the single quotes around the %-sign!
Good
Sougata,
I can point you in the right direction, but, I don't have time to spell
everything out for you. I think you need to do some work on your own reading
the commons logging docs. You need to understand the commons logging
package and how to configure it to use log4j or the native logging
Richard,
Thanks for your answers. I think that makes great sense; though I still think to have
getHeader() or getHeaders() may be helpful when doing debug for response object.
Larry
-Original Message-
From: Richard Yee [mailto:[EMAIL PROTECTED]
Sent: Friday, March 26, 2004 12:06 PM
To:
Larry,
For debugging purposes, the org.apache.soap.util.net.TcpTunnelGui utility is
useful. It's in the Jakarta Soap project jar file. It will let you view the
headers and the markup sent to/from your browser.
-Richard
-Original Message-
From: Zhang, Larry (L.) [mailto:[EMAIL PROTECTED]
It might not be sexy, but a fast solution would be to use something
else instead of quotes e.g. ^ or | and then use a
small Javascript replace function to write out the text correctly?
Colm
-Original Message-
From: Doug [mailto:[EMAIL PROTECTED]
Sent: 24 March 2004 23:25
To: Struts Users
Hi Wendy,
Thanks for responding! Someone showed me a way to do what I needed to do,
but the way I'm approaching the entire problem may be kludged:
The user can click
Search Attributes | Search Components | Search Templates
I've provided html:link's like these respectively:
I've come across this in a few difference manifestations and the best
course of action I've come across is dependant on the number of variations.
If you're only talking about a couple of hundred or less, use a javascript
array to populate the second dropdown on the fly.
If you're dealing with
Just the same as any other hyperlink you create with Flash.
Just point your hyperlink to nameoflink.do instead of nameoflink.jsp
Colm
-Original Message-
From: Jignesh Patel [mailto:[EMAIL PROTECTED]
Sent: 24 March 2004 18:02
To: [EMAIL PROTECTED]
Subject: .swf file
Dear Friends,
Can
Or wrap the whole app up in frames. That'll do the trick.
Colm
-Original Message-
From: Mark Shifman [mailto:[EMAIL PROTECTED]
Sent: 24 March 2004 18:32
To: Struts Users Mailing List
Subject: Re: blocking bookmarked actions
where do I do the blocking? The action I am having problems
From: Bender, James [mailto:[EMAIL PROTECTED]
The user can click
Search Attributes | Search Components | Search Templates
I've provided html:link's like these respectively:
doPrepareSearch.do?searchType=attribute |
doPrepareSearch.do?searchType=component |
Ronald Rotteveel [EMAIL PROTECTED] wrote:
Hi Andy,
we have a same kind of statement in our xml file and it looks like
this:
mapped-statement name=statementName result-map=result
SELECT * FROM tbl_name WHERE column_name LIKE '%';
/mapped-statement
Right, but I was running into trouble
Try adding contextRelative=true to the forwards in your
struts-config. I remember a similar problem I had a while back, but I'm
not entirely sure this will solve it. Here is an example of an Action I
had in a struts module I wrote:
action path=/listLoggers
On 25/03/2004 13:22, Mariano García [EMAIL PROTECTED]
wrote:
El mié, 24-03-2004 a las 20:21, Pedro Salgado escribió:
Below is a reply sent to this mailing list about something very similar to
what you are looking for.
but there is any way to use dynamic content only using tiles tags? In
Sorry this is not directly related to Struts, but is it possible to use the
expression language in custom tags? I think you can, but I am not quite
sure how to do it. Do you get this for free by just upgrading to a JSP 2.0
compliant server? Or do I have to do something with the custom tags to
Thanks for your guidance.
You are right , we are in the case where user will come back from search
page.
I will try as you suggested and give feedback.
Regards
Shoaib
I guess the first thing to consider is what you mean by come back to
the
previous page.
Do you just mean have the user
When I am using Tomcat I get a security exception when I try to access a
java.security.KeyPairGenerator for a Diffie-Hellman key pair. I don't get
it with other servers. Anyone know why this is?
java.security.NoSuchAlgorithmException: DH KeyPairGenerator not available
Hi Niall,
I am attaching the validation.xml and the jsp that i have used.
I have done the exact thing that you had specified earlier before posting
to the mailing list.
I am not clear where i am going wrong.
The Struts-config entry goes like -
form-bean name=ocsReportForm
From: Bender, James [mailto:[EMAIL PROTECTED]
I'm new to Struts and have searched without luck on this one:
I have an html:text ... that I'm simply trying to put a runtime
expression into, like
% String rtexpr = bob; %
html:text property=searchType value=%=rtexpr %
And instead of
69 matches
Mail list logo