I have a jsp a formbean and an action class.
My formbean has a value object and getter setter
methods for that.
here is my forbean
public class ServiceSelectionForm extends
ActionForm {
private AddressVO addressVO;
public AddressVO getAddressVO() {
setWindowHeight(int
windowHeight){ _windowHeight = windowHeight;
} public int getWindowHeight(){ return
_windowHeight; }HTH - If you are getting a specific
error I might be able to help more.Greg-Original
Message-From: temp temp [mailto:[EMAIL PROTECTED]]Sent:
Thursday, September 08, 2
--- Greg Pelly [EMAIL PROTECTED] wrote:
Temp temp,
I'll need some more information from you before I
can be much help.
Is the Form class (ServiceSelectionForm) being
invoked properly?
Are non-nested elements being populated correctly?
Are you getting any errors?
-Greg
-Original
/05, temp temp [EMAIL PROTECTED] wrote:
This is my jsp
html:formaction=serviceSelection.do
html:text property=addressVO.state/
html:submit property=NEWSEARCH value=Submit/
/html:form
I want input textfield from jsp to represent porperty state of
AddressVO.
I
property=addressVO.state /
Put a debug statement in the setter just in case, is it called?
Michael.
On 9/8/05, temp temp [EMAIL PROTECTED] wrote:
here is my struts config
form-bean name=serviceSelectionForm
type=com.bankerssystems.pac.onlinetrans.service.forms.ServiceSelectionForm
/form-bean
(the sample source you posted does that, so that's probably not
it) or that addressVO is null in the form bean. How do you populate the
form bean? What happens if you call getAddressVO().getState() on the
form bean directly?
L.
temp temp wrote:
I get the following error
[Invalid argument
I have a list in my jsp .For each item in the list I
have a submit button through which user can remove an
item in list. When user clicks on remove link I submit
the form to my action class .Action class removes
selected item from the collection and then sends him
back to the same page . After
I want to use jakarta cactus for testing struts
action classes.
I am using websphere RAD , struts 1.2.6
,jakarta-cactus-12-1.7.1 and websphere 5.1
This is catcus.properties file
# Configuration file for Cactus.
# Each project using Cactus need to have such a file
put in the
I want a struts action class to download xml file .I
do not want to use Struts DownloadAction because I
have a super class called AbstractActionBase which
extends to struts action class and all my action
classes extends to this AbstractActionBase.
For downloading a file I am using normal
I have a jsp (Parent Jsp) in which I use
jsp:include to include other jsp (child Jsp) .
In the Parent Jsp I retrieve an Object from the
formbean and set it in request scope.
bean:define id=ramQuestionsDocument
name=ramForm
I am trying to use jstl request tag to save an
object into request scope.
As per the docs syntax is
req:setAttribute name=myattAAbb/req:setAttribute
I want to put an object rather than a string in the
request.How can I acheieve this?
thanksregards
I am using struts action class to download a file .
Here is the action class
public ActionForward execute(ActionMapping aActionMapping, ActionForm
aActionForm,
HttpServletRequest aHttpServletRequest, HttpServletResponse
aHttpServletResponse)
I am using struts action class to download a file .
Here is the action class
public ActionForward execute(ActionMapping aActionMapping, ActionForm
aActionForm,
HttpServletRequest aHttpServletRequest, HttpServletResponse
aHttpServletResponse)
throws
there a specific content type for .doc
documents? That might solve your problem.I looked it up. .doc
documents are application/msword. Try that and see what happens. I
am actually building a list of all the extensions and their content
types. Hope this helps.
On 1/18/06, temp temp [EMAIL
I written two filters for my web application.
One filter is to check whether session has userId called SecurityFilter.(This
filter is applied to all *.do)
Second filter to check if login user has access to a particular page called
AccessControlFilter .(This filter only to some .do)
in
I using ServletFilter to check whether the user is authenticated or has
permissions to access resource.
In case of not authenticated or not authorized I must redirect user to some
page (Error Page ) .
For this I must use RequestDispatcher to forward him to error page.
If I do this I
Can I include multiple .do's using request dispathcer include?
or can I have
%request.getRequestDispatcher(/action/budgetInformationRead.do?form=ndsp:budget.Informationobject.ndsp:sf.budget=811).include(request,response);%
multiple times.
like
Filters in web application.
Are servlet filters similar to session ie each session will have its own
filter or its like sevlet context ie common to all sessions .
Thanks Regards
-
Yahoo! Mail - Helps protect you from nasty
In a web application can I use several filters like 20 to 30 filters each of
them serving some functionallity usefull for more than one '.do' .Is this a
good design or there could be any performance issues when using several
filters in a web application.
Thanks regards
I am using struts 1.1
I using logic equal tag to check whether a page context attribute value
equals to some value .
here is my code
bean:define id=test value=0/
logic:equal name=test value=0
bean:define id=test1 value=2 /
/logic:equal
Can somebody help me with this?
Michael Jouravlev [EMAIL PROTECTED] wrote: On 3/10/06, Michael Jouravlev
wrote:
On 3/10/06, temp temp wrote:
I am using struts 1.1
I using logic equal tag to check whether a page context attribute value
equals to some value .
here is my
I am using struts 1.1
I using logic equal tag to check whether a page context attribute value.
here is my code
bean:define id=test value=0/
logic:equal name=test value=0
bean:define id=test1 value=2 /
/logic:equal
logic:equal name=test
In ant build.xml can I call a target from other ant build.xml
For Example I have two ant build scripts build1.xml and build2.xml
and default target from build1.xml below
target name=build_app depends=clean,compile
copy todir=${app.home}/${app.name}
In my download action class I set the content type and write byte array to
the response which makes the browser open a dialog box save or open . Is
there a way to open the file without the option save or open i.e. when
user clicks on file link I want to open the file in the
I have a HashMap with some data .I must alter the Map by replacing the
keys with their upper case.
Map searchResultMap=
(Map)request.getAttribute(searchResults);
ListIterator
: temp temp ha scritto:
I have a HashMap with some data .I must alter the Map by replacing
the keys with their upper case.
Ok first of all you cannot modify a HashMap while you are iterating it.
But your problem has a solution.
Iterate the map and store into another map the key-value
I did not understand the following code with multiple conditional operators.
boolean vIsForm=true;
String vForwardName = (aActionMapping.findForward(vWorkForwardName)
== null)
? (vIsForm) ? form : task
: vWorkForwardName;
Can some body explain
I have a servlet filter which should behave different for different .do's
and init params are different for different .do's .
One way of solving this situation is below.
filter
filter-nameSearchResultsFilter.CheckIn/filter-name
I am using class.forname() in several classes to load other classes so that
my application can be configured without changing the exsisting code .
I am not very clear about the issues which can come across using class
loaders .
I tested in my localhost where all classes reside in one
I must create export to excel spreadsheet capability for my pages .
I will be having java.util.Collection containing search results which I
have to convert into an excel sheet.What is the best and simplest way to
convert a Collection into excel spreadsheet .
Thanks Regards
including a taglib in jsp will it cause performance problems ?
for example
my jsp has path to taglib
%@ taglib uri=/tld/struts-bean prefix=bean%
and I am not using declared tag any where in my jsp.
As per performance measure can I ignore tld declaration or should remove
Note: forwarded message attached.
Blab-away for as little as 1¢/min. Make PC-to-Phone Calls using Yahoo! Messenger with Voice.---BeginMessage---
I am having problems with Regular Expressions usage. I want to ensure that the user enters only digits and no other characters. For
Is there any way I can realize using java that the user clicked on
browsers back button ?
Thanks Regards
-
Yahoo! Mail goes everywhere you do. Get it on your phone.
% of the time they are
either doing one of the following:
- Confusing the GET and POST methods and their intended purpose with
forms.
- Abusing client-side browser scripting for forwarding users.
On 5/11/06, temp temp wrote:
Is there any way I can realize using java that the user
Can U suggets me an article which clearly explains using struts tokens
mechanisim?
Manfred Wolff [EMAIL PROTECTED] wrote:
Lixin.
I think mostly it is no problem to go back in a struts implemented
application. If it ist a problem (e.g. after a logout or if you saved
data) you can take the
The method request.getServletPath returns current request uri.Can I get the
previous request uri .ie
I have a filter which is mapped to all .do's .So any .do is called this
filter is invoked.In this filter I can retrieve the requested url.
Is there any way I can determine url from which
)
* /on the return trip,/
o isTokenValid(request)
o resetToken(request)
Perhaps someone (me?) must write a documentation? If I have a little
time, and no has do so, I will do.
Manfred
temp temp wrote:
Can U suggets me an article which clearly explains using struts tokens
mechanisim
My application should have PDF forms. The servlet should create a PDF form
which user should be able to edit, take print out and server should receive
inputs entered by the user.
What should I look for to achieve this?
Thanks Regards
User should fill the form and submit to the server also should have an
option to print I mean a print button in pdf which will print the pdf.
Thanks Regards
-
New Yahoo! Messenger with Voice. Call regular phones from your PC and
Can I use struts token mechanism for an action without a form bean ?
Thanks Regards
-
Yahoo! Messenger with Voice. PC-to-Phone calls for ridiculously low rates.
Can you tell me how can I use struts token mechanisim with out a form bean?
Thanks Regards
Manfred Wolff [EMAIL PROTECTED] wrote: Yes, you can. The token will be
stored in the request.
temp temp wrote:
Can I use struts token mechanism for an action without a form bean
What hidden field should I use in jsp to pass the generated token to next
action class?
Thanks Regards
Manfred Wolff [EMAIL PROTECTED] wrote: Hi mr. temp.temp
1. The Action calls saveToken(request);
2. A unique token will be generated and saved in the session and in the
jsp as a hidden
Web services. How web services are written in java. Are there any
tutorials to understand the concept of web services?
Several application servers provide tools which builds web service on a
button click.
This way I can create a web service but I cannot understand what files
I have two actionforms two action classes and two
jsps .Clicking on a link in a jsp should take me to
next jsp .Here I must pass some parameter to next
jsp.
In the first jsp I display some data from a collection
containing objects
which I generate from database in action class and
set
I said as you said . It works fine with session but
not with request.Which is better to use request or
session.
thanks regards
--- Fogleson, Allen [EMAIL PROTECTED]
wrote:
Sure...
Lets say jsp1 posts to actionA which forwards to
jsp2
In actionA simply create and instance of the
? that would likely mess it up.
Al
-Original Message-
From: temp temp [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 30, 2005 9:44 AM
To: Struts Users Mailing List
Subject: RE: prepopulation action form
I said as you said . It works fine with session
I have an actionform which contains a bean as a
property. This bean has getter and setter methods
for few Strings .
1. How to display properties from this bean in my
jsp in a list .
And when the form is submitted
2. Can I automatically populate my bean in actionform
with the values
I want pass an object from a jsp to an struts action
in request attribute.
I have a jsp it got link to an action upon click the
action is invoked. How can I pass object to this
action using request Attribute.
thanks regards
__
Do you
, add that
parameter as well. Instead of just
a href=/someAction.do
use
a href=/someAction.do?someAttribute=123.
Hope this helps,
Dhanashree.
-Original Message-
From: temp temp [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 31, 2005 1:11 PM
To: user@struts.apache.org
the JSP
was processing are
gone. To pass data from the generated HTML to an
action, you need to
submit a form or include request parameters in a
link. Another option
is to store the object in session scope.
Hubert
On Thu, 31 Mar 2005 11:10:36 -0800 (PST), temp temp
[EMAIL PROTECTED
work for you...
-Original Message-
From: temp temp [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 31, 2005 1:18 PM
To: Struts Users Mailing List
Subject: RE: passing object in request from jsp to
action
I want to use request.getAttribute(string,object);
thanks regards
--- Apte
I am implementing pagination for most of my jsp's so I
created a pagination bean
with properties corresponding to pagination and this
bean extends to ActionForm .
All my formbeans extend to the pagination bean class.
In all my action classes I am repeating code to set
values corresponding to
I have three search pages (jsp) with different levels
of search .
All the three search pages use the same search engine
to get search results.
Can I use a single action for all these search pages.
thanks regards
__
Do You Yahoo!?
Tired of
Is it similar to sessions ie each user will have
his own cached Object or all the users share the same
Cached object .
I have a jsp with multiple submit buttons .Each submit
buttoncalls database to get data. Its like I have
3 submit buttons
1st gets User comments .
2nd gets some
I am using jsp include to include a jsp in a jsp.
jsp:include page={relativeURL | %= expression %}
flush=true
jsp:param name=parameterName
value={parameterValue | %= expression %} /+
/jsp:include
I want to pass dynamic value to name attribute is this
possible.
I am using struts to upload a file . It works fine
with small files .
But for files with size 1Gb it works fine when I
upload from localhost but does not work
when I upload it from network .It gives network
exception socket connection closed by peer.
Can somebody help me with this.
thanks
I am using struts (commons-fileupload) to upload a
file . It works fine with small files .
But for files with size 1Gb it works fine when I
upload from localhost but does not work
when I upload it from network .I am using websphere
5.0 . Is there any setting for the server which
prevents the
there alimit? I
thought there was
-Original Message-
From: temp temp [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 04, 2005 4:20 PM
To: user@struts.apache.org
Subject: struts file upload problem
I am using struts to upload a file . It works fine
with small files .
But for files
[EMAIL PROTECTED] wrote:
temp temp wrote:
No there is no limit for file upload as per
commons
fileupload.
The server or container might have an upload limit,
for intance Apache
has (or did, anyway) LimitRequestBody config.
Dave
Can I upload very large files like 8 Gb with struts
file upload .
thanks regards
__
Yahoo! Mail Mobile
Take Yahoo! Mail with you! Check email on your mobile phone.
http://mobile.yahoo.com/learn/mail
I am using struts and trying to upload files of any
type and size.If the server as well as client is on
the same PC no issues ,but if I try to accomplish this
across the network then I am only able to upload a
file if the size is less then 1 MB .Not sure what the
problem is.
thanks regards
I am creating a new bean containg struts formbean in
jsp .I put this new bean in request scope.
I want to include another jsp in this jsp.
In another jsp I want to access the properties from
the new bean . Any property I try to write or define
I get error message no getter and setter
I want to use castor for java and xml binding . I am
not aware of where to download castor . I tried
www.castor.orgbut the site was down I am trying
it since last friday I was not sucessful . Can
somebody guide me with this .
thanks regards
I am using BeanUtils.setProperty and
BeanUtils.getProperty for setting the values and
retrieving values from my formbean.It works fine for
a property of type String .In case I have a VO
(valueObject ) as a property in my formbean ,
getProperty method from BeanUtils returns a string
I would like to retrieve message from application
Resources property file and save it into a bean in a
jsp.
bean:message key=someKey writes to response .
But I want this value to be saved in a bean in page
scope can I do this.
thanks regards
I get premature end of file sax exception when I try
to parse a string which is an xml file returned from
database as blob .
I printed this string in console copied and pasted in
browser .Browser displayed xml without any parse
errors.Can somebody guide me what could go wrong or
where did the
I used error-page tag in web.xml to map any 404 Http
error code to page specified in location tag.It works
fine it netscape but does not work in internet
explorer .I am using IE 6.0.
error-page
error-code404/error-code
locationdefault.jsp/location
I used error-page tag in web.xml to map any 404 Http
error code to page default.jsp specified in location
tag.It works fine in netscape but does not work in
internet explorer .I am using IE 6.0.
error-page
error-code404/error-code
I am disabling the browsers chache using jsp
setHeader method , exact code is below.
response.setHeader( Expires, Sat, 6 May 1995
12:00:00 GMT );
// set standard HTTP/1.1 no-cache headers
response.setHeader( Cache-Control, no-store,
no-cache, must-revalidate );
//
I have an action which has a formbean in session
scope . I want to reset this formbean whenever
request is made to this action with a request
parameter (say refresh). I have a reset method in
the formbean which sets all the properties of this
bean to null.
In the action class I look
I am using jakarta commons fileupload to upload a
file . It worked fine with Internet explorer and
netscape navigator with http protocol.
I configured my server to use https protocol. I
tried to upload a file it worked fine with netscape
but did not work with internet explorer. I am
-data?
L.
temp temp wrote:
I am using jakarta commons fileupload to upload
a
file . It worked fine with Internet explorer and
netscape navigator with http protocol.
I configured my server to use https protocol.
I
tried to upload a file it worked fine
I want to create instance of a class using object.getClass().new
Instance() but this object constructor needs another object so how can I do
this ?
Suppose I have a class
DefaultMetaInfoHandler default=new DefaultMetaInfo(test);
I want portal like capability where a user can change or create fields .
I want to add functionality through which a user can add more fields or
remove fields or change the display name of the field like portal page, where
a user can create a form just with drag and drop,
I using synchronized block and need help in using it ?
I have a SingleTon class which has a global valriable Map.
I will updating this Map at runtime.
Example
synchronized (fActionHandlers) {
fActionHandlers.put(
I am using tiles definitions in my actionforward
action path=/action/manage/entity/viewEntity
type=com.reisys.fema.ognt.web.action.manage.entity.ViewEntityAction
forward name=success path=forward.view.entity/
/action
What in case of redirect and I donot want to use session?
Thanks Regards
Paul Benedict [EMAIL PROTECTED] wrote: temp temp wrote:
Is there a way I can add parameters to an actionforward which uses
tiles definition ?
If its not tiles I can append to actionForward.getActionPath
What is the advantage of declaring method abstract in a intreface ?
for example
difference between
Intreface Test
{
public void test();
}
and
Intreface Test
{
public abstract void test();
}
Thanks Regards
Sairam
I want a jsp page which should have the capability to drag and drop in
the sense suppose I have a two list
select size=3
optionCalifornia -- CA/option
optionColorado -- CO/option
optionConneticut -- CN/option
/select
Regards Angelo
2007/3/22, temp temp :
I want a jsp page which should have the capability to drag and
drop in the sense suppose I have a two list
California -- CAColorado -- COConneticut -- CN
C -- CAC -- CO Conneticut -- CN
I want to shuffle the contents of the lists using
, temp temp :
I tried swap control in my application but it does not work the site
has no documentation, no complte examples can I get more assistance with
this ?
Thanks Regards
Angelo zerr wrote: Hi,
you can see JSControlsTags project at
http://jscontrolstags.sourceforge.net
/3/22, temp temp :
I downloaded all the required files but they donot have a sample
application with which I can play make changes test results they have
jsp code which is not complete and no tutorial on how to get
started are there any other providers with good documentation
I need a object which generates unique identifiers for all instances I
create how to do this ?
Thanks Regards
-
Expecting? Get great news right away with email Auto-Check.
Try the Yahoo! Mail Beta.
I have a super class with an abstract method and a non default
constructor and it calls this abstract method in its constructor
This abstract method is implemented in the base class.
First thing base class constructor does is call super()
: No problem.
I'm happy that JSControlsTags please you.
Regards Angelo
2007/3/23, temp temp :
It works Thank you very much.Sorry for the complain It was my mistake i
just downloaded src after ur reply i downloaded use cases i was able
to run the jsp it works.
Once again tahnk you
I have to create highly interactive web page ie use of lot of java
script. Are there open source java ajax frameworks where I code only in java
and do not write any java script? I mean any ajax framework where I have
the whole power of java script but I work with only
I have a singleton class with private constructor
Example
public class ResourceManagerFactory {
private static ResourceManagerFactory fResourceManagerFactory= new
ResourceManagerFactory();
private
How can I iterate a collection and modify at the same time ?
Example
public static Collection getAncestors(
Entity aEntity, Object aContext ){
Collection vAncestors=new ArrayList();
IDocument vDocument= findDocumentByName(
aEntity.getSuper(),
Is there any way I can set super class using bean retrospection ?
I create a instance of a class is there a possible way to to add a super
class using bean retrospection ?
Thansk Regards
miro
-
Ahhh...imagining that irresistible new car
.
Thanks Regards
Miro
Dave Newton [EMAIL PROTECTED] wrote: --- temp temp wrote:
Is there any way I can set super class using bean
retrospection ?
I create a instance of a class is there a
possible way to to add a super class using bean
retrospection ?
In a day
My struts action class forwards to view which has form tag (html form
tag)
form method=POST
Here I did not specify action attribute to the form just specified
attribute method=POST when user submits this form where does it go ?
Thanks Regards
Miro
I have a tiles def
definition name=.basic.layout path=/jsp/basicLayout.jsp
put name=title value=Default title/
put name=header value=/jsp/header.jsp/
put name=menu value=/jsp/menu.jsp/
put name=content value=/jsp/defaultContentPage.jsp/
put name=footer
I have a string which I want to convert into a date .
The string 06-APR-07
How can I convert this date into sql date ?
Thanks
-
Yahoo! Groups gets better. Check out the new email design. Plus theres much
more to come.
I have a map with a string as key .The string contains some dots like
p.s.amemdment.type.sow. In jsp I want display the value for key
p.s.amemdment.type.sow.
For this I should use bean:wirte name=map property=
p.s.amemdment.type.sow / but the bean tag
I have is a constants interface with static final fields .
Each field value is a call to DAO.
For example
interface IObjectTypeIds{
public static final int APPLICATION =ObjectDAO.get(APPLICATION);
}
Is this is a good practice ?
-
Do you
What is the best way to convert an object to an Integer .If casting dosen't
work?
Thanks Regards
-
Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+
countries) for 2¢/min or less.
get compilation error stating that cannot cast a String to integer
in this case do I have to create a new Integer every time ?
Thanks Regards
Scott Van Wart [EMAIL PROTECTED] wrote: temp temp wrote:
What is the best way to convert an object to an Integer .If casting dosen't
work
How to read the following code ?
boolean vIsForm = vWorkTypeId.equals(IFormflowWorkTypeIds.FORM);
String vWorkForwardName = MessageFormat.format(work={0}, new Object[]
{vWorkAlias});
String vForwardName = (aActionMapping.findForward(vWorkForwardName)
== null)
My java standalone application wants connection to database with lookup to
datasource name which is configured in the oc4j app server.
Please guide me with some ideas to achieve this.
-
Do you Yahoo!?
Everyone is
I am using struts bean tag bean:write .Is there any option in the tag
which converts \n character to br
-
All-new Yahoo! Mail - Fire up a more powerful email and get things done faster.
1 - 100 of 136 matches
Mail list logo