Hi Rick,
This is the approach what i have taken..
1) I had all forms set to Session Scope in the Struts config.
2) Maintain an actionStack form variable in all the form, which
would keep track of all the required actions as CSV in FILO
order(Login,PlayerSearch,EditPlayer,..)
3) Maintain
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On Monday 25 October 2004 16.34, Zhang, Larry (L.) wrote:
Let's say I have two object
public calss Object1{
private name;
private id;
private depetId;
}
public calss Object2{
private name;
private id;
private depetId;
private
check
- no spaces in the path... java has a history with problems related to that
- eliminate the D:
hope this helps
Alexander
-Original Message-
From: James Mitchell [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 21, 2004 9:14 PM
To: Struts Users Mailing List
Subject: Re: Struts
Sorry to anwswer so much time after your post.
But I'm not sure I understand your point.
What i try to say my jsp does not catch the exception with the tag
html:errors/. whereas the eception is defined as global in
struts-config.xml :
exception key=global.error.invalid_authentication
That's specifically why I chose the path I have. In fact, if I had not
partitioned my HD I could just use pure unix path (ala cygwin). Although
there is one thing I haven't tried yet...
/cygdrive/d/cygwin/home/jmitchell/svn/stru...
I'll report back later today on whether that works for me or
Hi all,
i have a vector of arrays (double[]) in the session scope, and i want to iterate over
the vector and access the array values by index. I've tried a sort of things but I
don´t know how to access the value of an array by index.
my last innocent try was:
logic:iterate id=array
Hi All
I'm currently working on a large webapp, powered by Struts, and I have a
serious problem with making it SE-friendly. The problem is, I don't know
how to make Struts to not attach session id (i.e. no encodeURL()) the
URL returned to visitor, in case it's a robot (i.e. googlebot). In other
Hi Everyone,
I have this weird problem. My error messages were
displaying fine but after I started using tiles, the
messages dont show up.
If I do the logic:messagesPresent for a particular
property, it shows that error is present. But the
html:errors/ tag doesnt show errors.
Anyone can help
bean:write name=array[0]/
Henrique VIECILI wrote:
Hi all,
i have a vector of arrays (double[]) in the session scope, and i want to iterate over
the vector and access the array values by index. I've tried a sort of things but I
don´t know how to access the value of an array by index.
my last
When you broke your jsp up into tiles did you still include the html taglib
definition?
Niall
- Original Message -
From: struts lover [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, October 26, 2004 1:17 PM
Subject: error messages not displaying
Hi Everyone,
I have this weird
Try
bean:write name=array[0] /
Niall
- Original Message -
From: Henrique VIECILI [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Tuesday, October 26, 2004 12:49 PM
Subject: Vector of array in session
Hi all,
i have a vector of arrays (double[]) in the
Theres nothing in Struts that can currently help you.
You could extend the LinkTag and override the calculateURL() method to
include your logic to either include or omit the jsessionid
Niall
- Original Message -
From: Sergiusz Jarczyk [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent:
table border='1' cellpadding='0' cellspacing='0'
style='BORDER-COLLAPSE: collapse' bordercolor='#11'
logic:iterate id=rowArray name=batchForm
property=rowBatchDetails indexId=rowCount
tr align=center
bgcolor='%=rowCount.intValue()%2==0?#ff:#dd%'
logic:iterate id=colArray
Although others may come up with better answers, on the top of my head
the quickest and maybe clean enough way to deal with this is a servlet
filter that intercepts all requests, looks for the googlebot useragent
and invalidates the HTTP session before passing the request to the
chain. Or
It threw
javax.servlet.ServletException: Cannot find bean array[0] in any scopeI think the [0]
can only be used in value attribute, and i need to access the array value directly by
the index.Henrique VieciliPS.: now I am looking at c:out instead of
bean:write- Original Message -
What about using JSTL...
c:out value=${array[0]} /
Alternatively, its not very elegant, but you could use a second iterate,
setting the length to 1...
logic:iterate id=array name=myvector
logic:iterate id=myValue name=array length=1
bean:write name=myValue /
Sorry should have read...
logic:iterate id=array name=myvector
logic:iterate id=myValue name=array length=1
bean:write name=myValue /
/logic:iterate
/logic:iterate
Niall
- Original Message -
From: Henrique VIECILI [EMAIL PROTECTED]
To: Struts Users Mailing List
Hi,
I would subclass LinkTag resp. RewriteTag and let them not append the
session id if the agent-name is somethink like GoogleBot or so.
I already thought about doing something like this to not create
session-id for links to css, jsp, gif files, but I didn't have the time
until now.
HTH
Thanks Niall, i switched to c:out option.
Henrique
- Original Message -
From: Niall Pemberton
To: Struts Users Mailing List
Sent: Tuesday, October 26, 2004 10:43 AM
Subject: Re: Vector of array in session
Sorry should have read...
logic:iterate id=array name=myvector
Hi
Can some on provide a example of using html:options
in jsp,
how to define the in struts-config.xml file, how to
populate the data in Action class and then display it
on jsp page,
Also how to retain this data in request for other
request,
For example , suppose the user hits enter to submit
the
Hi,
There is an example of tabsLayout in tiles-doc.war
Tiles-examples-defs.xml
definition name=examples.tabs.summaries.body path=/layouts/tabsLayout.jsp
put name=selectedIndex value=0 /
put name=parameterName value=selected /
putList name=tabList
item value=Portal
Ashish,
not sure if the following is what you are looking for. I am doing a
simple modifying the lookup table.
in my jsp
bean:define id=adminModifyFormData
name=%=Constants.ADMIN_MODIFY_FORM% scope=session
type=com.web.forms.AdminModifyForm/
bean:define id=techAL
Hello world,
The following is a fragment of tiles-defs.xml.
where MyMenuAction actually is UserMenuAction in Tiles.
definition name=erp.menu.home path=/layout/menu.jsp
controllerClass=com.common.tiles.MyMenuAction
put name=title value=Tiles /
putList name=items
item
Joe Hertz wrote:
Something like this if youre using 1.2.x:
field property=propName depends=validwhen
var
var-nametest/var-name
var-value((item1 != null) or (item2 != null) or (*this* !=
null))/var-value
/var
/field
Thanks. Is this supposed to work with DynaActionForm's? I tried it and
it
Hi,
There is an example of tabsLayout in tiles-doc.war
Tiles-examples-defs.xml
definition name=examples.tabs.summaries.body path=/layouts/tabsLayout.jsp
put name=selectedIndex value=0 /
put name=parameterName value=selected /
putList name=tabList
item value=Portal
I want to use Log4j in my Struts application. Where do I place my
log4j.xml file so that the application loads my loggers?
In the past I wrote a plugin that loaded the loggers but I don't think
it has to be that complicated.
Thanks,
Paul
In this example, I have an ActionForm ClaimsQCForm. On that form I have an
arraylist named stateBeanList.
snip
protected java.util.ArrayList stateBeanList = null;
...
/**
* Gets the stateBeanList
* @return Returns a java.util.ArrayList
*/
public
Hi all!
When I add an ActionError in the validate method of
ActionForm, I don't have any problem, my form is
backup and when I come back to my JSP, I can see all
form's datas. When I add an ActionError in the execute
method of Action, and make the call for saveError(), I
loose all form's datas
In the user guide it says Only two items may be joined with and or or
http://struts.apache.org/userGuide/dev_validator.html
I haven't tried three things but maybe it would work with an extra pair of
brackets
var-value(((item1 != null) or (item2 != null)) or (*this* !=
null))/var-value
Niall
Hi,
I have my html taglib definition on the top on my main
jsp.
Thanks
--- Niall Pemberton [EMAIL PROTECTED]
wrote:
When you broke your jsp up into tiles did you still
include the html taglib
definition?
Niall
- Original Message -
From: struts lover [EMAIL PROTECTED]
To:
You need it in every jsp that use those tags, not just the main one.
Niall
- Original Message -
From: struts lover [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Tuesday, October 26, 2004 5:28 PM
Subject: Re: error messages not displaying
Hi,
I have my html
How would I go about implementing a wrapper around my JSP servlet engine
that would strip blank lines from the JSP stream when it sends the content
to the browser? We're using struts and some the el tags with heavy
iteration and loops on large data sets and what we're seeing is that the
output
Hi
Thanx
I was able to do this, my only concern is, is there a
way i can get the ArrayList stored in request instead
of session,
currently i am putting the arraylist in session like
this
session.setAttribute(itembean, arrayList);
and accessing it in jsp like this
html:options collection=itembean
Hi,
I have the following definition in the tiles.xml.
definition name=global
path=/WEB-INF/tiles/standardLayout.jsp
put name=title value=Title /
put name=topLinks
value=/WEB-INF/tiles/topNav.jsp /
put name=bottomLinks
value=/WEB-INF/tiles/bottomNav.jsp /
Web Application Development Tools for Open Source and
Standard Platforms
October
2004
| Top 10 | Reviewer's Guide | On-Line Trial |
Live Webinars | Demos | Features Roadmap |
I found a great utility called trimFilter on the net; however I've noticed
that it fails with out of memory on very large outputs of page data. I also
noticed it does not lend itself well to tiles inserts. Any suggestions on
how I could read the response data in a custom filter without an
I think your looking for a data compression filter.
http://www.onjava.com/pub/a/onjava/2003/11/19/filters.html?page=1
robert
-Original Message-
From: CRANFORD, CHRIS [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 26, 2004 12:26 PM
To: '[EMAIL PROTECTED]'
Subject: Blank Line
Is it really making that much of an impact?
Each blank line is only one byte.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
I don't really use includes, but I believe you do. Quickest way to find out
is give ita try and see if it resolves the problem.
Niall
- Original Message -
From: struts lover [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Tuesday, October 26, 2004 5:55 PM
I manually removed just the blank lines themselves from the output ... No
trimming of the leading or trailing spaces and a saved output from 1 report
went from 2.2mb down to 492kb in size. That's a 75% savings.. I think that
proves the need to be able to strip those darn things from the output to
Hi
Is there example for handling multipage form, which
handles validation on each page, and handle
forward-backward navigation buttons.
Ashish
__
Do you Yahoo!?
Yahoo! Mail Address AutoComplete - You start. We finish.
Robert -
One thing I am noticing is that our action forwards to a jsp with the
following content:
tiles:insert definition=.seekLayout
tiles:put name=titlebean:message
key=reports.view.page.title//tiles:put
tiles:put name=helpURLbean:message
key=reports.view.help.url//tiles:put
Hi!
I have been using the Struts img tag instead of the HTML img tag just cause
I was trying to use and learn the Struts tags, e.g. html:img
page=/grafx/logo.jpg width=150 height=140 alt= /. But, now that I
have tried deploying, I find it doesn't work for me. Apparently, it adds the
jessionid
e-denton Java Programmer wrote:
Hi!
I have been using the Struts img tag instead of the HTML img tag just cause
I was trying to use and learn the Struts tags, e.g. html:img
page=/grafx/logo.jpg width=150 height=140 alt= /. But, now that I
have tried deploying, I find it doesn't work for me.
To do what you want you want a tiles controller, not an action.
import org.apache.struts.tiles.ComponentContext;
import org.apache.struts.tiles.ControllerSupport;
import org.apache.struts.tiles.beans.SimpleMenuItem;
import java.util.List;
import javax.servlet.ServletContext;
import
If you're using tomcat look for this in $CATALINA_HOME/conf/web.xml
servlet
servlet-namejsp/servlet-name
servlet-classorg.apache.jasper.servlet.JspServlet/servlet-class
init-param
param-namefork/param-name
param-valuefalse/param-value
URLrewrite has similar functionality to mod_write if you're in a pure
java environment or deploy to some grot like IIS.
http://tuckey.org/urlrewrite
Mark
On 26 Oct 2004, at 19:55, Matt Bathje wrote:
e-denton Java Programmer wrote:
Hi!
I have been using the Struts img tag instead of the HTML img
This is my first cut at Struts, so hopefully my post makes sense...
I have rendered a table that contains 3 r/o columns and one editable
droplist column. I am able to render all data into the four columns,
including the droplist options and the current selection. My problem is
that I am unable
The trimSpaces is only applicable for Tomcat 5 and we're still using v4 due
to AIX/JDK compatibility issues.
Chris
-Original Message-
From: Mark Lowe [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 26, 2004 2:00 PM
To: Struts Users Mailing List
Subject: Re: Blank Line Filter
If you're
I just plugged in the Gzip compression shown below and for some strange
reason it prompts me to download the file for my filter of *.do. Probably
content-type isn't set right or something I suspect.
Chris
-Original Message-
From: Robert Taylor [mailto:[EMAIL PROTECTED]
Sent: Tuesday,
Chris, unfortunately I have not yet implemented a compression filter
in my web apps. I had just read the article mentioned below and thought
it was applicable to your question.
Sorry I'm not much help with your implementation questions.
It sounds like your hunch may be correct as the browser
Another option could be to use JSPC precompile your jsps, but between
the java file generation and the compilation, strip out what you don't
want. I haven't done this (the stripping out part) so its only theory,
but it would seem to help you blank line problem with no runtime over
head.
Mark
I removed all the filter logic and left it as a simple call to the
chainFilter.doFilter(). On some pages it works fine. On others I get this
servlet exception:
2004-10-26 14:44:10,965 DEBUG [InsertTag]: [ServletException
in:/pages/reports/viewreport-body.jsp]
javax.servlet.ServletException:
I'm sorry, please disregard this error. I think this is due to some corrupt
data for the particular records that are in the larger report. My
apologies.
Thanks
Chris
-Original Message-
From: CRANFORD, CHRIS [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 26, 2004 2:40 PM
To: 'Struts
Thompson Marzagão wrote:
Caro Vinicius,
Your java code is fine. But you got confused on the struts tags.
If you want to display ALL the messages you have, (that's probably
what you need) one under the other, separated by br's, you would use:
html:messages id=message message=true
bean:write
Eddie,
Well- how rude!
This was a glitch in the email server and not my fault. I find it quit
rude that you would so chastise me without all the information.
On the other hand, many thanks to all of those who did reply with more
civility. I believe the filter suggestion will work for me. Thank
Hi,
I am discovering struts and it is a great pleasure to use it in my Web Applications.
I have written a struts based application. It is deployed on a local server on port
8955 (http://localhost:8955/myContextApp/)
From this struts application, I would like to send a notification
Hi..
I´m not exactly what the problem is, but I´ll try to explain it to see if
anyone can help me out...
we have this on a jsp:
nested:form action=CustomerCrud2 onsubmit=return
validateCustomerCrud2(this)
and this is the action mapping in struts-config:
action path=/CustomerCrud2
Hi,
I'm trying to get client-side validation to work using Struts, v. 1.2.2.
More specifically, I'm receiving a javascript error while trying to use the
'required' validation rule. The error in IE says:
Error: 'required' is undefined
When I look at the generated javascript, this is indeed
Version 1.2.2 of Struts was withdrawn because of problems. The current ga
quality release of Struts is Version 1.2.4
http://struts.apache.org/acquiring.html
Niall
- Original Message -
From: Jeffrey Ford [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, October 26, 2004 5:52 PM
Hi,
I am discovering struts and it is a great pleasure to use it in my Web Applications.
I have written a struts based application. It is deployed on a local server on port
8955 (http://localhost:8955/myContextApp/)
From this struts application, I would like to send a notification
From: Ryan julius [EMAIL PROTECTED]
I have written a struts based application. It is deployed on a local
server on port 8955
From this struts application, I would like to send a notification
(XmlStringNotification)
to a remote security server on port 8638
How should I write my action mapping
I am trying to force a field to have a value if a checkbox is checked
using validwhen in my validation.xml.
I am having a few problems:
1) The field to fill in has an initial value of 0. If this is zero and
the box is unchecked this is valid ( I can't get this to work ) I can
get it to check
I fixed a bug in Version 1.2.5 to do with numeric values in validwhen. Can
you try it out and see if it fixes your problem.
Its available here:
http://svn.apache.org/dist/struts/v1.2.5/
Please note,Version 1.2.5 is only a *test* build and hasn't been released
Niall
- Original Message
On second thoughts, maybe you should post the relevant bit of your
validation.xml showing the *test* parameter yoour trying to use first
Niall
- Original Message -
From: Niall Pemberton [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, October 27, 2004
Niall,
Shall try that later. At work just now, so can't download the new
version here.
Could I just ask quickly - does the validation take place client side or
server side? - Could you help with the drop down issue I had as a result?
Niall Pemberton wrote:
I fixed a bug in Version 1.2.5 to do
Code Below
var-value
( ((hasSold == null) and (*this* == 0))
or ((hasSold != null) and (*this* != 0))
)
/var-value
Niall Pemberton wrote:
On second thoughts, maybe you should post the relevant bit of your
validation.xml showing the *test* parameter yoour trying to use first
Niall
I don't think that's surprising behaviour. It sounds like what you
really need is a 'maskIf' test. You could possibly roll your own from
the requiredif and mask.
On 10/25/2004 05:12 PM David Schneider wrote:
hi. i'm using struts 1.1 and have a question about combining requiredif
with other
Looks OK to me, so give 1.2.5 a go and see if that works.
- Original Message -
From: Cato (Pete) [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, October 27, 2004 12:36 AM
Subject: Re: validwhen problem
Code Below
var-value
( ((hasSold == null)
How would I go about mapping a URL of the form
somePage.html
into an action class.
(I have no control over the syntax of this URL and can not make it be a
someAction.do URL.)
any help appreciated.
I am he, as you are he, as you are me, and we are all together.
Niall - Thanks for your help..will try that tonight.
Niall Pemberton wrote:
Looks OK to me, so give 1.2.5 a go and see if that works.
- Original Message -
From: Cato (Pete) [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, October 27, 2004 12:36 AM
Sounds like the forward you are returning from your execute is
redirecting and hence you get a new request object. Check your struts
config to make sure it says redirect=false and not true for that forward.
sqdf qsdf wrote:
Hi all!
When I add an ActionError in the validate method of
ActionForm,
Hi, Joe and PLA,
Inspired by your comments, I selected JavaServletHosting.com and have updated all
necessary files for my web application which has been tested on my own server. But
when I browse my website hosted on their server, an exception saying file
/tags/struts-logic cannot be found.
Hi
How do I obtain the Realm context or get the current realm in an
ActionForm? I would like to sign in the users after they have signed
up using my RegistrationActionForm.
Thanks,
Ben
-
To unsubscribe, e-mail: [EMAIL
Joe Hertz wrote the following on 10/23/2004 2:23 AM:
I dont see Struts supporting hosting companies on the wiki. It used to be on
the site before the resources link pointed you to the wiki IARC.
I've been with hostforweb.com for a long time now and haven't any
problems and they have fantastic
Follow the normal log4j rules.
rgds
Antony Paul
On Tue, 26 Oct 2004 11:51:41 -0400, Paul Summers
[EMAIL PROTECTED] wrote:
I want to use Log4j in my Struts application. Where do I place my
log4j.xml file so that the application loads my loggers?
In the past I wrote a plugin that loaded the
I presume you're talking about Tomcat and it's Realm implementation
for container managed security?
You cannot access it directly (although it wouldn't help you much if
you could, because it has no APIs for user management) -- it is loaded
by a class loader visible only to the servlet container.
Lunarpages.com is quite good too. They're who I'm hosted with.
-Original Message-
From: Rick Reumann[EMAIL PROTECTED]
Sent: 10/26/04 11:21:04 PM
To: Struts Users Mailing List[EMAIL PROTECTED]
Subject: Re: [OT] Hosting Companies
Joe Hertz wrote the following on
Ashutosh Satyam wrote:
As per the Tiles Definition file syntax
In the tiles definition we can specify the role
(Role to be checked when definition will be inserted in a page.)
Similarly, It is possible to associate a role with tiles: put attribute.
I'm intending to allow the definition to
Paul,
Putting it in web-inf/classes should do the trick.
ATTA
On Tue, 26 Oct 2004 11:51:41 -0400, Paul Summers
[EMAIL PROTECTED] wrote:
I want to use Log4j in my Struts application. Where do I place my
log4j.xml file so that the application loads my loggers?
In the past I wrote a plugin
Don't know why you were inspired by _my_ comments.
I was more bummed than was entitled to be about the fact that they made
Hibernate off-limits 3 months ago (they've apparently grandfathered apps
like Patrick's that were already running and not being obscene about
resources).
If I had to guess
Don't know why you were inspired by _my_ comments.
I was more bummed than was entitled to be about the fact that they made
Hibernate off-limits 3 months ago (they've apparently grandfathered apps
like Patrick's that were already running and not being obscene about
resources).
If I had to guess
I ultimately went with eapps.
http://www.eapps.com
No more shared JVM's for me. It's a virtual private server setup. You don't
see anyone else even logged in. Heck, they give you root access.
So far, I'm quite pleased. (Live tech support until 12:00 AM EST during the
week, and I want to say
I ultimately went with eapps.
http://www.eapps.com
No more shared JVM's for me. It's a virtual private server setup. You don't
see anyone else even logged in. Heck, they give you root access.
So far, I'm quite pleased. (Live tech support until 12:00 AM EST during the
week, and I want to say
Rick Reumann wrote:
Joe Hertz wrote the following on 10/23/2004 2:23 AM:
I dont see Struts supporting hosting companies on the wiki. It used
to be on
the site before the resources link pointed you to the wiki IARC.
I've been with hostforweb.com for a long time now and haven't any
problems and
Hai all
in Web prgramming (Struts,JSP,Servlet)
if i call a static function say in a package Commons class having a static
functioin closeConnection(Connection con);
which will globally closses any connection object which is passed inside it.
if i call this package class to all db calls in
Hai all
in Web prgramming (Struts,JSP,Servlet)
if i call a static function say in a package Commons class having a static
functioin closeConnection(Connection con);
which will globally closses any connection object which is passed inside it.
if i call this package class to all db calls in
87 matches
Mail list logo