form-bean name=userSystemForm
type=com.user.struts.form.UserSystemForm /
public class UserSystemForm extends ActionForm implements Serializable {
// - Instance
Variables
private String systemHref;
private
Hi there
I've got problem using map-backed ActionForm.
The following snippet is the html output:
form name=shopTextForm method=post
action=/shopAdmin/jsp/structure/saveShopText.do
input type=hidden name=sqlname value=shopadmin_shop_text_detail
table cellspacing=0
tr
Hi,
I would suggest you begin with iBATIS.
http://ibatis.apache.org
Thanks and Regards,
S.Ramkumar
Associate Consultant - Investment Banking
PrimeSourcing(tm) Add Value Reduce Risk
i-flex solutions limited, Bangalore
Ph:+ 91-80- 22086000/57596000- extn 6873
E-Mail:[EMAIL PROTECTED]
pc leung ha scritto:
form-bean name=userSystemForm
type=com.user.struts.form.UserSystemForm /
public class UserSystemForm extends ActionForm implements Serializable {
// - Instance
Variables
private String
Dear friends,
I have a Add user jsp page and in my jsp page the user can select his
language from a dropdown menu. I am generating it from the ArrayList
property in UserForm.
td
html:select name=UserForm property=language
tabindex=8
Hello,
I've a form with a text input field and two html:image buttons : one
to add new user and one for search
My porblem is when I type [Return] from input field, the form is
submited with some strange image button informations :
- on IE, non image button (x,y position) is submited, so I
I had the same problem, and besides setting the form to session scope
you could do the following: Instead of storing your list of languages in
an ArrayList, store them in an array of Strings. Then on your jsp you
should be able to iterate over this list and sent all languages via the
html:hidden
Hi,
I would suggest that manually call validate and use Request Scope
Not many people seem to be using this approach, yet I have found it to be
the best overall solution.
This is how it works:
First of all make sure you do not have validate=true set in your action
mapping.You should call
After defining a form-bean for an ActionForm
form-bean name=StatusSearchActionForm
the next step is to relate the ActionForm to an ActionMapping. The
name attribute in an mapping refers to the name attribute in a
form-bean.
When a request is made for a *specific* action with the attribute
Hi,
I feel that the approach given by Peter would be fine.
You might be populating the drop down by iterating a collection fetched from
Database. When you submit the form only the selected value is submitted from
the drop down not the entire collection (That is why you do not get the
collection
I got the solution for the problem.
For anyone who will get into the same problem here the snippet about the
solution:
Before (I didn't use the reference of the submitted ActionForm):
DynamicForm dynamicForm = DynamicFormPopulate.createDynamicForm(sqlname,
paramArray);
New:
DynamicForm
The trick is to point the input variable in your struts-config.xml to the
action class that generated the JSP page rather than the JSP page itself.
action attribute=enquiryForm name=enquiryForm path=/Enquiry
scope=request
validate=true type=com.tuningfork.action.EnquiryAction
And why is that ?
On 1/10/06, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
Hi,
I would suggest you begin with iBATIS.
http://ibatis.apache.org
Thanks and Regards,
S.Ramkumar
Associate Consultant - Investment Banking
PrimeSourcing(tm) Add Value Reduce Risk
i-flex solutions limited,
I use iBATIS because it is the least intrusive of the two (among other things).
It is also MUCH simpler to integrate into an existing
database/project, because it works around your database structure
instead of making you change your database structure to meet the needs
of your persistence
On 1/9/06, Dennis Byrne [EMAIL PROTECTED] wrote:
Will it be acceptable if all 3 MockServletContext.log methods wrap a
static commons logging method call?
I wouldn't be averse to using Commons Logging here, but perhaps it would be
a little simpler to just write to System.out or System.err,
you just defined your bean here.
scope(session or request) should be given in action mapping.
Cheers,
Chand.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: 09 January 2006 16:04
To: user@struts.apache.org
Subject: Bean scope...
Hi All,
I keep getting this
JEEVANATHAM P. /BPCRP/INFOTECH/VASHI wrote:
For my project we are doing lot of database actions such as inert, update,
delete and read.
For that which java frameworks is best to use?
There is no such thing as the best to use. It all depends on your
project requirements and know how.
Thank you for reading and attention.
I have written an error handler which simplies the error message.
When the error handler is removed from struts-config.xml
I find error comes from another action class.
Thank you very much indeed.
On 1/10/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
pc
The following is the dropdown box in jsp
html:form action=setupAssignUserSystem.do method=post focus=engName
html:select name=userForm property=engName
html:options collection=userList property=engName/
/html:select
How to get the value selected in action
Dakota Jack wrote:
Just so you know, Alexandre Poitras, and others with similar tendencies,
calling someone a troll in a professional setting having to do with their
occupation almost certainly is an actionable per se libel with presumed
damages and linking the person doing the libel to any and
Hi we are developing an application with
Struts and I've a Action that creates
35 Charts writes it to the Session and displays it
in a JSP. It runs on Tomcat 4.1.
Most of the time it is fast but sometimes it takes significantly
more time. I've tested all the methods, the session-size can
reach a
A coworker is looking for a framework like JavaHelp for use with a
Struts 1.2 webapp. (Apparently JavaHelp has a webapp component, but
it can't be accessed with an https:// URL, which is required.)
Putting 'java help' into Google isn't very useful, so I thought I'd
call on the collective wisdom
That's *WAY* too much data in session. You should always strive to keep
session as small as possible, I believe the recommendation generally is
32K. If you ever had to move to (or are already in?) a distributed
environment, 1.3Mb in session would absolutely kill you. Even on a single
box,
starki78 wrote:
Hi we are developing an application with
Struts and I've a Action that creates
35 Charts writes it to the Session and displays it
in a JSP. It runs on Tomcat 4.1.
Most of the time it is fast but sometimes it takes significantly
more time. I've tested all the methods, the
Emmanouil Batsis wrote:
[...] the browser upon stibling on an img tag.
Sorry, i stumbled while typing this ;-)
Manos
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
We use Robohelp here:
http://www.macromedia.com/software/robohelp/?promoid=BINZ
It can spit out an HTML version of the documentation which even includes
Javascript-based searching and index page, and the result is similar to
looking at a CHM. Not open-source, and a bit pricey, but gives
Sorry to repost this, but I wanted to know if I was the only one facing this
difficulty and if it's the case how to avoid it. Any thougts?
On 1/8/06, Alexandre Poitras [EMAIL PROTECTED] wrote:
Just a small correction below :
On 1/8/06, Alexandre Poitras [EMAIL PROTECTED] wrote:
I am
Thanks for your advices,
well I hope I can handle this problem.
Starky
That's *WAY* too much data in session. You should always strive to keep
session as small as possible, I believe the recommendation generally is
32K. If you ever had to move to (or are already in?) a distributed
Ciao Manos!
Thank you for your answer!
Nice greetings Starky
Emmanouil Batsis wrote:
[...] the browser upon stibling on an img tag.
Sorry, i stumbled while typing this ;-)
Manos
-
To unsubscribe, e-mail:
On 1/10/06, Nicolas De Loof [EMAIL PROTECTED] wrote:
Hello,
I've a form with a text input field and two html:image buttons : one
to add new user and one for search
My porblem is when I type [Return] from input field, the form is
submited with some strange image button informations :
- on
Hi All,
I have the below logic , and I need to loop thriugh the Dmamarket Array
using struts and
Set the form attribute..
My form has dmaMarket[] as an attribute.
%
DmaMarket[] dmaArray =
(DmaMarket[])session.getAttribute(Constants.ATTRIBUTE_EU_DMAMARKET_LIST)
;
I figured this out. The uri didn't match what was in the JAR.
Did the URI change from 1.0 to 1.2 for jstl?
Just wondering because I used the uri out of the IBM tutorial.
I think I'm going to try to get it to resolve one of our custom tld files
now. It seems to not have uri in it though (I don't
Yes, the URI for the JSTL changed between version 1.0.x and 1.1.x. Note
that 1.0.x is used in JSP 1.2 containers, and 1.1.x in JSP 2.0
containers. They're not interchangeable.
-Original Message-
From: Garner, Shawn [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 10, 2006 8:55 AM
Hi
Is it possible to add struts module using Java code, without adding
initial parameters into web.xml ? I need to write application using
modules without web.xml modifications.
Regards
--
Daniel Łaś [EMAIL PROTECTED]
e-direct Polska sp. z o.o.
ul. 1-go Maja 9
45-068 Opole
tel. +48 77 44 17
was wondering whats the purpose of the links struts applications,
struts sandbox are?
the pages they point to are virtually empty. anything coming in (for
those pages) ? what's the scoop on this?
is it to host sample applications that work on struts?
riyaz
On 1/10/06, Riyaz Mansoor [EMAIL PROTECTED] wrote:
was wondering whats the purpose of the links struts applications,
struts sandbox are?
the pages they point to are virtually empty. anything coming in (for
those pages) ? what's the scoop on this?
Both Apps and Sandbox are themselves
If you have a getDmaMarket and setDmaMarket property on your form, I
would do the following:
logic:iterate id=rowIndex property= dmaMarket
type=com.ubs.eq.na.lynx.model.client.DmaMarket
bean:write name=rowIndex property=country /
/logic:iterate
This will display your data, but it looks like
On 1/10/06, Wendy Smoak [EMAIL PROTECTED] wrote:
is it to host sample applications that work on struts?
No, though we have discussed hosting example apps on a new Apache
server that we now have access to.
That is... yes, 'Apps' is a sub-project containing example
applications, but the
I would think it should be but I'm unsure exactly how.
I have some ideas of things I would try but I don't want to lead you down a
path I'm unsure of.
Shawn
-Original Message-
From: Daniel Las [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 10, 2006 11:17 AM
To: Struts Users Mailing
pc leung wrote the following on 1/10/2006 9:47 AM:
The following is the dropdown box in jsp
html:form action=setupAssignUserSystem.do method=post focus=engName
html:select name=userForm property=engName
html:options collection=userList property=engName/
I wouldn't be averse to using Commons Logging here, but perhaps it would be
a little simpler to just write to System.out or System.err, with a system
property to control the logging levels actually output?
Craig
Fair enough :) I can see piping log(String, Throwable) to System.err, but I
don't
On 1/10/06, Dennis Byrne [EMAIL PROTECTED] wrote:
I wouldn't be averse to using Commons Logging here, but perhaps it would
be
a little simpler to just write to System.out or System.err, with a
system
property to control the logging levels actually output?
Craig
Fair enough :) I can see
Thanks, But I have a different problem..
I have an ArrayList which has dmaMarket Objects... dmaMarket has getters
and setters...like getCountry etc.,
I have to loop through the arrayList and get the dmaMarket object and
display the attributes like country etc.
But the problem is I have to set
Shilpa,
Look at the lessons By Rick
http://www.reumann.net/struts/main.do
You'll find the answer.Thanks Rick for your lessons.
On 1/10/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
Thanks, But I have a different problem..
I have an ArrayList which has dmaMarket Objects... dmaMarket has
Srinivas Jadcharla wrote the following on 1/10/2006 3:21 PM:
Shilpa,
Look at the lessons By Rick
http://www.reumann.net/struts/main.do
You'll find the answer.Thanks Rick for your lessons.
You're welcome, but I suggest if you want to get a jump on the more
up-to-date stuff you use the
I have a problem with using a collection and html:input. I do this in
several places in my application and I cannot determine why this has stopped
working in IE only and this form only. Here is a sample of the code:
html:form action=/offerprice.do method=post
html:hidden property=dispatch
I have a problem with using a collection and html:input. I do this in
several places in my application and I cannot determine why this has stopped
working in IE only and this form only. Here is a sample of the code:
html:form action=/offerprice.do method=post
html:hidden property=dispatch
Thanks. That was veru helpful, I got my problem solved..
-Original Message-
From: Srinivas Jadcharla [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 10, 2006 3:21 PM
To: Struts Users Mailing List
Subject: Re: How to use logic iterate...
Shilpa,
Look at the lessons By Rick
View the generated HTML source code and paste it somewhere such as:
http://www.pastehere.com/CreatePaste.aspx
And then give us the link to the paste above.
Jason Long wrote the following on 1/10/2006 4:11 PM:
I have a problem with using a collection and html:input. I do this in
several
I am refactoring my company's JSP website because the code uses only JSP to
control navigation. You can imagine its pretty ugly. Anyway, I decided to
use JSF and possibly move to Shale once I've gained a handle on the
framework. I successfully deployed some of the pages using MyFaces because
Thank you for your reply Rick.
I found the problem after 5 hrs of investigation. I integrated a new layout
my designer made and somehow the following got stuck in the header:
form id=empty_form/form
I am not sure why this caused a problem or why it only happened on one of
the many, many forms
On 1/10/06, Chan, Jim [EMAIL PROTECTED] wrote:
I am refactoring my company's JSP website because the code uses
only JSP to control navigation. You can imagine its pretty ugly.
No, I can't.
Anyone who tried to refactor JSP to JSF will know that it takes some work to
adapt the existing
From: Chan, Jim [EMAIL PROTECTED]
Anyone who tried to refactor JSP to JSF will know that it takes some work to
adapt the existing html/JSP code to utilize the JSF tags. Because I'm under
time constraints, I've really only used JSF tags for controls that need to
be bound the backing beans.
Chan, Jim wrote the following on 1/10/2006 5:35 PM:
I am refactoring my company's JSP website because the code uses only JSP to
control navigation. You can imagine its pretty ugly. Anyway, I decided to
use JSF and possibly move to Shale once I've gained a handle on the
framework. I
Hi,
I have to take a difficult decision.
I have to develop a new web application and I think that I have to use JSF,
but I also think that I have use Struts as Controller.
The web application that I have to develop it's a medium, big application.
The two alternatives are Shale or Struts-faces,
Actually you bring up one of the reasons I'm not in love JSF at the
moment. I know most people like the idea of using pre-built or custom
renderers and get all googly eyed over the nice things you can get
out-of-the-box from MyFaces or Oracle ADF, but I guess I'm still
old-school and like the
By the way, when you say the site 'only uses JSP' do you mean no Struts
or other framework is involved? In other words just JSP submitting to a
servlet and then redirecting/forwarding to another JSP?
No framework at all - sometimes a Java class redirects and sometimes a JSP
redirects.
Its
On 1/10/06, Angel Navarro [EMAIL PROTECTED] wrote:
Hi,
I have to take a difficult decision.
I have to develop a new web application and I think that I have to use
JSF,
but I also think that I have use Struts as Controller.
For the purposes of this reply, I'm going to assume by your use
On 1/10/06, Chan, Jim [EMAIL PROTECTED] wrote:
- I am taking a good approach to refactoring the existing webapp?
You might be using f:verbatim a little more than absolutely necessary. It
should only be *required* if you are inside a JSF component like
h:panelGrid or h:panelGroup (or inside a
I am designing a new class and wondering what class are a good candidates for
the class attribute. I know String, Date, Integer, int, fload, boolean, Boolean
all are good for instance variables, but classes/interfaces like Map,
InputStream, Iterator are also good instance variable cadidate?
Hi try this following code
logic:present name=%Constants.ATTRIBUTE_EU_DMAMARKET_LIST% scope=session
logic:iterate id=eudmamarket indexId=rowIndex
name=%Constants.ATTRIBUTE_EU_DMAMARKET_LIST%
type=com.ubs.eq.na.lynx.model.client.DmaMarket
tr
td
I think it purely depends on your requirement. But why do you want an
InputStream as a class variable. I think that is very costly resource and you
are blocking a resource.Others i think you can use it based on your
requirement. For iteratorsif u declare it as class level variables if the
The web site says to use 'mvn build-all' .
http://struts.apache.org/acquiring.html#Source_Code
Using build-all gives me the following error message, but using 'mvn install'
builds everything. I am not a maven expert, but should the web site be updated?
[ERROR] BUILD FAILURE
[INFO]
63 matches
Mail list logo