HI all,
I want to populate html :text from someBean (request scope)
and also want to associate that html:text with FormBean.
My jsp page is like this
Title :
" >
I am gett
Am I doing something wrong? I have <%@ taglib
uri="/WEB-INF/struts-html.tld" prefix="html" %> in my page, I have
tag, and I have . I would like to use relative
address for a action mapping, by using in the , but
looks like it does not work.
Struts 1.2.4 (? I guess)
Michael.
---
This may help.
http://itextdocs.lowagie.com/tutorial/general/webapp/
thanks - dave
David Thielen
303-499-2544
www.windwardreports.com
-Original Message-
From: Frank W. Zammetti [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 03, 2005 9:49 PM
To: Struts Users Mailing List
Subject: Re
Cool, thanks!
At work I actually have a rather lengthy document listing all the
Acrobat issues I found along the way, and the solutions to it... quite a
few... I'm going to add this to it as a miscellaneous note, just so I
don't forget for next time (and, oh, I *know* there's gonna be a next t
> Really? You found that to be necassery? What specific problem does it
> solve (which of the MANY Acrobat problems I mean? :) ).
>
I belive that it had to do with the upgrade from the 5.x to 6.0.2 reader com
controls. Version 6.0.2 would not run as an inprocess server. It wanted to
fire u
Well, now I'm going to have to go update my blog to 1.3 just to beat you
both :)
(Nah, doesn't even REMOTELY count as a production app, I know! :) )
Frank
Wendy Smoak wrote:
From: "Joe Germuska" <[EMAIL PROTECTED]>
... my most recent app (which may make history this weekend as the
first Str
Really? You found that to be necassery? What specific problem does it
solve (which of the MANY Acrobat problems I mean? :) ).
I ask because I spent probably a month dealing with PDF generation
issues and I just last week managed to get everything working for
everyone (it was one of those "it
From: "Joe Germuska" <[EMAIL PROTECTED]>
... my most recent app (which may make history this weekend as the first
Struts 1.3.x based webapp to go into production? ;-) )
You'll beat me by a few days, then. ;) I have one out in test that I had
originally planned to leave at 1.2.7... but what
> Excellent! I wouldn't have thought that would work, based on how
> screwed up the Acrobat plug-in generally is, but that's excellent!
>
Well, I think there was better than a week spent one line of code, actually one
char '\r'. You are not alone
response.setContentType("application/pdf
Interesting method signature:
public ActionForward exceute(ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response)throws Exception{
Shouldn't that be "execute" not "execeute" ?
Regards,
David
-Original Message
Excellent! I wouldn't have thought that would work, based on how
screwed up the Acrobat plug-in generally is, but that's excellent!
Frank
[EMAIL PROTECTED] wrote:
I've also seen it done using the html embed tag. We used itext to deliver a fillable pdf. You can see it action here (http://www
HI,
I am trying to solve thi sproblem from last 2 days but did not get any
success.Except this all the actions are getting called and working fine.
Action Class
package site;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.Statement;
import javax.servlet.http.HttpServl
At 9:44 PM -0400 8/3/05, Frank W. Zammetti wrote:
Hi Rafael,
The only way I can think of to actually "embed" a PDF, or at least
to give that appearance, is to use iFrames.
It works like a charm; I'm using the technique in a couple of places
on my most recent app (which may make history this
I've also seen it done using the html embed tag. We used itext to deliver a
fillable pdf. You can see it action here (http://www.sos.state.co.us/biz).
public ActionForward loadBytesIntoStream(
ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse
iText just generates the PDF on the server-side, the display issue on
the browser would still be the same because you are returning a PDF
stream back (or redirecting to a temp file, either way) and the browser
recognizes that and passes it to the plug-in for display (a plug-in
which, by the way, is
you can use "itext" to realize?
2005/8/4, Frank W. Zammetti <[EMAIL PROTECTED]>:
> Hi Rafael,
>
> The only way I can think of to actually "embed" a PDF, or at least to
> give that appearance, is to use iFrames.
>
> The Acrobat plug-in takes over the entire window it is shown in, which
> when fr
Hi Rafael,
The only way I can think of to actually "embed" a PDF, or at least to
give that appearance, is to use iFrames.
The Acrobat plug-in takes over the entire window it is shown in, which
when frames aren't involved is the entire client area of the browser.
So, using frames should, in
Hi Folks, I know my doubt is out Struts topic but I want to use ur
xperiencie in my problem.
I want to show a report in PDF file inside a JSP, inside a table for
example. I'm surfing on the web and all sites when try to show PDF they link
to this file and the PDF is showed in the entire window
http://www.theserverside.com/news/thread.tss?thread_id=35233
If Rod Johnson have the same position on DTOs as me, should I be twice
confident in my point of view? ;-)
Michael.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For addi
I tried this, but got a null error at the end of the :
<%-- Need to show error popup --%>
<%-- define putList dynamically --%>
<%-- iterate through error messages --%>
<%-- add
Rick, I'm sure you already have, but just in case you haven't...
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/logging.html
It provides a pretty detailed explaination of how to configure
cross-context logging using either log4j or java.util.logging package.
BTW, Tomcat 5.5 uses Commons Logg
Fount the problem. I had in my tile. When I removed it it
worked. Not sure why that causes problems. That didn't have anything to
do with the link I was clicking. thanks
/Jeremiah
Laurie Harper wrote:
Jeremiah Johnson wrote:
I have an action mapping that looks like:
If I click
> Ironically, the original code that I was using had getParameter() as well :)
>
> You are very welcome! FYI, I posted this on the Wiki on the Struts
> Solutions page... it might be worth noting that getParameter() can be used
> when doing redirects... feel like doing the edit Konrad? :)
;-)
Th
2005/8/3, Laurie Harper <[EMAIL PROTECTED]>:
> Huh? From the documentation: "page - Expose a specified item from the page
> context as a bean."
yes, I saw it, if you read deeply my post you'd notice it, but the
lets me retrieving only some objects, not the exception.
I need some tag which let me
Thank you for your advices. Following them I decided to resign from changing
encoding. Instead I have found an Eclipse plugin (Properties Editor which can
be
downloaded at http://eclipse-plugins.info) which allows easy edition of
properties files. It works fine and solves my problem.
Best reg
I just uploaded the slides from my OSCON talk this afternoon,
comparing several web frameworks on how they implement six major
architectural features. Several people have asked for them, so here's
a link:
http://people.apache.org/~craigmcc/oscon_2005_web_architectures.pdf
They are also on the
I should have distinguished between session-scoped and request-scoped forms. It
is true that implementing reset would be redundant in a request-scoped form.
Erik
-Original Message-
From: Wendy Smoak <[EMAIL PROTECTED]>
Sent: Aug 3, 2005 5:28 PM
To: Struts Users Mailing List
Subject: Re
I'd worry about someone who doesn't know where Hungary is even without
looking it up...
David Thielen
303-499-2544
www.windwardreports.com
-Original Message-
From: Dave Newton [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 03, 2005 2:24 PM
To: Struts Users Mailing List
Subject: [OT]
From: "Chris Decker" <[EMAIL PROTECTED]>
New to struts so sorry for the simple questions.
I have a html: checkbox struts tag and I want to have the checkbox
checked initially similar to the checked attribute in a traditional
INPUT statement.
Can you do this? I've looked everywhere!
If it's a
If memory serves me, the way to do this is in your ActionForm's reset method.
This is where default values are specified when the form is initialized or
reinitialized.
Erik
-Original Message-
From: Chris Decker <[EMAIL PROTECTED]>
Sent: Aug 3, 2005 4:58 PM
To: Struts Users Mailing List
New to struts so sorry for the simple questions.
I have a html: checkbox struts tag and I want to have the checkbox checked
initially similar to the checked attribute in a traditional INPUT statement.
Can you do this? I've looked everywhere!
Chris Decker
-
The article is officially sheduled for tomorrow, but since it is
already in the right place with the right links, I thought that it is
OK if I shared the link with the Struts list folk :)
http://today.java.net/pub/a/today/2005/08/04/jspcomponents.html
I hope that the article better explains what
javabuddy wrote:
Sorry for the dumb question, where is HungaryIn Europe??? also in which
city is the job.
Perhaps asking the original poster off-line would be in order.
Also, speaking only for myself, I'd be wary of a web developer that
couldn't use the afore-mentioned web to figure o
Woodchuck wrote the following on 8/3/2005 4:12 PM:
anyway, that is strange that you don't have a
catalina..log file in your log folder.
I do have that file but I do not a catalina.out file, that Laurie
mentioned she had.
The problem is the catalina.timestamp.log file is not showing all th
At 3:48 PM -0400 8/3/05, Dave Newton wrote:
Dave Newton wrote:
I have a custom RequestProcessor that wants some initialization
values. If I use I'm assuming I need JavaBean
getter/setters (but I don't event know if that's true). Is there
(or can there easily be?) a catch-all for properties d
In the original SmallTalk MVC, the View does indeed update itself from
the Model, via the Observer pattern. The original MVC pattern is like
a loop.
But, a direct link between the Model and the View is not practical for
web applications, so we've modified MVC so that is more like a
horseshoe, with
oops i thought it was per app logging you wanted .. sorry read to
quickly as usual :p
anyway, that is strange that you don't have a
catalina..log file in your log folder. i do. my TC
is a straight install.
check your tomcat/common/classes folder. you should have a default
logging.properties fi
Sorry for the dumb question, where is HungaryIn Europe??? also in which
city is the job.
- Javabuddy.
-
People are conversing... without posting their email or filling up their mail
box. ~~112309993
Laurie Harper wrote the following on 8/3/2005 3:22 PM:
Depends how you start Tomcat. If you start it with 'startup.bat' or
'catalina.bat start' (i think that's right; the UNIX equivalent would be
'catalina.sh start') then console output will go to logs/catalina.out.
Hmmm... I'm starting it
Woodchuck wrote the following on 8/3/2005 3:32 PM:
hihi,
the default logging in TC 5.5 uses JDK logging (ie. java.util.logging).
you need to create and place a logging.properties file in your web
app's classes folder.
But this would be for specific application logging. I'm talking about
ju
Dave Newton wrote:
I have a custom RequestProcessor that wants some initialization
values. If I use I'm assuming I need JavaBean
getter/setters (but I don't event know if that's true). Is there (or
can there easily be?) a catch-all for properties defined like this
without a getter/setter?
Laurie:
Be careful about mixing query parameters and POST parameters.
I have had instances where the browsers do not give you the
query parameters that you specify on the action of the form.
It is safest to put all parameters in the form via hidden tags.
Neil
--
Neil Aggarwal, JAMM Con
hihi,
the default logging in TC 5.5 uses JDK logging (ie. java.util.logging).
you need to create and place a logging.properties file in your web
app's classes folder. the following is what i use (replace
"servlet-examples" with your web app name):
< copy from below this line >
handlers
Rick Reumann wrote:
Was using JBoss and now I'm using Tomcat 5.5 stand-alone for an
application I'm working on. I plop a war into webapps and it deploys
fine but problems with some JNDI lookup and all kinds of errors dump to
the console (Windows). What I'd like to know is how come I can't find
I'm all short bus today; apologies in advance :/
I have a custom RequestProcessor that wants some initialization values.
If I use I'm assuming I need JavaBean getter/setters (but
I don't event know if that's true). Is there (or can there easily be?) a
catch-all for properties defined like thi
That would prevent control ever getting to the error page, though. It's a
good alternative if you want to put your error handling in the page the
error comes from instead of centralizing it in an error page, though.
L.
Woodchuck wrote:
hihi,
yes there is. you can use the tag to wrap aroun
I need some code snippets please:
I'm trying to have a page popup a window that will display all the errors in
the first page.
For cleanliness purposes, and modularity, I will use a tile to this
code.
I will do this either by putting the errors in the session, or by getting
them from a dyna
Michael Jouravlev wrote:
On 8/3/05, EROL TEZCAN <[EMAIL PROTECTED]> wrote:
This is good for tag. But I want to add request parameters such as
If you submit the form using POST, then no, you cannot. In POST
request parameters are sent in a separate section, each parameter is
separated with ne
Speaking of Tomcat 5 here, not 5.5 . . .
catalina.out as I recall contained my System.out output. Can't remember if it
contained System.err output.
You can make things easier on yourself if you define a context.xml file for
your web app (see example included with Tomcat -- look in conf/host) an
Was using JBoss and now I'm using Tomcat 5.5 stand-alone for an
application I'm working on. I plop a war into webapps and it deploys
fine but problems with some JNDI lookup and all kinds of errors dump to
the console (Windows). What I'd like to know is how come I can't find a
log file that show
You can still decompile it. I am not aware of any technologies that
completely prevent decompilation. It is just harder to make sense of the
decompiled code when it has been obfuscated.
The Zelix home page has a nice short "here's what you get" look at what
decompiled code looks like if you wish t
hihi,
clicking on links (even on a page with a form) does *not* submit the
form at all. do not confuse this with the common
or using javascript to submit forms via document.forms[0].submit().
when you click on a link such as
http://www.mywebsite.com/myAction.do";>Click this link!
no extra info
javabuddy wrote:
Can you provide the city details???
Wow.
Which city?
Dave
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
javabuddy,
Check this link, http://struts.apache.org/mail.html, and read the
Guidelines section.
Ross
javabuddy wrote:
Can you provide the city details???
- Javabuddy
People are conversing... without posting their email or filling
Can you provide the city details???
- Javabuddy
People are conversing... without posting their email or filling up their mail
box. ~~1123091172949~~
roomity.com http://roomity.com/launch.jsp No sign up to read or search this
Rich Intern
hihi,
yes there is. you can use the tag to wrap around your entire
jsp page. on my pages i have something like this:
<%@ taglib uri="http://struts.apache.org/tags-bean"; prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html"; prefix="html" %>
<%@ taglib uri="http://struts.apache.
On 8/3/05, Amol Yadwadkar <[EMAIL PROTECTED]> wrote:
>
>
> Hi List,
>
> I have a form where all the action are provided by link.
>
> I am using DynaActionform so when I click on html:link I do not get
> the Dynaform populated for the next page
>
> But
>
> If I use use html:submit then it
--- Michael Jouravlev <[EMAIL PROTECTED]> wrote:
> On 8/2/05, Kent Boogaart <[EMAIL PROTECTED]> wrote:
> > I guess my question is: is the action form considered part of the model? If
> > not, what?
Struts does not provide anything for the model.
--
I've been in a position to train people in MVC before, and Struts in
particular, and I've used diagrams to do this... one of the things I've
always done in those diagrams is shown ActionForms straddling the space
between V and C, and DTOs straddling the line between C and M.
I think conceptually,
On 8/2/05, Kent Boogaart <[EMAIL PROTECTED]> wrote:
> I guess my question is: is the action form considered part of the model? If
> not, what?
Does it really matter, what you call it?
Officially action form is not part of the Model. Model is supposed to
reside in your own code, which you call fr
Amol Yadwadkar wrote:
Hi List,
I have a form where all the action are provided by link.
I am using DynaActionform so when I click on html:link I do not get
the Dynaform populated for the next page
But
If I use use html:submit then it happens as expected.
Can any one have solution for th
On 8/3/05, EROL TEZCAN <[EMAIL PROTECTED]> wrote:
> This is good for tag. But I want to add request parameters such
> as
If you submit the form using POST, then no, you cannot. In POST
request parameters are sent in a separate section, each parameter is
separated with newline.
Michael.
--
Tremal Naik wrote:
Hi,
according to the article which url is
http://java.sun.com/developer/EJTechTips/2003/tt0114.html
in case an exception is thrown by a web component a new implicit
variable named exception is put in the page context. The exception can
be retrieved by a scriplet (it works, i
[EMAIL PROTECTED] wrote:
Readingyourmind...now.
*sigh*
I was unsuccesful.
How ... to ... use ... onclick ... event ... to ... submit ... form ...
Click me to submit form and populate a DynaActionForm
- Dave
-
To
Readingyourmind...now.
*sigh*
I was unsuccesful.
-Dennis
javabuddy <[EMAIL PROTECTED]>
08/03/2005 11:52 AM
Please respond to
"Struts Users Mailing List"
To
user@struts.apache.org
cc
Subject
I am need the solution too...
Ineed the same, if you have fixed it can you post on
Ineed the same, if you have fixed it can you post on how??
- Javabuddy
People are conversing... without posting their email or filling up their mail
box. ~~1123084331689~~
roomity.com http://roomity.com/launch.jsp No sign up to read or se
I think this has me on the right track. I was using firefox. I tried
this with ie and it works fine. I'm clicking on a link that is an
to cause this. If I type the url the same thing happens.
There is javascript code that submits the page by clicking on a link
but it's not tied to the link I
> Hello all,
> Sorry for bothering this Struts list for my question which
> Is little off-topic, but I am trying to learn JSF (and move my existing
> struts-based applications to JSF), and by reading various materials, I
> found at least
> 2 different approaches for developing JSF-based apps
Hi List,
I have a form where all the action are provided by link.
I am using DynaActionform so when I click on html:link I do not get
the Dynaform populated for the next page
But
If I use use html:submit then it happens as expected.
Can any one have solution for the above issue.
Thank
Hi List,
I have a form where all the action are provided by link.
I am using DynaActionform so when I click on html:link I do not get
the Dynaform populated for the next page
But
If I use use html:submit then it happens as expected.
Can any one have solution for the above issue.
Th
On Wed, August 3, 2005 4:22 am, Konrad Billewicz said:
> It works very nice. I have only changed getAttribute() to getParameter()
> in
> order to use redirects. Thank you very kindly.
Ironically, the original code that I was using had getParameter() as well :)
You are very welcome! FYI, I posted
Hi,
what about
<%= StudentBean.getStudentName() %>
where the value of beanId in myBean is "5".
Regards,
Basudeb Acharya
Tata Consultancy Services Limited
Mailto: [EMAIL PROTECTED]
Website: http://www.tcs.com
EROL TEZCAN <[EMAIL PROTECTED]>
08/03/2005 06:00 PM
Please respond to
"
You can construct the url using c:url
or, if you preffer using struts tags, you can use
html:link paramId and paramName
Manuel
El mié, 03-08-2005 a las 05:13 -0700, EROL TEZCAN escribió:
> Hi ,
>
> I have a simple question.
>
> In a report page, I give a link on every record to show detail wit
This is good for tag. But I want to add request parameters such as
Thanks
Gareth Evans <[EMAIL PROTECTED]> wrote:
Or you could do it with a link (can be outside of a html:form)
test
This would generate:
test
Leon Rosenberg wrote:
> 1) yes, but then you can't use struts form-tags, otherw
[EMAIL PROTECTED] wrote:
Hi!
I would like my web-app to read in a *.properties file at startup (not for
i18n, but the good old
java.util.Properties, for example to get the e-mail address of the admin of
the web-app). So
I wrote a ServletContextListener which will load the properties-file and
sto
Or you could do it with a link (can be outside of a html:form)
<%= request.getParmeter("whatever") %>
test
This would generate:
test
Leon Rosenberg wrote:
1) yes, but then you can't use struts form-tags, otherwise no.
2) yes, if it's part of the action form.
regards
Leon
On Wed, 2005-08-
1) yes, but then you can't use struts form-tags, otherwise no.
2) yes, if it's part of the action form.
regards
Leon
On Wed, 2005-08-03 at 06:01 -0700, EROL TEZCAN wrote:
> It works fine. And two question :)
>
> Can we add request parameters to url directly without using hidden tag?
>
> Ca
It works fine. And two question :)
Can we add request parameters to url directly without using hidden tag?
Can we use instead of tag?
Thank you Leon.
Leon Rosenberg <[EMAIL PROTECTED]> wrote:
i thought you would make the last point alone...
[input] "/>
regards
leon
On Wed, 2005-08-0
Hi,
according to the article which url is
http://java.sun.com/developer/EJTechTips/2003/tt0114.html
in case an exception is thrown by a web component a new implicit
variable named exception is put in the page context. The exception can
be retrieved by a scriplet (it works, i tried it):
<%= excep
Hello all,
Sorry for bothering this Struts list for my question which
Is little off-topic, but I am trying to learn JSF (and move my existing
struts-based applications to JSF), and by reading various materials, I
found at least
2 different approaches for developing JSF-based apps
One appr
EROL TEZCAN wrote:
myId="5" is dynamic. Its value can be changed.
It is not working.
Leon Rosenberg <[EMAIL PROTECTED]> wrote:
[input]
in your form.
On Wed, 2005-08-03 at 05:13 -0700, EROL TEZCAN wrote:
Hi ,
I have a simple question.
In a report page, I give a link on every record
i thought you would make the last point alone...
"/>
regards
leon
On Wed, 2005-08-03 at 05:30 -0700, EROL TEZCAN wrote:
> myId="5" is dynamic. Its value can be changed.
>
> It is not working.
>
>
> Leon Rosenberg <[EMAIL PROTECTED]> wrote:
> [input]
> in your form.
>
> On Wed, 2005-08-03
myId="5" is dynamic. Its value can be changed.
It is not working.
Leon Rosenberg <[EMAIL PROTECTED]> wrote:
[input]
in your form.
On Wed, 2005-08-03 at 05:13 -0700, EROL TEZCAN wrote:
> Hi ,
>
> I have a simple question.
>
> In a report page, I give a link on every record to show detail wi
in your form.
On Wed, 2005-08-03 at 05:13 -0700, EROL TEZCAN wrote:
> Hi ,
>
> I have a simple question.
>
> In a report page, I give a link on every record to show detail with this
> code: (for example)
>
> "myAction.do?myId=5"
>
> Detail page is shown without any problem. When I submit thi
Hi ,
I have a simple question.
In a report page, I give a link on every record to show detail with this code:
(for example)
"myAction.do?myId=5"
Detail page is shown without any problem. When I submit this form to same
action, I cannot add myId parameter to myAction.do
Normally I can get my
Hi,
I had similar problems with Greek characters (ISO-8859-7). After loads of
research I found out that to work the property file needs to be Unicode encoded
(and in UTF8 preferably).
For example the String 'Φώτης' to appear in the web application has to be
encoded as \ux\ux and so on.
Hi Konrad,
It isn't even UTF, it's an older Java Properties file format:
http://java.sun.com/j2se/1.4.2/docs/api/java/util/Properties.html
You need to use native2ascii with something like
native2ascii -encoding ISO-8859-2 input.properties output.properties
it turns the non-ascii characters int
I'm unable to find an easy solution for my encoding problem with file
MessageResources.properties declared in struts-config.xml as:
File is encoded using ISO-8859-2 (Polish) while Struts interprets it as UTF. In
documentation I'm not able find any "encoding" property for this tag.
I, of cours
Hi,
We are looking for developers with good understanding of Struts and
Hibernate in Hungary and Romania.
If you are interested in please contact me at:
[EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additio
I guess my question is: is the action form considered part of the model? If
not, what?
I think the question's been asked (in a different way) a few days/weeks
ago. Here's what Frank W. Zammetti said about it :
"
The Model is something, conceptually, outside of Struts. Struts provides
nothing
besides obfuscated code is usually faster, because class names and
variable names are shorter and easier to load, and also debug info is
removed...
On Wed, 2005-08-03 at 07:28 +0100, Mark Benussi wrote:
> In answer to your question. Obfuscation is a way of compiling your source
> code so that it
Frank W. Zammetti wrote:
> The "typical" solution to this is a little bit of scripting on your page
> like so:
>
>
>
> function jumpToAnchor() {
> <% if (request.getAttribute("hash") != null) { %>
> location.hash = "<%=request.getAttribute("hash")%>";
> <% } %>
> }
>
>
>
I
Same problem here,
A form uses a submit button and the related action is called twice. This
was probably happening from the start of my project but I just found out
when I tried to make some changes and then found out that the second
time the incoming form is null so my app crashes if I try to so
93 matches
Mail list logo