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)
thr
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
ught. Isn't 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
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 t
How can I pass a Struts Global forward to
request.getRequestDispatcher("struts global Forward).forward(request,response)
or
How can I forward to a struts Global forward using RequestDispatcher.
I tried passing struts global forward , but always I got page not found
error . I can creat
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 mu
Can I include multiple .do's using request dispathcer include?
or can I have
<%request.getRequestDispatcher("/action/budgetInformationRead.do?form=ndsp:budget.Information&object.ndsp:sf.budget=811").include(request,response);%>
multiple times.
like
Can I include ".do"using jsp include ?
Thanks & Regards
Michael Jouravlev <[EMAIL PROTECTED]> wrote: On 1/31/06, temp temp wrote:
>
>
>
> Can I include multiple .do's using request dispathcer include?
Sure. Be careful wit
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
So only one logic equal will be true but not both .But when I call this
js
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
I am using struts 1.1
I using logic equal tag to check whether a page context attribute value.
here is my code
So only one logic equal will be true but not both .But when I call this
jsp in the browser I get
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
In the above target can I cal
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 bro
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
searchResultMapIte=Arrays.asList(searchResultMap.keySet().toArray()).list
OTECTED]> wrote: 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 ano
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 thi
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
e time for request scope.
> Are you setting
> redirect="true"? 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
>
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 Yaho
; Is that correct? If so, on the jsp, in the link to
> your action, add that
> parameter as well. Instead of just
>
> use
>.
>
> Hope this helps,
> Dhanashree.
>
> -Original Message-
> From: temp temp [mailto:[EMAIL PROTECTED]
> Sent: Th
request attributes while 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
>
>
>
should 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(&
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 pa
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 spam
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 re
I am using jsp include to include a jsp in a jsp.
+
I want to pass dynamic value to name attribute is this
possible.
"
value=<%"string from an object"%>/>
I want to pass property of a bean for the value of
name attribute .How can I acheive this.
thanks®ards
___
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 & re
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 s
ad, isn't 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 .
<[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 d
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 metho
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
rep
I would like to retrieve message from application
Resources property file and save it into a bean in a
jsp.
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 p
I wantindex of substring from a string . I would
like to acheive this using jsp tags. I found
jakarta taglib countMatches tag which would print
no of times substring is present in the
string.Rather than printing I want to capture the
output from this jsp tag into a variable .This tag
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.
404
default.jsp
In Internet explorer I get the page
thanks & regard
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.
404
default.jsp
So when I try to acess any unkn
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 for
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
Yes I have multipart/form-data in my jsp .
--- Laurie Harper <[EMAIL PROTECTED]> wrote:
> What does your tag look like? Are you sure
> you've specified
> method="POST" and enctype="multipart/form-data"?
>
> L.
>
> temp temp wro
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() {
ublic 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, 2005 10:37 AMTo: user@struts.apache.orgSubject:
how to represent ne
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?
>
sage ---
What, it does not work? How about setting form name explicitly:
You have defined the formbean in the struts config, have you?
Michael.
On 9/8/05, temp temp <[EMAIL PROTECTED]> wrote:
> This is my jsp
>
>
>
>
>
>I want input textfield
tter just in case, is it called?
Michael.
On 9/8/05, temp temp <[EMAIL PROTECTED]> wrote:
>
>
> here is my struts config
>
> type="com.bankerssystems.pac.onlinetrans.service.forms.ServiceSelectionForm">
>
&g
ublic (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
[Invali
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 t
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 CL
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 s
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.
<%=ramQuestionsDocument%>
I am trying to use jstl request tag to save an
object into request scope.
As per the docs syntax is
AAbb
I want to put an object rather than a string in the
request.How can I acheieve this?
thanks®ards
__
Yahoo! Music Unlimited
Acces
Is there any free jsp debugger plugin for eclipse ?
miro
-
Never miss a thing. Make Yahoo your homepage.
Is it possible to copy nested properties from one bean to another using
beanUtils?
-
Never miss a thing. Make Yahoo your homepage.
I usally use scriptlet in jsp to set some object in request is there a way tro
do this using any tag library
instead of this
<%request.setAttribute(CustomReviewFormflowAction.IReviewFormFlowProperties.ATTRIBUTE_REVIEW_FORM_SECTION,vReviewFormSectionHeader);
%>
can I use any exsisting taglibra
Is there a way to specify welcome page through struts-configration like when
a request comes to my application can I redirect him to login.do ?
__
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.ya
my application uses container managed security , j_security_check,
we create session before user login so i dont want to call
session.invalidate
if users wants to logout is there anything i can do to logout user ?
-
Be a better friend, newshound, and kn
is there a way my application gets notified of successful login using
j_security_check ?
-
Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now.
My struts action class forwards to view which has form tag (html form
tag)
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
My page uses this definition. In my jsp I want to capture the value of title
in a bean
How to?
Thanks & Regards
Miro
-
Got a little couch potato?
Check out fun summer activities for kids.
I have a jar file it has the follwing structure
META-INF
lib
com
This is my manifest.mf file.
Manifest-Version: 1.0
Main-Class: project.converter.Test
Class-Path:
lib/converter-actions-xsd.jar;lib/commons-lang-2.3.jar;lib
Note: forwarded message attached.
-
Now that's room service! Choose from over 150,000 hotels
in 45,000 destinations on Yahoo! Travel to find your fit.--- Begin Message ---
I have a jar file it has the follwing structure
META-INF
lib
Note: forwarded message attached.
-
Choose the right car based on your needs. Check out Yahoo! Autos new Car
Finder tool.--- Begin Message ---
After I upload the file I want to check the file for virus .Are there any open
source virus scanners which I
Note: forwarded message attached.
-
Be a better Globetrotter. Get better travel answers from someone who knows.
Yahoo! Answers - Check it out.--- Begin Message ---
After I upload the file I want to check the file for virus .Are there any open
source virus
I am struts using fileupload I want to scan to uploaded -files .
Thanks
Miro
Al Sutton <[EMAIL PROTECTED]> wrote: I'm afrid this mailing list focuses on
development with Struts
(struts.apache.org). Can you tell me how your question relates to the struts
framework?
-Original Message-
Fro
I want to scan files for virus after upload .Are there any open source java api
available .
Thanks
Miro
-
Get your own web address.
Have a HUGE year through Yahoo! Small Business.
Is there any best practices to avoid long list of parameters .
Thanks
Miro
-
Building a website is a piece of cake.
Yahoo! Small Business gives you all the tools to get online.
How can I know whether a class is already loaded ?
or if I call class.forname(Some class name) twice will there be any
problems ?
Thanks
Miro
-
Need a vacation? Get great deals to amazing places on Yahoo! Travel.
al <[EMAIL PROTECTED]> wrote: Miro:
You can call Class.forName() as many times as you
like without a problem.
Neil
--
Neil Aggarwal, (832)245-7314, www.JAMMConsulting.com
FREE! Eliminate junk email and reclaim your inbox.
Visit http://www.spammilter.com for details.
-Original Me
My application has several modules (several struts-config files )and
each module has its own application.resources files.
How to handle multiple application.resource files ?
Sairam
-
Luggage? GPS? Comic books?
Check out fitting gift
I have several struts-config-xml files .I mapped them in my web.xml.
Each struts-config has its own application-resources.
Action servlet mapping in web.xml
action
org.apache.struts.action.ActionServlet
In my jsp I use JspWriter to write my page content .I can write lot of static
data but I cannot write dynamic content like scriptlet or tag library ie even
if I write tag library or scriptlet it will not be executed .Is there any
solution for this ?
Miro
---
in this case is there is no way to invoke jsp compiler or is there any
workaround for this problem ?
Miro
Antonio Petrelli <[EMAIL PROTECTED]> wrote: 2007/9/12, temp temp :
> In my jsp I use JspWriter to write my page content .I can write lot of
> static data but I cannot w
Petrelli <[EMAIL PROTECTED]> wrote: 2007/9/12, temp temp :
>
> in this case is there is no way to invoke jsp compiler or is there any
> workaround for this problem ?
Do you want to invoke a JSP compiler inside a webapp? If it is possible,
surely it is not portable.
I suggest you to
What if I use Iframe I tested it it worked do you see any problems using
iframe ?
Miro
Antonio Petrelli <[EMAIL PROTECTED]> wrote: 2007/9/12, temp temp :
>
>
> My applications writes html out of an xml file.this xml has feilds
> with there presentation type.This field e
miro
Antonio Petrelli <[EMAIL PROTECTED]> wrote: 2007/9/12, temp temp :
>
> What if I use Iframe I tested it it worked do you see any problems using
> iframe ?
What do you put in the iframe?
Antonio
-
Take the Internet to Go: Ya
>
>
>
>
>
>
In my resource Iinsteand of
I used
and in this jsp I used
.
This way i can write all my dynamic stuff in a in a jsp and call that jsp in
iframe.
miro
Antonio Petrelli <[EMAIL PROTECTED]>
how can map all request to struts action servlet ?
will this work
/*
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 expla
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.
SearchResultsFilter.CheckIn
com.reisys.fema.ndsp.web.filter.SearchResultsF
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 re
Note: forwarded message attached.
Blab-away for as little as 1¢/min. Make PC-to-Phone Calls using Yahoo! Messenger with Voice.--- Begin Message ---
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.
perhaps we need an
auto-responder!
Rob
Philihp Busby wrote:
> No.
>
> When people have a problem with back buttons, 95% of the time they are
> either doing one of the following:
> - Confusing the GET and POST methods and their intended purpose with
> forms.
> - Abusing c
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 th
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 s
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 th
* /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 s
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 sa
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 withou
1 - 100 of 140 matches
Mail list logo