Hi,
in my application I have a rather complex object to deal with. I have split
the process in several jsps (JSP1, ..., JSPn) using different ActionForms
(AF1, ..., AFm) with them. I need information collected in one JSPi (using
AFi) in another JSPj (using AFj). How can I access both Afi and Afj i
Hi,
in my application I have a rather complex object to deal with. I have split
the process in several jsps (JSP1, ..., JSPn) using different ActionForms
(AF1, ..., AFm) with them. I need information collected in one JSPi (using
AFi) in another JSPj (using AFj). How can I access both Afi and Afj i
ne action. Best practice?
>
>
> Martin Kindler wrote:
>
> >in my application I have a rather complex object to deal
> with. I have
> >split the process in several jsps (JSP1, ..., JSPn) using different
> >ActionForms (AF1, ..., AFm)...
> >
> >2. merge all
Hi Bill,
so you say, it is good practice to use the two forms in one action as I do
in my current solution? Sure, one has to hide the internals from AF1 to an
action primarily designed to use AF2 to keep the address module generic.
Perhaps I should make the calling ActionForms implement a specific
rm-dialog ActionForm would contain both the region
> information
> and the list of stores. Thus I would only use one ActionForm per
> Action, and I wouldn't use session variables.
>
> Bill
>
> Martin Kindler wrote:
>
> >Hi Bill,
> >
> >so you say, it
Brandon,
the easiest way I can think of is using http headers. You may have a look on
http://wurfl.sourceforge.net. They strive to build a list of the
capabilities of mobile phones. There is even a standard (I think) for
manufacturers of mobile phones to give access to the capabilities of their
de
re to add the hook? possible problems
when upgrading to newer versions of Struts).
What is the common approach to this problem?
Martin Kindler
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [
ich do the conversion with
another "field"-name (starttimestr). This works.
The question is: is this considered good style? Are there any problems
to be aware of? I am new to Java and Struts, so I think I better ask.
Martin
-------
Martin Kindler
eM
Thomas,
in my decorators I typically take the current context path from the
PageContext like this:
PageContext pc = getPageContext();
HttpServletRequest request = (HttpServletRequest)pc.getRequest();
String contextPath = request.getContextPath();
Martin
> -Ursprüngli
Hi Jim,
like you, I am looking for a solution to embed PHP components in my JSP
pages. Therefore I was glad to learn by your mail of the existence of this
php/Java bridge. But looking at the web site I see only the other way round:
integration of Java backend classes with the PHP frontend. Am I ri
what I try. I tried withou the controller class also.
>
> Jim
>
>
>
>
>
> >From: "Martin Kindler" <[EMAIL PROTECTED]>
> >Reply-To: <[EMAIL PROTECTED]>
> >To: "'Struts Users Mailing List'"
> >Subject: AW: STRUTS PHP
> >
Re: AW: STRUTS PHP
>
>
> On 11/16/05, Martin Kindler <[EMAIL PROTECTED]> wrote:
> > I googled a bit for a taglib providing a tag to include any
> > http-sources in my jsp-pages (as you know I want to include
> > PHP-generated pages) and found the Jakarta IO-tagli
If you are using Tomcat I would suggest you use the Sysdeo Plugin
(www.sysdeo.com). With it one can smoothly debug web apps in Eclipse. I do
it all the time.
Martiin
> -Ursprüngliche Nachricht-
> Von: R. Markham [mailto:[EMAIL PROTECTED]
> Gesendet: Mittwoch, 23. November 2005 14:40
> An
I'm using 1.4.2 and would like to switch to 1.5.
I am also using the Validator.
Martin
> -Ursprüngliche Nachricht-
> Von: Niall Pemberton [mailto:[EMAIL PROTECTED]
> Gesendet: Montag, 23. Januar 2006 12:37
> An: Struts Users Mailing List
> Betreff: What JDK version are you using?
>
>
>
Look at the org.apache.struts.util.MessageResources class. It has a method
getMessage(Locale, String) which retrieves the resource.
You can get the instance of the MessageResources from the request in your
Struts action. It has the key "org.apache.struts.action.MESSAGE".
Martin
> -Ursprüngli
You can set it in the project properties, which you find parallel to the
Tomcat submenu).
Martin
> -Ursprüngliche Nachricht-
> Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Gesendet: Donnerstag, 9. Februar 2006 17:56
> An: Struts Users Mailing List
> Betreff: Struts application WAR
ly.
Looking a bit into the problem I found that the form tries to transfer
plzs_submit.x and plzs_submit.y and this causes the problem.
I am puzzled.
Any explanation and hint for stopping this will be greatly appreciated.
Martin
+-------
Dipl. inf.
ill be greatly appreciated.
Martin
+-------
Dipl. inf. Martin Kindler
Julius-Leber-Str. 8
D-76448 Durmersheim
Tel. +49 (0)7245 80 48 774
GSM +49 (0)160 977 636 14
-
To unsubscribe, e-mail: user-unsubscr.
n which is definitely no
longer beta, but is 1.2.4 therefore the right choice?
Any remarks are welcome!
martin
---
cityExperience.net
Dipl. Inf. Martin Kindler
Kaulbachstr. 20a
D-12247 Berlin
Deutschland
eMail [EMAIL PROTECTED]
Tel. +49 (030) 260 78 48 2
Fax
/WEB-INF/tld/c.tld" prefix="c" %>
(I put all my TLDs under the WEB-INF/tld directory)
Any hints?
Martin
---
cityExperience.net
Dipl. Inf. Martin Kindler
Kaulbachstr. 20a
D-12247 Berlin
Deutschland
eMail [EMAIL PROTECTED]
> -Ursprüngli
information about the selected items in the page
with the link on (as the ActionForm associated with the action is resetted).
Is there an easy way to keep the information until finally the form is
submitted?
Martin
---
cityExperience.net
Dipl. Inf. Martin Kindler
have to build the "page parameters" that display tag
> uses for paginate, manually it is possible but very ugly
> from my point of view...
>
> that´s all I can say, wish it helps you... and if you find
> another solution, please tell me!...
>
> Lucas
>
>
Hi ,
with isUserInRole you can check whether the the current remote User has the
role you specified.
There is also an method
//check authentication assuming that user needs the role "editor" for the
action
if (!request.isUserInRole("editor")) {
throw new Exception("user not authenticated fo
Hi guys,
I think this lovely discussion is losing focus.
Remember there have been great programmers and programs before any of us was
born.
Do you think the guys creating e. g. Unix had Emacs or an IDE
?
And we (well, some of us) today are great programmers using better tools.
It is the (wo)m
Hi list,
does someone know a good (and not expensive) webhosting service in Germany
who is experienced in hosting Struts-based apps using Tomcat?
My current provider seems to have some problems and I will probably have to
change.
Any hints are welcome.
Another OT issue (but it is Friday and I pr
Where is the path to the log file specified?
Something like this:
log4j.appender.AccessLog.File=
Martin
> -Ursprüngliche Nachricht-
> Von: Vijay K Anand [mailto:[EMAIL PROTECTED]
> Gesendet: Montag, 4. Juli 2005 14:48
> An: user@struts.apache.org
> Betreff: log4j log
>
>
> Hi
> Here
Try Displaytag (www.displaytag.org). It is a taglib which handles everything
(paging, sorting). The only problem I encountered was with multiple row
selections spanning several pages.
Martin
> -Ursprüngliche Nachricht-
> Von: S³awek Tuleja [mailto:[EMAIL PROTECTED]
> Gesendet: Mittwoch,
David,
could you please be a bit more specific?
Just now I have a very similar problem as LuKe.
I am using MySQl 4.1.10 and all tables are UTF-8.
Struts is configured to use UTF 8 (i. e. the controller element in
struts-config.xml says
contentType="text/html;charset=UTF-8").
This seems to work.
Bart,
looks like a character encoding problem. The mangled character in the
filename (ᅵ) is meant to be a german u-umlaut.
I can't offer any more advice to resolve the problem as I am working on this
type of problem myself :-(
Martin
> -Ursprüngliche Nachricht-
> Von: Bart Frackiewicz
TED]
> Betreff: RE: Problem with characters
>
>
> Make sure the jsp doing the posting has
>
> <%@ page language="java" contentType="text/html; charset=UTF-8" %>
>
> Dave.
>
> -Original Message-
> From: Martin Kindler [mail
, 7. September 2005 17:34
> An: Struts Users Mailing List
> Betreff: Re: AW: Problem with characters
>
>
> Martin Kindler wrote:
> >...
> > at last I installed a little filter on my container (Tomcat 5.0.x)
> >which explicitly sets the encoding for each reque
r in your Actions with
> response.setContentType("text/html;charset=UTF-8"). I found on some
> browsers that the meta tag in the HTML won't override the
> value in the
> HTTP header.
>
> Just suggestions. I haven't actually dealt with this problem
>
I would use an int (whether cents or tenth of cent if you are in the oil
business depends on your application). No rounding problems, no parsing
problems.
Martin
> -Ursprüngliche Nachricht-
> Von: Murray Collingwood [mailto:[EMAIL PROTECTED]
> Gesendet: Freitag, 9. September 2005 09:15
>
I've got a problem with using non-ISO-8859 characters (they are UTF-8) in my
Struts application.
When I am using property-Strings in the resource bundle with cyrillic
letters and use them they get mangled.
They are mangled when I use the JSTL fmt:message tag as well as when I am
importing them in m
Thanks Michael,
that works!
Martin
> -Ursprüngliche Nachricht-
> Von: Michael Jouravlev [mailto:[EMAIL PROTECTED]
> Gesendet: Mittwoch, 21. September 2005 18:34
> An: Struts Users Mailing List; [EMAIL PROTECTED]
> Betreff: Re: Again: I18n problems
>
>
> On
Richard,
take a look at the Displaytag library (http://www.displaytag.org).
Martin
> -Ursprüngliche Nachricht-
> Von: R. Markham [mailto:[EMAIL PROTECTED]
> Gesendet: Montag, 26. September 2005 15:14
> An: 'Struts Users Mailing List'
> Betreff: Looking for a table library
>
>
>
>
>
> RadioButton) in a column. It seems to me that I only can use
> the cells as output string. I already use the table of
> http://www.displaytag.org) in my Application but I am looking
> how to put a checkbox in a cell.
>
> Regards
>
> Richard Markhham.
>
> -Urs
Good point!
But (this is OT): how do you stop Tomcat from doing so? I looked in the
Tomcat 5.0.x doc and just found nothing really helpful.
Martin
> -Ursprüngliche Nachricht-
> Von: Leon Rosenberg [mailto:[EMAIL PROTECTED]
> Gesendet: Freitag, 30. September 2005 10:03
> An: Struts Users
You just need the displaytag-12.tld (without el). The other version (I
think) contains code to evaluate expression language
expressions. In your case this should be automatic.
Martin
> -Ursprüngliche Nachricht-
> Von: fea jabi [mailto:[EMAIL PROTECTED]
> Gesendet: Montag, 7. November 20
.
Any help will be appreciated.
Thanks.
Vikas.
--
--
Martin Kindler
Kaulbachstr. 20a
D-12247 Berlin
Deutschland
E-Mail: [EMAIL PROTECTED]
Tel. +49 (030) 260 78 48 1
Fax +49 (030) 260 78 48 3
GSM +49 (0160) 977 636 14
Skype martin.kindler
h goes like:
Now, if I need the inputDir value inside my program, how do I do it?
Sorry that this is off topic from struts, but i cant seem to find some
sensible help.
Any help will be appreciated.
Thanks.
Vikas.
--
------
Martin Kindler
Kaulbachstr.
Hi all,
I'm kind of stuck with a little problem. perhaps someone can help!
I want to include a payment service into my Struts Action 1.2.x based shop.
The payment service needs the information via http POST. The user (my
customer) will authorize the transaction on the site of the payment service.
Thank you all for answering!
But I seem not to have stated my problem clearly: I know how I can POST to
an uri using Java.
My problem is that I want the user to be redirected (or forwarded) to the
page my action has posted the data to.
The easy way to handle this is:
put a button on my page by wh
Michael,
> -Ursprüngliche Nachricht-
> Von: Michael Jouravlev [mailto:[EMAIL PROTECTED]
> Gesendet: Mittwoch, 3. Mai 2006 19:31
> An: Struts Users Mailing List; [EMAIL PROTECTED]
> Betreff: Re: How to POST data to an external site from an action?
>
>
> O
add a field (if you do not want users to edit it, use type hidden) to your
form.
Martin
> -Ursprüngliche Nachricht-
> Von: Abhimanyu Koul [mailto:[EMAIL PROTECTED]
> Gesendet: Mittwoch, 24. Mai 2006 13:27
> An: Struts Mailing list
> Betreff: urgent
>
>
> hi all!
> I use to display som
The documentation is your friend.
See http://displaytag.sourceforge.net/11/tut_style.html
The even and odd CSS classes allow you to do what you want.
Martin
> -Ursprüngliche Nachricht-
> Von: Abhimanyu Koul [mailto:[EMAIL PROTECTED]
> Gesendet: Donnerstag, 25. Mai 2006 07:56
> An: Struts
I have not really followed this stream, but just to develop a Struts (action
1.x) based app with Eclipse 3.x
does not require something special. Just create the project, add the Struts
jars to it (do not forget the build path) and go.
If you want to have integrated debugging with Tomcat you can us
> particular way.
>
> > -Original Message-
> > From: Martin Kindler [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, May 25, 2006 12:59 PM
> > To: 'Struts Users Mailing List'
> > Subject: AW: Struts with Eclipse 3.1
> >
> >
> > I
Hi Pankaj,
if you use JSTL you can have a java.util.Map as the collection type you are
iterating over. The only trick is that the item you operate on in each
iteration is a java.util.Map.Entry, i.e. you must access its key/value
accordingly.
The same is true, if you are using Struts logic tags.
M
I do not know, if there is a tool for XHTML MP, but we have done our mobile
site with ordinary Struts and a set of XHTML MP JSPs.
Very easy. If you want to look: http://www.cityexperience.net/. If you do
use a "normal" browser and would like to see the mobile version, start at
http://www.cityexperi
[mailto:[EMAIL PROTECTED]
Gesendet: Freitag, 30. Juni 2006 09:33
An: [EMAIL PROTECTED]
Cc: 'Struts Users Mailing List'
Betreff: Re: AW: xhtml-mobile with Struts?
El vie, 30 de 06 de 2006 a las 09:12, Martin Kindler escribió:
I do not know, if there is a tool for XHTML MP, but we hav
Sorry I posted the wrong url. If you are interested, try
http://www.cityexperience.net/cxpCat/Welcome.do?ua=MOBILE
Martin
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For me Eclipse is marvelous for Struts development (Struts 1.2.x). I use the
Sysdeo tomcat plugin (www.sysdeo.com) and have Struts Console from James
Holmes (http://www.jamesholmes.com/struts/console/installed). The first
gives you integration of Tomcat for debugging and support for the creation
of
Do you need any of the new features in 1.2.x vs. 1.1? If not, I would wait
for 1.3.x or even 2.0.x as 1.2.x is a dead end (I am developing for 1.2.x
and happy with it, but if getting up-to-date is the most important reason:
wait)
Martin
> -Ursprüngliche Nachricht-
> Von: Garner Shawn [mai
Shawn,
I do not know whether any bug fixes in the 1.2.x releases fix bugs in the
1.1.x releases. I would read the release notes of the releases newer than
your currently used release.
The same for security patches. And you should also check whether the
problems fixed in a newer release are releva
Hi,
why don't you use just plain jsp? WML ist just an XML application. I do not
know, if there are taglibs available for creating the WML specific tags. If
not, it should not be difficult to create the code without. This is the road
I wanted to go, if I would ever be forced to support WML. At the
from wikipedia:
"idiot is a word derived from the Greek ιδιωτης, idiōtēs ("layman," "person
lacking professional skill," "a private citizen," "individual") ... It was
originally used in ancient Greek city-states to refer to people who were overly
concerned with their own self-interest and ignor
Hi Dmitry
as far as I know the Java properties files must be in ASCII code. (so much
to the Unicode support in Java :-)).
I had the same problem (well I tried to use UTF-8 in the properties file).
After changing to the \uxxx codes it worked.
Martin
> -Ursprüngliche Nachricht-
> Von: Dmi
Hi Artem,
this is an interesting question.
Some years ago I was involved in the design of a system which used a XML and
XSLT to translate the content to various output formats (not only
XML-based). It was an elegant solution but also a hard way to go.
I have been developing a multiclient site for
Michael,
> What about translets?
The work has to be done somewhere, so it takes time. Perhaps translets play
in the same league as JSP compilers?
> But the gain of different (and more convenient for some) programming model
may overweight extra effort.
Sure. Although I do not see so much of a diff
Hi
I am using Struts 1.2.x and try to achieve the following:
on a page I have a form whose action calls a Struts action. The result shall
be displayed in a new window.
No problem so far. But:
The new window should have no menu- and toolbar.
Is this possible? and if, how?
Martin
---
ut menu/toolbar
>
>
> Martin Kindler wrote:
>
> >Hi
> >
> >I am using Struts 1.2.x and try to achieve the following:
> >on a page I have a form whose action calls a Struts action.
> The result
> >shall be displayed in a new window. No problem so
Re: AW: Action output in new window without menu/toolbar
>
>
> Martin Kindler wrote:
>
> >Thanks,
> >but how do I use it with a form?
> >
> >I have in my html-code
> >
> >
> >Martin
> >
> >
> >
> >>-Ursp
I am not really a Java Guru, but have made the experience that in effect the
name "Bean" is - in the context of Struts-based Webapps - really nothing
more than a POJO following the naming conventions of JavaBeans for
getters/setters.
With respect to the "middle layer", it really pays off to separa
> First, I am going to design a database, then build a bunch of
> beans that
> more or less represent the data in the database by going
> mostly one bean
> for each table. There will likely be a few cases where one bean will
> represent two tables (1:n relationship, where the attributes in the
> '
eived this communication in error and that any review,
> disclosure, dissemination, distribution or copying of it or its
> conte
> - Original Message -
> From: "Martin Kindler" <[EMAIL PROTECTED]>
> To:
> Sent: Friday, October 06, 2006 10:43 AM
>
That depends on what your needs are. For just sending mails mail.jar from
the JavaMail distribution (http://java.sun.com/products/javamail) should be
sufficient. If you also want to receive mails you need additional jars from
that distribution.
Martin
> -Ursprüngliche Nachricht-
> Von: Ra
I do not see any sensible way to do it without changing the JSPs. The user
must see somehow that the fields are readonly and this must be done in the
frontend. You could of course just choose to not evaluate the ActionForm in
the "readonly"-case, but this would be not very user-friendly.
But the S
Caroline,
why do you ask? I am no insider of the project, but as far as I can see
there are many activities going on: v 1.3.x (in the strain of old "Struts
Action") being developed, v2.x coming soon (the merge with WebWorks), and
Shale (the JSF variant) being developed in parallel.
For me there ar
69 matches
Mail list logo