I am a Struts newbie, but not in writing web-applications or JSP pages.
I am writing a simple app that is taking data from my database and
displaying the data in my JSP page, that works. I got the date
formatted how I want, and that's fine. The text data that I want to
display has some linefee
I was just curious
I am using Apache 2.0.50 JK2 (2.0.2) and Tomcat 4.1.30 on Windows 2000
for now, and I hope to port this all to Linux in the future.
Before I started using struts, I was putting the database resource into
the Tomcat server.xml configuration file, and then it also had to be
l.
-Original Message-
From: Tom Holmes Jr. [mailto:[EMAIL PROTECTED]
Sent: 06 September 2004 17:08
To: Struts Users Mailing List
Subject: Line Breaks and Formatting Text
I am a Struts newbie, but not in writing web-applications or JSP pages.
I am writing a simple app that is taking
I am a Struts newbie, and I have made great strides with the book:
"Jarkarta Struts for Dummies" by Mike Robinson and Ellen Finklestein.
They have an application called MusicListCollection and I have been
using that to help me figure out Struts.
One of the pages is called musiclist.jsp, this is a
I'm still a Struts newbie, but I have some confusion on the amount of
classes I need to use in order to create a CRUD application.
From what I can see I need a "form bean" in order to capture the data
from the JSP page. This contains the validate method which would verify
some of the data from
d the DTO look so similiar, but Erik Weber explained that the
"form bean" was going to have all strings from the jsp form, and the DTO
bean will have the real int's, Strings, booleans, etc.
Anyway, thanks for the help.
Tom
Michael McGrady wrote:
Tom Holmes Jr. wrot
Erik, thanks so much for the help. It is very useful I was
confused about a couple of the classes, but I think you helped me to
figure it out. I know from my first Struts application a Login
application, that I needed the LoginForm (to contain the username and
password) a LoginAction to
data transfer to/from UserDTO to/from the database
I think I am getting. Thanks for the help, It is much appreciated!
Tom
Jim Barrows wrote:
-----Original Message-
From: Tom Holmes Jr. [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 07, 2004 4:04 PM
To: Struts Users Mail
I have a webpage called 'default.jsp' and it has three tags.
One does the header, footer, and body. The Header and Footer are fine,
but the middle page is a 'jsp' page with nothing but a form in it ... I
mean it starts out like
It also has some taglibs designed, and a resource bundle.
What I
age-
From: Tom Holmes Jr. [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 09, 2004 4:33 PM
To: Struts Users Mailing List
Subject: Imports and Form Submits
I have a webpage called 'default.jsp' and it has three
tags.
One does the header, footer, and body. The Header and Footer
are f
see the new record added.
I hope this helps with explaining what I am trying to do. Thanks for
you help.
Tom
Michael McGrady wrote:
Tom Holmes Jr. wrote:
I have a webpage
Wendy is right. We really need to know what you are trying to achieve
because an automatic submis
As many of you know, I had a problem with my Guestbook, and how to call
a .jsp page and have it auto-submit to the URL. As was stated, calling
my 'guestbooklist.do' directly from the URL worked. I decided to keep
the form in this guestbook page so people could hit the Submit button on
the pag
Rick Reumann wrote:
Tom Holmes Jr. wrote the following on 9/11/2004 7:02 PM:
So, I guess the only question I have is:
Is there a problem with a web-site that contains a bunch of links to
various '.do' pages as opposed to '.jsp' pages? Are there any
security concerns? Do I
I apologize for this simple, stupid question.
I created a form on a JSP page. I put in the form the;
So, how do I get the name/value of this from my FormBean?
Would this work?
And then in the form-bean, do this:
public String getXXX()
{ return this.xxx;}
Right, now I actually hav
Michael McGrady
Matt Bathje wrote:
Tom Holmes Jr. wrote:
I apologize for this simple, stupid question.
I created a form on a JSP page. I put in the form the;
So, how do I get the name/value of this from my FormBean?
Would this work?
And then in the
I did some research before this before posting, and I apologize if this
is a simple stupid question.
With my web-site, a user is going to login, when they enter in the
username and password, the data from that user will be retrieved from
the database so we can validate the username and password
sion (actually this is default for struts but you may
have set it to request.)
HTH,
sean
Tom Holmes Jr. wrote:
I did some research before this before posting, and I apologize if
this is a simple stupid question.
With my web-site, a user is going to login, when they enter in the
username and pas
I've been working on this Member pages for a short time now, and it used
to be that when the data didn't validate from the formbean, it would
return to the correct page to allow the user to fix the data. When the
data is entered correctly, the data does gets filed to the database, and
the use
ewhere in the web-site and it not related to my membership
information.
I tried to find if something was mis-configured, but I can't find out
what.I'll keep working to figure it out even if I have to go back to
something simpler to make it work.
Thanks for the information.
I have a tag that looks like this:
Rather than having these two address lines on one line, I'd like to
include a line break so that I get two lines. I've tried a few things
and can't seem to get it to work. I've included and '\n' and it's
not working.
If you know how to make this work, I'd
Ok, yeah, that will do it ... now I feel like an idiot. ;-)
Thanks.
Pedro Salgado wrote:
How about:
Pedro
On 11/10/04 2:23 pm, "Tom Holmes Jr." <[EMAIL PROTECTED]> wrote:
I have a tag that looks like this:
Rather than having these two address lines on one line, I
to the page you specify
in the "input" attribute.
HTH,
-Yves-
On Mon, 27 Sep 2004 11:54:19 -0400, Tom Holmes Jr. <[EMAIL PROTECTED]> wrote:
> So i dont really understand what you mean when you say that it comes
> back to MemberAction and you explicitly call
> mapping.findForward
I have a global forward in my struts-config.xml file defined as:
I have a jsp page with a struts form. I do have an as defined:
This works fine in the JSP page, but when I call the action:
http://www.mydomain.net/membership_address.do
Th
define the path for the
global forward as starting with a "/", e.g.
-----Original Message-
From: Tom Holmes Jr. [mailto:[EMAIL PROTECTED]
Sent: 30 September 2004 00:53
To: Stephen Houston
Subject: Global Forward and tag
I have a global forward in my struts-config.xml file def
I'm a newbie struts, but I am making progress. As I've worked on my
application, I am learning more and it also causes me to ask more questions.
So, I have a login form, a loginAction, LoginBean, and it all works
great. The LoginBean calls out to the database, passing in a username
to the dat
to the list, can you re-direct me to the
struts-example web-app? Can I download that app from the Struts
web-site directly?
Thanks again for the help.
Tom
Wendy Smoak wrote:
From: "Tom Holmes Jr." <[EMAIL PROTECTED]>
So, the way I started to hand
;
I can vouch for sure that the "member" (MemberDTO) does exist in session
correctly ... however, the form does not get created and as a result is
null. So, question is WHY?
Why does this code not work and how can I correct it?
MemberAddressForm memberForm = (MemberAddressForm) form;
Thanks aga
orm"
name="MemberAddressForm"
The correct one is the first one because that matches the form-bean
definition. Problem solved.
Why do my toughest problems have the simplest solution? That question
was rhetorical. Thanks for all the help and being so patient with me.
Thanks again
Sorry ... this might be off topic. I'm a Struts1/2 and Spring MVC Java
developer myself.
And yes, I am Googling for this information as well.
I am looking for some Java open-source app that does some batching.
I basically want a java web-app where I can schedule a URL to be called
at a certa
some great starting points.
Thanks!
Tom
Burton Rhodes wrote:
Since you are already using spring, quartz would most likely be the easiest.
On 8/7/09, Manos Batsis wrote:
Manos Batsis wrote:
Tom Holmes Jr. wrote:
Sorry ... this might be off topic. I
Alright ... I know this will be a n00b question, but let me state first:
1) I am a senior J2EE Engineer using JDK 1.6 and the latest J2EE api's
2) On Resin 3.1.2 on Linux
3) Yes, I did go through Google and tried to find answers on the Net
before I came here.
4) Yes, I have programmed in Spring 1
Yes ... this is one of the very first links that came up with my Google
search and I looked at this example in detail.
Unfortunately, I'm not really using JPA (since in my opinion it's far
from Hibernate and really not complete yet) ... and I'm not using Ajax
at the moment.
It really wasn't
://appfuse-light.dev.java.net/files/documents/6839/68407/appfuse-light-struts2-hibernate-1.8.zip
Matt
Vinicius Medeiros Peretti wrote:
I had problems with this combination using jdk 1.6, solved when I
changed the tomcat's jdk to 1.5.
Vinicius
Tom Holmes Jr. wrote:
Yes ... this is one of
I've been playing with Struts2+Spring2 beans+Hibernate and that all
works very well.
So, now I am trying something simpler ... so consider this a new
web-project altogether with just Struts2 ... no Spring2 and no Hibernate.
Basically, I want to call a pre-Action action that loads a bean into a
This is probably a very easy question ... and I'm probably just having
one of those "brain-fart" moments.
I'm using struts2 and that works fine ... I've got a bean created and in
session, so I can use the:prefix="s" uri="/struts-tags"taglib
defined.
This all works great!
I'm showing
I am using struts 1.x and looking at html:select and
html:optionsCollection for an example on how to use that.
It works great if I have one combo-box with my form.
I have an array of labels:
label_x
label_y
label_z
etc.
each one is a combo-box and they ALL have the same options to pick from,
an
I have found dozens of examples on the Net to use Struts 1 to upload a
file using the FormFile object.
This works great. However, there is probably a bug in the FormFile
since getting the inputStream doesn't seem to work.
But using the getFileData to get the byte array does work fine, so then
ote:
2008/3/27, Tom Holmes Jr. <[EMAIL PROTECTED]>:
Anyway, my question is after I upload my file and look at the data, I
want to hold onto that file to the next page.
...
Can I do this, or do I need to parse the entire file after the first
page, and then how would I pers
I've created numerous pages with multiple combo-dropdown boxes that
captured the label and value of a select box.
The formbean for these was always clear cut and simple.
Now, I have a select like the following:
A
B
C
As I understand it, when I submit, this will submit back a string ar
o, I still need to hold onto this file until after the second page.
That's my use case. Thanks!
Tom
Antonio Petrelli wrote:
2008/3/27, Tom Holmes Jr. <[EMAIL PROTECTED]>:
Ok . maybe what I'll do in thi
Yes, I thought I mentioned that I could parse it and store it until
I need it.
However, I don't like to store data like that in a session ... it could
be a lot of data.
But I could pass it into the request
Antonio Petrelli wrote:
2008/3/27, Tom Holmes Jr. <[EMAIL P
Laurie Harper wrote:
Tom Holmes Jr. wrote:
I've created numerous pages with multiple combo-dropdown boxes that
captured the label and value of a select box.
The formbean for these was always clear cut and simple.
Now, I have a select like the following:
A
B
C
As I understa
based on my previous message I want to have multiple-selects named off
of a hashmap.
I have found and read all the documentation of "Mapped Properties" I
could find under Google.
I know my form bean is 100% correct based on the documentation, so that
is a not a worry there.
I have a:
HashMap ma
Laurie Harper wrote:
Tom Holmes Jr. wrote:
based on my previous message I want to have multiple-selects named
off of a hashmap.
I have found and read all the documentation of "Mapped Properties" I
could find under Google.
I know my form bean is 100% correct based on the documentation
44 matches
Mail list logo