I'm not sure, but I believe that OJB provides "proxy" objects (I believe
that's how they call them) specifically for this kind of problems. I
don't know if they work for ResultSet-s that big. However, at least,
they seem to claim so. Maybe there is something similar in other O/R
mapping tools...
-
The most reasonable solution is to use paging . You can display your range
as in Google search page and each unit contains say ... 100 records . Then
using iBATIS you can specify position and max records you want to retrieve .
But , there are also improvement you can do in your query . For example
no one cares about my uncertainty?
From: "Mu Mike" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: Re: how to initiate an actionform?
Date: Tue, 30 Mar 2004 01:24:55 +
thanks
what I m wondering is whether it creates only one instanc
On Mon, Mar 29, 2004 at 09:25:07PM -0300, Marcelo Epstein wrote:
> How can I get more than 1000 rows of a table.
> I am using display tag and I really don´t want 1000+ Objects.
> What is the best practice to do that?
> Does ORM models like Hibernate, Ibatis and others can help me?
I'm huge f
Joe Hertz wrote:
No sooner had I composed a lengthy, yet well crafted posting to the
Struts Users' newsgroup than I spotted my error.
LOL. Don't feel bad, I've done this probably 4 times myself on this mailing
list alone. Something about making oneself articulate exactly what the
problem is m
what library does "fn" refer to?
-Original Message-
From: Pady Srinivasan [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 24 March 2004 4:14 AM
To: Struts Users Mailing List
Subject: RE: [OT] JSTL : test the first char of a String
Thanks
-- pady
[EMAIL PROTECTED]
-Original Message
> No sooner had I composed a lengthy, yet well crafted posting to the
> Struts Users' newsgroup than I spotted my error.
LOL. Don't feel bad, I've done this probably 4 times myself on this mailing
list alone. Something about making oneself articulate exactly what the
problem is makes one real
Jerry Jalenak wrote:
I had headed down the cookie path in the past 1/2 hour or so. Craig - can
you elaborate on the potential problems of using cookies across hosts?
In order for this to work, your "from" machine is going to have to
create a cookie that looks like it came from the "to" mac
Jesus CHRIST
I've been staring at this bastard all day. No sooner had I composed a
lengthy, yet well crafted posting to the Struts Users' newsgroup than I
spotted my error. F*CKING Struts taglibs.
The 'name' attribute should have been 'property'. But it can be 'name'
under certain circumst
bOOyah wrote:
For crying out loud. No sooner had I clicked the 'Send' button on my
mailer when I spotted the bug. For those few of you still wiping the
tears from your eyes, the 'name' attribute above should, of course, have
been 'property'.
I've been staring at that little time sink al
Hi guys
I've got a simple form bean and a simpler JSP. I can get the JSP to
pull some values from the form bean but not others, and I cannot figure
out why.
I want to display Select menus in a variable number of rows. I managed
to figure out indexed properties (at loong last) and so
Avinash,
Where can I download the *-el stuff from? I see a struts-el overview
page but
I don't see any downloads. Where is this stuff?
Thanks.
Dean
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EM
Dean,
By default, the tag imports all of the Tiles
context attributes into the page context:
Any and all attributes stored in the current Tiles context would now
be availablethrough the standard page context.
The situation with your jsp is that we gotto get the "
thanks
what I m wondering is whether it creates only one instance of the
actionform in the scope(session,request..) if so, I can just create an
instance of my actionform in the jsp file and initiate it , then the form
my action class got is this instance?
Thanks&Regards
Mike
From: Bill Siggelk
Avinash Gangadharan wrote:
If you are using the bean-el tag it should have worked.
Sorry, I am still learning struts and don't know what bean-el is. I
am using struts 1.1, is bean-el in there someplace?
In any case this should work too :
Tried it and it failed. Did what you showed above and
al
Hi,
How can I get more than 1000 rows of a table.
I am using display tag and I really don´t want 1000+ Objects.
What is the best practice to do that?
Does ORM models like Hibernate, Ibatis and others can help me?
Thanks in advance.
Matiro.
--
If you are using the bean-el tag it should have worked.
In any case this should work too :
-Original Message-
From: Dean A. Hoover [mailto:[EMAIL PROTECTED]
Sent: Monday, March 29, 2004 2:21 PM
To: Struts Users Mailing List
Subject: Re: string substitution in tiles
No, that doe
Hi,
I would like to write a simple code like:
...
...
where X is String of property 'a' of bean 'A'.
Do you know what is the syntax ? I tried something like:
but it didn't work.
Thanks in advance.
-Frank
-
To un
No, that doesn't work. I get an exception and look in
the log and see:
2004-03-29 17:15:07 DEBUG InsertTag.java:945 - [ServletException
in:/WEB-INF/tiles/layouts/FormLayout.jsp] Cannot retrieve mapping for
action /'
any other ideas?
Dean Hoover
Avinash Gangadharan wrote:
Try this :
In tiles-
Avinash,
Thanks. I've never used importAttribute before.
Dean
Avinash Gangadharan wrote:
Try this :
In tiles-def.xml ---
In your jsp ---
-Original Message-
From: Dean A. Hoover [mailto:[EMAIL PROTECTED]
Sent: Monday, March 29, 2004 1:40 PM
To: [EMAIL PROTECTED]
Subject
Try this :
In tiles-def.xml ---
In your jsp ---
-Original Message-
From: Dean A. Hoover [mailto:[EMAIL PROTECTED]
Sent: Monday, March 29, 2004 1:40 PM
To: [EMAIL PROTECTED]
Subject: string substitution in tiles
I have a general form layout I am defining in
tiles. But the
> Sorry this is not directly related to Struts, but
> is it possible to use the expression language in
> custom tags?
Check org.apache.strutsel.taglib.utils.EvalHelper
That's the class used to evaluate the expressions
in struts-el tags (in version 1.1 anyway).
Looks like it's actually using
org.
I have a general form layout I am defining in
tiles. But there is one thing I'm not sure how
to do. The relevant part of the form layout
looks like this:
I want to replace the xxx action with a string
I define in tiles-defs.xml. Say I want to call the
replacement string "url"
I had headed down the cookie path in the past 1/2 hour or so. Craig - can
you elaborate on the potential problems of using cookies across hosts?
Thanks
Jerry Jalenak
Development Manager, Web Publishing
LabOne, Inc.
10101 Renner Blvd.
Lenexa, KS 66219
(913) 577-1496
[EMAIL PROTECTED]
Larry Meadors wrote:
But from an earlier message, the request may be going to a different
server - potentially even a non-java one.
[EMAIL PROTECTED] 03/29/04 2:15 PM >>>
Bill Siggelkow wrote:
Hmm ... well, the actual new request is generated by the browser when
it processes the "
Maybe you need to use a Database to store this data temporarily, something
all apps can access. Server A updates DB, Server B reads DB or reads data
provided from Server A in CSV, XML format.
-Original Message-
From: Larry Meadors [mailto:[EMAIL PROTECTED]
Sent: Monday, March 29, 2004 3:
But from an earlier message, the request may be going to a different
server - potentially even a non-java one.
>>> [EMAIL PROTECTED] 03/29/04 2:15 PM >>>
Bill Siggelkow wrote:
> Hmm ... well, the actual new request is generated by the browser when
> it processes the "redirect" response. You sho
Bill Siggelkow wrote:
Hmm ... well, the actual new request is generated by the browser when
it processes the "redirect" response. You should be able to add
parameters to the query string, however.
Or, you can store the data you need later in the session.
Craig
---
Very true XML can be huge. But you never need to layout the whole object in
XML, you just need to send the piece of info in the XML using which the rest
of the object can be created. You would definitely need a little more than
just the ID of a db column.
SO basically you serialize / marshall it in
Hmm ... well, the actual new request is generated by the browser when it
processes the "redirect" response. You should be able to add parameters
to the query string, however.
Jerry Jalenak wrote:
All,
If I remember correctly, when you use a response.sendRedirect() there is a
new request create
XML in the query string may work, but if you exceed about 2k, it goes
b'bye. Given the verbosity of XML, that won't take long. :-)
Another option would be to place the data to be passed into a database,
and send the id to locate it once you get to the other end.
The cost in terms of both performa
On Mon, Mar 29, 2004 at 09:09:24AM -0800, Hubert Rabago wrote:
> There's one custom tag which also accepts a key and can
> optionally accept the name of the object's attribute to display. So I can do
> property="name"/> to display the department name for the employee, and in
> almost all cases I
Hi,
How can I test the presence of a tiles attribute ?
eg :
In this example, if the "test" tiles attribute is empty the
I don't want to output the and
So I would like To do something like :
How can I replace the non-existing tag ?
Thanks
--
Franck Lefebure
It seems like u need to send the attributes from a JSP-Tomcat env to another
JSP-Tomcat or a ASP.net/IIS. In this case I think it could be very benefical
if you send the data you want to send in an XML format that could be
understood between platforms so that if it is ASP.net it can create the List
oh right, you did mention you're redirecting, didn't you.. Yuk.. Ok, since you
say your objects aren't just Strings, you'll have to add it to the session and
then remove it when you are done with it.. Nasty, but I don't know how else you
can do what you want to do..(:(
Jerry Jalenak wrote:
> Doe
Doesn't work with a response.sendRedirect() because of the new request
object that gets constructed. I need to find a way to store something in
the NEW object - just using request.setAttribute() stores the object in the
OLD request, so it doesn't help.. 8-(
Jerry Jalenak
Development Manager
Jerry:
Maybe you are looking for something like request.setAttribute(String, Object)..?
Geeta
Jerry Jalenak wrote:
> Wendy -
>
> It can be something as simple as an error status, or as complex as a List
> object. I can't use the session because where I am redirecting back to can
> be a second
Yep.
For a quick code example:
Iterator it = // get a list of employees that match some criteria
while (it.hasNext()) {
/*
* Each EmployeeVO only contains its primary data
*/
EmployeeVO vo = (EmployeeVO) it.next();
/*
* EmployeeVO lazily loads Department (only primary data)
*/
Depa
Wendy -
It can be something as simple as an error status, or as complex as a List
object. I can't use the session because where I am redirecting back to can
be a second instance of Tomcat running on its own server, or even an ASP.Net
application running under IIS. So, I really need to put the o
> From: Jerry Jalenak [mailto:[EMAIL PROTECTED]
> If I remember correctly, when you use a
> response.sendRedirect() there is a
> new request created and passed.
Actually, the browser sends the request. The redirect instructs the
browser to make a new request to the server, and Tomcat (I assume)
Yeah, that does work, but the code is hideous. The courseTitle input field
code becomes:
" value="">
Ouch. Looks like I'll either stick with nested tags, or de-nest this
data...
> -Original Message-
> From: Karr, David [mailto:[EMAIL PROTECTED]
> Sent: Monday, March 29, 2004 12:08 PM
>
I'm using struts 1.1 with the standard Validation stuff (see below)
I have a multi-page form (random access tabbed interface) and I would like
to do the correct validation on the correct form (tab). There are 3 related
jsp pages. Formtab1.jsp, formtab2.jsp and formtab2.j
On Mon, Mar 29, 2004 at 01:18:12PM -0500, Robert Taylor wrote:
> couldn't you use a lazy loading scheme such that the
> Department reference in each Customer is not "loaded" until
> accessed and even when the Department is "loaded" only the
> primary Department data is loaded (no object referenc
> Hy folks,
>
>
> I'm building my first Web Aplication with Struts. I'm trying to
> validate a component.
> So, I'm using the Validate.xml and ValidatorForm subclass. And, I
> have too textbox, select into the form. But, everytime that I test the
> validation, the ValidatorForm vali
All,
If I remember correctly, when you use a response.sendRedirect() there is a
new request created and passed. Is there anyway to place something in this
new request before it actually gets sent? I've been googling all morning
trying see if there is a way of doing this, without much success. D
Maybe try:
>
>
>
>
>
>
>
>
>
> property="courseTitle"/>
>
>
>
>
>
<>
-Original Message-
From: Karr, David [mailto:[EMAIL PROTECTED]
Sent: Monday, March 29, 2004 1:08 PM
To: Struts Users Mailing List
Subject: RE:
Rick,
couldn't you use a lazy loading scheme such that the
Department reference in each Customer is not "loaded" until
accessed and even when the Department is "loaded" only the
primary Department data is loaded (no object references).
So in essence, you only get what you need, when you need it.
On Mon, Mar 29, 2004 at 11:44:49AM -0500, Alan Weissman wrote:
> So for your specific problem, I would go with #1 and put a department
> object on an Employee. If you give me more information on what your
> schema and use cases are, I can help you with the persistence layer.
Well, I was just
I believe you'll be forced to "manufacture" the resulting parameter
name, and probably the value (if you intend the field to show the
existing values). This probably means you'll have to use a stock
"input" element instead of html:text.
> -Original Message-
> From: Jarnot Voytek Contr AU/
On Mon, Mar 29, 2004 at 10:42:07AM -0600, Hookom, Jacob wrote:
> This has been discussed lots before; I usually opt for ViewObjects that
> match what is needed for rendering. It makes it really easy to make
> modifications in the controller as to how the data is pulled while keeping
> the view un
I'm talking shite.. ignore me.
On 29 Mar 2004, at 19:42, Mark Lowe wrote:
I'm using a bog-standard release of 1.1.. And I'm using c:forEach
rather than logic with plain html tags for form elements.
Works just fine.
On 29 Mar 2004, at 19:35, Hubert Rabago wrote:
In that case, can I say "Oops!
Dooh..
I've twigged what you've been trying to say (sorry long day and bad
listening skills).
I'd have Schools and courses property and not nest these.
Like Hugo said, I'd be interested in hearing how you do it if/when you
do.
On 29 Mar 2004, at 19:42, Jarnot Voytek Contr AU/SC wrote:
yes I
> I do #1 and #3 depending on the nature of the field. It
> keeps the objects
> separate.
Right on.
> For objects that are pretty dynamic or don't come from a set
> list, I'd do #1.
Also Agreed...
> I do a #3 for a more generic "lookup" type object where the
> values don't change often (
Did you set "validate=true" for your action mappings?
Mark Mandel wrote:
Hey all,
First time posting to the list.
Been slowly learning Struts 1.1 over the past few weeks.
Trying to get the Validator working, to absolutely no avail. I don't get
any Java Errors, and neither do I get any Validat
yes I have a form bean with a List of school beans each of which has a list
of course beans
form bean methods:
getSchools
setSchools
getSchool(int)
setSchool(int, school)
school bean methods:
getCourses
setCourses
getCourse(int)
setCourse(int, course)
When I submit the form, only the schools are
I'm using a bog-standard release of 1.1.. And I'm using c:forEach
rather than logic with plain html tags for form elements.
Works just fine.
On 29 Mar 2004, at 19:35, Hubert Rabago wrote:
In that case, can I say "Oops!"?
If you figure this out, can you share it on the Struts user list?
Arro
Mu,
I think what you want to do is provide an action that sets up your
form prior to forwarding to the JSP page. In that action, you can set
the String[] to hold the values that you want checked for rendering by
html:multibox. For example, let's say your form is something like the
following:
pu
In that case, can I say "Oops!"?
If you figure this out, can you share it on the Struts user list? Arron
Bates hasn't yet.
http://www.mail-archive.com/struts-dev%40jakarta.apache.org/msg22262.html
Yours is specific to your situation, of course, so you may find a hack that
works.
--- Jarnot Voyt
The same way as you populated it in the first place.
Do you have something like this?
SchoolApplicationForm theForm = (SchoolApplicationForm);
List schoolList = new ArrayList();
SchoolForm school = new SchoolForm();
school.setCourse(0,new CourseForm());
schoolList.add(school);
theForm.setSchools(
I appreciate your replies, but let me quote myself from my original message:
> > > > I'd rather stick with JSTL and html-el rather than the nested
taglib.
If possible, I'd like to accomplish this using jstl for the loops and
html-el for the input fields. If not, I will be forced to use the nest
Try looking at Struts' tags. Tutorials are on
http://www.keyboardmonkey.com.
--- Jarnot Voytek Contr AU/SC <[EMAIL PROTECTED]> wrote:
> I'm not using a dynaActionForm, my problem lies with the html that's
> rendered... Displaying the form works fine, but I don't see how struts
> will
> repopula
On 29 Mar 2004, at 19:17, Julio Cesar De Salvo wrote:
You have to use the html-el tag libraries in the contrib. directory.
No you don't..
Julio
-Mensaje original-
De: Jarnot Voytek Contr AU/SC [mailto:[EMAIL PROTECTED]
Enviado el: Lunes, 29 de Marzo de 2004 02:02 p.m.
Para: '[EMAIL PROTE
I'm not using a dynaActionForm, my problem lies with the html that's
rendered... Displaying the form works fine, but I don't see how struts will
repopulate my nested beans.
> -Original Message-
> From: Mark Lowe [mailto:[EMAIL PROTECTED]
> Sent: Monday, March 29, 2004 11:14 AM
> To: Strut
?
> -Original Message-
> From: Julio Cesar De Salvo [mailto:[EMAIL PROTECTED]
> Sent: Monday, March 29, 2004 11:17 AM
> To: 'Struts Users Mailing List'
> Subject: RE: nesting c:forEach loops
>
>
> You have to use the html-el tag libraries in the contrib. directory.
>
> Julio
>
> -M
If you're using dynaActionForm you need to extract the map from the
dynaForm.
${applicationForm.map.schools}
other than that looks like it should work just fine as it is.
On 29 Mar 2004, at 19:02, Jarnot Voytek Contr AU/SC wrote:
Is it possible to nest forEach loops and have the html:text inpu
You have to use the html-el tag libraries in the contrib. directory.
Julio
-Mensaje original-
De: Jarnot Voytek Contr AU/SC [mailto:[EMAIL PROTECTED]
Enviado el: Lunes, 29 de Marzo de 2004 02:02 p.m.
Para: '[EMAIL PROTECTED]'
Asunto: nesting c:forEach loops
Is it possible to nest forEac
Hi Rick,
I do #1 and #3 depending on the nature of the field. It keeps the objects
separate.
For objects that are pretty dynamic or don't come from a set list, I'd do #1.
My DTO's know whether a field has been populated or not and throws an error
when the path taken by the request didnt popu
+1.
Take a look at
http://www.theserverside.com/books/wiley/EJBDesignPatterns/downloads/ejbdesignpatterns.pdf
more specifically these patterns:
Data Transfer Object Factory
Custom Data Transfer Object
robert
> -Original Message-
> From: Hookom, Jacob [mailto:[EMAIL PROTECTED]
> Sen
Is it possible to nest forEach loops and have the html:text input fields
work correctly?
My JSP code:
Within the second loop, input field names are rendered as
course[0].courseTitle rather than the required
school[0].course[0].cours
Hi Mike,
Go here:
http://www.husted.com/struts/tips/007.html
Curtis
--
c dot tee at verizon dot net
Mu Mike wrote:
> I m using a htmol:multibox tag, I want the check boxes checked or
> unchecked every time differently accoriding to the data I have in my jsp
> file, I m using an action form ,i
I'm using struts 1.1 with the standard Validation stuff (see below)
I have a multi-page form (random access tabbed interface) and I would like
to do the correct validation on the correct form (tab). There are 3 related
jsp pages. Formtab1.jsp, formtab2.jsp and formtab2
Hey Rick -
I use a combination of #1 and #2. NEVER #3 or #4.
#1 happens a lot especially when 'stars' appear in your schema, ie where
you start finding that you are pulling everything out by EmployeeId. A
persistence mechanism isn't an issue for me as I have always ended up
building my own - non
This has been discussed lots before; I usually opt for ViewObjects that
match what is needed for rendering. It makes it really easy to make
modifications in the controller as to how the data is pulled while keeping
the view unchanged.
EmployeeView.getName()
EmployeeView.getDepartmentName()
Employ
Curious about the different ways you guys handle this..
For simplicity, imagine you are needing to return a List of
Employee objects. Each Employee belongs to a department.
What I debate about is how to handle the creation of the
Employee Value Object in relation to "department." From a
business
Hi everybody,
I've been reading a bit further into JTA spec's and have understood
that, in a web application, the application server is responsible for
providing as many INDEPENDENT transactions as requested by each user's
Session (thread). On the top of that, since I won't be using distributed
ob
So I'll head to BugZilla, I guess.
Doug
Colm Garvey wrote:
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:
Hi all,
(Proper subject this time, apologies)
I'm having a problem with the i18n:bundle tag.
I set the locale on the session in an action based on a user
selection:
request.getsession().setAttribute(Action.LOCALE_KEY, userLocale);
where userLocale is a Locale object representing the value sel
I gave up trying to put the '%' in the XML file. Instead, I just add them to
the parameter value BEFORE calling into Ibatis.
I'm using the following in my XML file:
select
ID,
LOGIN,
PWD,
NAME,
EMAIL,
PHONE,
CREATED,
CRUSERID,
UPDATED,
Hi all,
I'm having a problem with the i18n:bundle tag.
I set the locale on the session in an action based on a user
selection:
request.getsession().setAttribute(Action.LOCALE_KEY, userLocale);
where userLocale is a Locale object representing the value selected by
the user.
In my JSP I set the
Hi,
I think I can put together a better implementation of what I was doing using
your two suggestions :
a)put the bean in the session scope
b)use an associated form with the prepare action
Thanks for your help!,
Jim
-Original Message-
From: Wendy Smoak [mailto:[EMAIL PROTECTED]
Sent: F
Hi,
This is the situation (more or less):
Most of them don't have notions / experience on certain basic concepts
(like - for instance - design patterns).
They are used to coding their SQL throughout the code, utilizing (in a
few cases) a single DB access object that is nothing but an SQL executo
Hi Andy,
sorry for the simple answer, I will now give some more solutions and in your
case with a value variable:
SELECT * FROM tbl_name WHERE column_name LIKE "%$username$%"
OR
ORACLE:
SELECT * FROM tbl_name WHERE column_name LIKE '%' || #username# || '%'
Sybase/SQL Server:
SELECT * from
+1
Hibernate, xdoclet . mail me off the list if you want an example
build.xml file.
Hibernate uses POJO approach, and xdoclet tags makes light work of the
xml mapping files as well as making you hibernate java beans mean
something more than a bunch of gets and sets.
I'd buy xdoclet in action
Freddy -
Pardon me here, but I really am curious, what exactly are the backgrounds of
your developers? Youre saying they can all handle JDBC calls complete with
rolling their own SQL, but don't understand the concept that an O/R Mapping
tool is based on??
I'm not getting it. What exactly abou
84 matches
Mail list logo