hai McGrady
I just write some System.out.println in the action function to just debug
some values of variables...
Say
I gave
System.out.println(1);
...
System.out.println(2);
...
In tomcat console in dos screen it displays
1
2
...
1
2
...
I dont know why its coming twice...
Am not
hai McGrady
I just write some System.out.println in the action function to just debug
some values of variables...
Say
I gave
System.out.println(1);
...
System.out.println(2);
...
In tomcat console in dos screen it displays
1
2
...
1
2
...
I dont know why its coming twice...
Am not
On Tue, 12 Oct 2004 01:48:06 -0400, Rick Reumann [EMAIL PROTECTED] wrote:
Andrew Hill wrote the following on 10/12/2004 1:13 AM:
I dunno mate. I wouldnt rule out client-side Java completely.
Oh I wouldn't either. I think it'll be used more and more especially in
corporate applications. I
Hi, Rajesh,
I like, by the way, your saying at the bottom of your email. Cool!
There is a big gap between what is written and passed to the standard
out in your class and what shows up on your screen. Can you please give
us some idea of what you are doing? Clearly it is not looping in the
I had a similar issue once.
Came up that the html:base / tag was responsible for it, and browser other
than IE as well (I'm not an IE fan at all).
In the case html:base / renders the URI of a file not a directory, IE does
checks if the path, file ignored, is valid, other browser like mozilla or
Does anyone has an example using struts iterate? How does indexId works?
Sebastian
On Sat, 2004-10-09 at 01:05, Bill Siggelkow wrote:
Or you could do it yourself with JSTL:
%@ page contentType=text/html;charset=UTF-8 language=java %
%@ taglib uri=http://jakarta.apache.org/struts/tags-bean;
Hello,
I have been experiencing similar problem...
Looks like that's the fix thanx man,
You saved my day! I have been struggling with it
Since last Friday
Question: how did you find it out? I am curious...
Regards
marco
-Original Message-
From: Lesaint
Hi,
I have a couple of Jelly tag classes, what's the 'correct' way write log
statements in tag classes. e.g.
1) info - information that is always logged to stdout
2) debug - info that is displayed during with -X
cheers
Nathan
--
Nathan Coast
Managing Director
codeczar ltd
mobile: (852) 9049
apologies, sent this to the wrong list, pls ignore
Nathan Coast wrote:
Hi,
I have a couple of Jelly tag classes, what's the 'correct' way write log
statements in tag classes. e.g.
1) info - information that is always logged to stdout
2) debug - info that is displayed during with -X
cheers
I'm a genius, that's it :p
Really searched for days and I had the idea to check the access log of the
server. Saw that a request to a specific file created two requests being
logged. In my case, it was not twice the same file. Checked the generated
HTML source and saw that the path of this
Hi group!
I have a somewhat complex application with tiles. I have a layout page
which looks like this:
%@ taglib uri=/WEB-INF/struts-tiles.tld prefix=tiles%
%@ taglib uri=/WEB-INF/struts-html.tld prefix=html%
%@ taglib uri=/WEB-INF/struts-bean.tld prefix=bean%
!DOCTYPE html PUBLIC -//W3C//DTD
Hi, David.
Sorry, guy, but you got the wrong setting. A meta tag is maybe used by the browser,
but it is not authorative as you observe.
To tell the webserver how the page is encoded (on the server side only), use
[EMAIL PROTECTED] encoding=...%
To tell the webserver how the page output shall
Did you try something like this :
tiles:useAttribute id=action name=action/
html:form action=%= action %
tiles:insert attribute=header flush=false/
...
/html:form
/body
Nico.
Hi group!
I have a somewhat complex application with tiles. I have a
Hi, all.
I thought about guessing the incoming data's encoding.
How about having a hidden input tag with a default value provided by the server.
When this value comes back, the server could guess the encoding used by looking at the
bytes of this parameter.
I'd somehow like to see this solved
Dear All,
I used the example given in struts for uploding the file.
org.apache.commons.fileupload.FileUploadException: Processing of
multipart/form-
data request failed. Read timed out
How can i change the settings so that the application does not give this
Error.
Thanks
Shailender Jain
Hi!
Guess I should be reading more taglib documentations. Thanks alot. That
works.
Karsten Krieg
Nicolas De Loof
Hi, Rick.
Right, people like Grandma Jones won't use it. But then, they are old already.
For how long can such users be the mayority? And at the same time, computers become
more easy in handling and affect a still growing audience. More and more technique is
integrated from the very beginning,
Hello Sebastien,
Bad news it happened again..
Looks it happens more often when my colleague is accessing the
application on my machine...
When I access my app from my machine, it usually works in 9 cases out
of 10..
When my colleague connects to my machine, it work half of the time..
Hai Seb'
I cant get you, please explain in details ...
Rajesh
Regards,
Rajmahendra R. Hegde
Project Leader
GK Bharani Software Pvt. Ltd.
There are two ways of constructing a software design. One way is to make it
so simple that there are obviously no deficiencies. And the other way is to
Hai Seb'
I cant get you, please explain in details ...
Rajesh
Regards,
Rajmahendra R. Hegde
Project Leader
GK Bharani Software Pvt. Ltd.
There are two ways of constructing a software design. One way is to make it
so simple that there are obviously no deficiencies. And the other way is to
Hi
I am trying to output the contents of a set of nested Objects in a JSP
page using the nested taglib.
I have three objects that are persisted using Hibernate:
1. Student - (contains a HashSet of Project called 'projects')
2. Project - (contains a HashSet of Url called 'urls')
3. Url - (contains
I have a jsp page with 3 html:link tags on it. I what all these links to
point to the same action, but each of them need to go to there own jsp
site. So I need to set/pass on a string with each link, so that I can
send the request the right place.
How do I do that??
-Original Message-
From: Matt Bathje [mailto:[EMAIL PROTECTED]
====
Anyways, this is the way I see it: You can talk all you want,
and malign
struts and its developers all you want, but until you start
implementing
what you want, nothing will happen.
Matt
LOL but very
Good to know, Andrew! Thanks for the FYI :-)
- Original Message -
From: Andrew Hill [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Tuesday, October 12, 2004 12:13 AM
Subject: Re: OT Re: Back Button Woes
I dunno mate. I wouldnt rule out client-side Java
On Mon, 11 Oct 2004 17:37:36 -0500, Peng, Meimin [EMAIL PROTECTED] wrote:
Hi,
I want to check a null vale in a list.
I try to find all struts-tag libraries for doing it.
But, not working yet.
logic:presentlogic:notPresent is for checking non-null
I believe these check if the value exisits
On Mon, 11 Oct 2004 23:28:10 -0400, Rick Reumann [EMAIL PROTECTED] wrote:
Vic, I briefly read over the article. I agree that we'll see more and
more rich clients, but one of the problems is people aren't going to
want to always install stuff on their desktop in order to run an
application - so
Thank you for this excellent answer! It makes much
sense to me.
Tong
--- Jason Lea [EMAIL PROTECTED] wrote:
Some forms don't need tokens
Let me see... some places you use tokens are where
you want to stop an
accidental resubmission of a form. Maybe where you
are adding items to
a
marc wrote:
I have a jsp page with 3 html:link tags on it. I what all these links to
point to the same action, but each of them need to go to there own jsp
site. So I need to set/pass on a string with each link, so that I can
send the request the right place.
How do I do that??
This is
On Tue, 12 Oct 2004 11:59:10 +0800, PC Leung [EMAIL PROTECTED] wrote:
How can I incorporate the tiles definition into struts-config.xml?
or How to define selectBodyTile.do in struts-config.xml?
tiles:insert definition=erp.mainLayout flush=true
controller=/selectBodyTile.do/
action
See http://struts.apache.org/faqs/indexedprops.html#dynamicindexes
On 12 Oct 2004 16:13:43 +0800, Sebastian Ho
[EMAIL PROTECTED] wrote:
Does anyone has an example using struts iterate? How does indexId works?
Sebastian
On Sat, 2004-10-09 at 01:05, Bill Siggelkow wrote:
Or you
Have read that 1000 times, don't understand it(I now that it's probely
me how is a bit stupid)
Can you give me a and example on have it works, and have I read the
string in my action class again.
Thanks
Jeff Beal wrote:
marc wrote:
I have a jsp page with 3 html:link tags on it. I what all
Hi Friends,
need some help...
need to convert the xml file into an html buffer string which is used
to display the content in jsp..
i will get the xml file path string have to pass that...into
java...then read the entire xml file...then convert that into html
string...
if i append that to the
Thanks for the information, didn't know JSF would help out with this as
well. We did the prototype with JSF and decided it was maybe a little
too soon to use it (we had to ramp up a bit still and didn't want to
delay the project). Guess we should've gone ahead with it.
Do you have any
I use JRun instead - will this work on it?
Thanks - dave
-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Bill Siggelkow
Sent: Monday, October 11, 2004 10:15 PM
To: [EMAIL PROTECTED]
Subject: Re: How do I get Chinese Arabic to/from struts
Use Tomcat's
html:link action=view
paramId=display
paramName=bean1text/html:link
generates the same thing as
a href=view.do?display=%=bean1%text/a
html:link action=view
paramId=display
paramName=bean1
paramProperty=prop1text/html:link
generates the same
Craig McClanahan wrote the following on 10/12/2004 2:16 AM:
It seems, though, that the grandfather ran into a roadblock. As he
related the story, the grandfather said, You know, there's something
wrong with this computer. Most of the time, when I fill out a form,
it shows me exactly what I'm
Hi, David.
If JRun claims to be servlet spec 2.3 compliant, it should work.
Hiran
-
Hiran Chaudhuri
SAG Systemhaus GmbH
Elsenheimer Straße 11
80867 München
Phone +49-89-54 74 21 34
Fax +49-89-54 74 21 99
-Original Message-
From: David
I need af jsp page with 9 links on them. 3 link need to produceed 3
different lists. 3 needs to forward to 3 different forms. The last 3
need to point to 3 other jsp page.
And i would like to use the same action for all 9 of them.
Got at clearer picture of what I what?
Jeff Beal wrote:
Maybe, but I'm still not sure exactly where you're having problems. Are
you having problems writing the Action code to pass the request to the
different pages? If so, have a look at DispatchAction -- it is one
possible approach to this situation. If the problem is in using the
Struts tags
Yeah is't the Action code that I got problems with.
Can't figure out have to read the html link in my action.
Jeff Beal wrote:
Maybe, but I'm still not sure exactly where you're having problems. Are
you having problems writing the Action code to pass the request to the
different pages? If so,
I'm having a problem calling one action from another. Both are
dispatch actions.
Action 1 is called, does it's business, sets a request.setAttribute(),
and forwards to Action 2
Action 2 is run, but none of the request variables are there. I get
nulls with I request.getAttribute.
Lee
On 12 Oct 2004 16:13:43 +0800, Sebastian Ho
[EMAIL PROTECTED] wrote:
Does anyone has an example using struts iterate? How does indexId works?
Sebastian
Here's an example. I have a list dataStoreList in the request scope
that I set via request.setAttribute(dataStoreList,dataStoreList)
in my
So, apparently I completely misunderstood the problem. I'll go back to
one of the HTML examples from one of my earlier posts:
a href=view.do?display=page1Text/a
To get the value 'page1' from within your Action, all you need to do is
'request.getParameter(display)'. The corresponding html:link
Hello everybody,
I want some of the fields in my FORM to be read-only. Usually, I
accomplished this by doing one of these:
(1) Use disabled.
(2) Use readonly.
Now, I have a problem with this... I want to use Struts' XHTML tag. I
believe it's the cause for the failing of both alternatives
Peng Tuck Kwok wrote the following on 10/8/2004 5:05 AM:
Or you coud use displaytag.
http://displaytag.sf.net
It's pretty ok from what I can see.
Can someone confirm- One of the reasons I didn't like this tag is it
requires your WHOLE list to be in Session. Can you imagine if Google
search
After updating to version 1.2.2 FieldsCheck.checkInteger(..) now returns a
boolean indicating success rather the value.
This has broken our code and we need the value.
Is there a substitute method now?
Mick.
--
BR/ It is not enough to have a good mind; the main thing is to use it well.
disabled=true
readonbly=true
Take care, one of these do not put the field to the request ...
Y.
Version 1.2.2 was downgraded from ga quality because of problems so its
not a good idea to use it in general. Current release version is 1.2.4 and
this issue was fixed in that version.
http://issues.apache.org/bugzilla/show_bug.cgi?id=26413
Niall
P.S. I assume you meant
After updating to version 1.2.2
FieldsCheck.validateInteger(..) now returns a boolean indicating success
rather the value. This has broken our code and we need the value. Is
there a substitute method now?
I've tracked this down to a patch done under bug#26413.
Version 1.2.2 was downgraded from ga quality because of problems so its
not a good idea to use it in general. Current release version is 1.2.4 and
this issue was fixed in that version.
Sorry, failed to look that far ahead :$
Gentoo, unfortunately is still publishing 1.2.2 :(
P.S. I assume
I have a situation where I need to use fields on form that are indexed...
tier[0], tier[1], etc. (possibly more)
Is there a way I could use a LazyList implmentation to grow this if the
form property is defined as String[]? (I know how to grow a List in
the reset using LazList but not sure of an
I am submitteing a form. This form provides check
boxes for multiple selections. I am not using the
validation.xml to validate if none is selected.
Instead, I am going to use the validate().
1. Do I write this validate() in the form class that
extends the ActionForm?
2. how do I write this
Jason,
Thanks very much. Works for me. I actually used multibox for this same code
before using DisplayTag. Dont know why I didnt choose to implement
that..anyways it works now.
Thanks
Gnan
-Original Message-
From: Jason Lea [mailto:[EMAIL PROTECTED]
Sent: Monday, October 11, 2004 7:02
I have been doing some reading recently on JSF and I have a few comments and questions.
At first I thought JSF would focus mostly on the V in MVC. But after doing some
reading on this, it seems like JSF really provides the M and C as well. Is this
accurate?
It seems possible to combine the
Lots of people more qualified than me to respond to your questions,
but I know a little bit about the theory and can give you a preview of
what they'll likely say.
On Tue, 12 Oct 2004 11:29:56 -0400, Sean Schofield
[EMAIL PROTECTED] wrote:
I have been doing some reading recently on JSF and I
Caroline Jen wrote:
I am submitteing a form. This form provides check
boxes for multiple selections. I am not using the
validation.xml to validate if none is selected.
Instead, I am going to use the validate().
1. Do I write this validate() in the form class that
extends the ActionForm?
Yes
Hello All,
I am using DisplayTag in my Struts App to display a list of results. One of
the columns is shown as a hyperlink to show the details for that row on a
different screen. Now, I want to be able to make this column as a hyperlink
only for certain authorized users like admins. I could have
Geez, my writing can be very confusing.
Whose focus? Struts users miss out on lots of developments outside
Struts, but they miss out on Struts progress as well.
I meant, those not using Struts would miss out on Struts developments
as well. Maybe it's time for me to get some lunch.
Hubert
What do you want details about? bug or how I found it? Maybe both?
-Message d'origine-
De : Rajesh [mailto:[EMAIL PROTECTED]
Envoyé : mardi 12 octobre 2004 11:29
À : 'Struts Users Mailing List'
Objet : RE: Dispatch Action called Twice
Hai Seb'
I cant get you, please explain in details
On 12 Oct 2004, at 17:57, Hubert Rabago wrote:
Lots of people more qualified than me to respond to your questions,
but I know a little bit about the theory and can give you a preview of
what they'll likely say.
On Tue, 12 Oct 2004 11:29:56 -0400, Sean Schofield
[EMAIL PROTECTED] wrote:
I have been
You can open up the display:column element and use the variable
register (set as the id param on your display:table) in its body to
access the column's value bean. Then you can do any other logic you
wish on the fly. You'd need to generate the href yourself in this case.
HTH,
Chris
Hubert Rabago wrote:
Yes. Some even believe the navigation rules of JSF is easier to
understand than those of Struts.
I haven't finished exploring all of the nav features of JSF, but I tend
to agree with this comment. Navigation seems to me to be one of the
more awkward aspects of Struts.
Hello people,
I'm wondering if there is a way to query the value's in validation.xml. I'm
particulary interested in the depends part which contains the required
statement.
This one indicates if a form field is required. When i know this one then i
can program a general routine which prints a
Hi ML...
I have kind of a problem which I just can't get solved!
I have an iterate tag inside an iterate tag, but in the nested iterate
tag I need the indexed value from the outer iterate tag!!
I have:
html:form action=/storeCombiQuestion.do
logic:present name=subQuestions scope=session
Claus M. Christiansen wrote the following on 10/12/2004 3:13 PM:
Now.. The problem lies in the nested iterate tag. The indexed=true
takes the value from the iterate tag in which it is nested, but what I
really need is the one from the outer tag, which is called subQuestion.
The reason I need
Hello again ;-)
I've dived into the struts source code and struggled for a couple of hours
(was already struggling a bit before i wrote the email at the bottom).
Then i discovered the Resource class which seems to be the answer to my
question. Here's some pseudo code:
(warning this is only
Gentoo now has the latest version.
Niall
- Original Message -
From: Mick Wever [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, October 12, 2004 4:01 PM
Subject: Re: FieldChecks change signature and no longer returns value
Version 1.2.2 was downgraded from ga quality because
just use whatever id you are using for the indexId of the outer nested
iterate.
nested:iterate property=outer indexId=fooIndex
nested:iterate property=inner indexId=barIndex
if you are using the nested EL tags or JSP2.0 you then have easy
access to display the value of any indexId ... use
Michael,
If you're still looking for input, post back, I've got some follow-up
questions.
Michael McGrady wrote:
I use a Struts PlugIn to set System.setProperty(java.awt.fonts,
MyApp.FONTS_LOCATION) to set the dynamic option for awt fonts. This
works. Then I put a variety of open source
I am wondering how easy it would be to setup an application that uses
both JSF and Struts. If I'm not interested in having either framework
communicate with each other, do I even need struts-faces?
In other words if I want part of the application to use '.faces' and be
handled exclusively by
Axel,
thanks for resurrecting the thread with your suggestions.
On the first suggestion, how do you propose making the singleton
available in the page context, to allow that call?
On the second one, how can a tld be used to define constants?
Obviously I'm missing something.
thanks
Adam
ps the
On 10/12/2004 04:14 PM Rick Reumann wrote:
I have a situation where I need to use fields on form that are indexed...
tier[0], tier[1], etc. (possibly more)
Is there a way I could use a LazyList implmentation to grow this if the
form property is defined as String[]? (I know how to grow a List in
Hello everybody,
This is a very silly question, but I haven't been able to find the answer on
the archives (perhaps because it's already past midnight and I should be
sleeping by now).
I have an actionForm with a Long[] property (and also a String[]) that I
want to render from a JSP. How can I
Any chance you have submit buttons calling form.submit()? I think I used to
do that and it accidentally caused a double submit in some browsers.
Regards,
David
-Original Message-
From: Marco Mistroni [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 12, 2004 5:37 AM
To: 'Struts Users
On Tue, 12 Oct 2004 08:04:11 -0500, David Suarez
[EMAIL PROTECTED] wrote:
Do you have any recommended news group/mailing list for JSF users?
One popular place is the JSF Forum at the Java Developer Connection
site (free registration required) at
http://forum.java.sun.com/forum.jsp?forum=427.
On Tue, 12 Oct 2004 11:29:56 -0400, Sean Schofield
[EMAIL PROTECTED] wrote:
I have been doing some reading recently on JSF and I have a few comments and
questions.
At first I thought JSF would focus mostly on the V in MVC. But after doing some
reading on this, it seems like JSF really
On Tue, 12 Oct 2004 14:02:07 -0400, Sean Schofield
[EMAIL PROTECTED] wrote:
Are the UI widgets of JSF really that compelling?
The *standard* UI components weren't meant to be compelling -- they
were meant to give people an opportunity to actually explore the APIs
without having anything except
Hi,
I am seeking your expert advice:
I have a simple page with Done and Cancel buttons. If
any of these buttons are clicked, I suppose to go back
to the calling page - there are a few pages that will
come to this page. It is a simple workflow type of
thing.
So I need to know the retutn URL, pls
Yes, this would just work. But it leads to the worst case scenario
discussed earlier on the mail thread, where half your navigation is in
faces-config.xml and the other half is in struts-config.xml. I
wouldn't recommend it as either a migration strategy or as a new
development strategy.
Craig
For every calling page, use a new mapping in yr struts-config.
I assume u mean setting the action as session scope in yr config? They
are the same I think, the important thing is to keep it to one solution
and use it thoughout the application. Else it will be confusing and hard
to debug as yr
Hi, all,
I have some questions regarding Checkbox and multibox:
1. What value will be returned if a checkbox is
checked? How to get it from the relevant form bean?
any example?
2. If I want to check a group of checkboxes (multibox)
after a single checkbox is checked, how to do that? I
guess
Hello, Kris,
Thanks or responding. I solved the problem. Instead of relying up
System, I just created my own independent font application. I use a
doubled HashMap to get the physical font files location from the font
FONT name and the font FAMILY name from a constants class (actually two
Adam Hardy wrote the following on 10/12/2004 5:46 PM:
I thought that the servlet container would just pass in the parameter
'tier' as an array of the appropriate size already, in one hit so to speak.
Or am I totally wrong?
I'm sure it would if I defined each property in the form like...
...
The Pager taglib looks real nice for search results that are generated by
request query params e.g.
http://hostname/MySearchAction.do?param1=2param2=ABCetcetc
So I figure, use the html:link tag's paramId, paramName, paramProperty
attributes, but you can only use these for one parameter right?
actually I do not like either option. my understanding
is:
* session scoped obejcts (I mean those put into the
session using request.getSession().setAttribute()) are
like global variables. I need to take care of
potential naming conflict-but I can not use fully
qualified domain name type of naming
85 matches
Mail list logo