Dear Hibernate Users,
I want to write a component or hopefully find one if there is any that can
create a Swing table model based on query results . I could achieve this
using resultset metadata (jdbc brute force way) . And I want to use
Hibernate to do the same .
But the difficulty is Hibernate
JSTL users,
Please note that project 'jstl-spec-public' has just been launched at
java.net. The goal is to make as transparent as possible the work
being done on the JSTL spec.
More details in my blog at http://weblogs.java.net/pub/wlg/1405.
Thanks,
-- Pierre
-
Ich werde ab 11.06.2004 nicht im Büro sein. Ich kehre zurück am
01.07.2004.
Ich werde Ihre Nachricht nach meiner Rückkehr beantworten.
Während meiner Abwesendheit werde ich von Peter Eimann vertreten.
* * * * * * * * L E G A LD I S C L A I M E R * * * * * * * *
This e-mail is destined for th
Title: RE: Request object
I got the fetching scheme
Its
But other problems remains, how to tell
jsp:include tag that pick the actual value from resource bundle for value="${global.commandinformation.title1}"
/>
From: Naresh Sharma
Sent: Friday, June 11, 2
Title: RE: Request object
HI Bill,
I am sorry I didn't get it.
Anyway let me tell you the scenario.
I am passing parameter from my main jsp file to include jsp using the following scheme.
First thing, I am not sure if any Struts tag is there for above statement. Using fol
Title: RE: Request object
I am displaying this parameter value in HTML
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 11, 2004 1:31 AM
To: Struts Users Mailing List
Subject: Re: Request object
What are you trying to do based on the paramet
Same answer as your other question except use instead of
Using logic iterate
Using JSTL...
Niall
- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, June 11, 2004 2:28 AM
Subject: hidden checkboxes
> Is there a way to render
Is there a way to render a portion of a collection (multibox) as hidden input
tags instead of rendered checkbox input tags?
thanks
chris
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PR
The logic iterate tag has "offset" and "length" attributes which you can use
to control display subsets to a collection/array.
So if you wanted to show the second page of 10
If you are using jstl then then tag has "begin" and "end"
attributes
N
I have found an example on the net where a LabelValueBean array and a string
array are encapsulated inside a custom ActionForm object giving the user the
ability to select checkboxed values and store the "values" behind the scene
with labeling each checkbox with the LabelValueBean's label propert
Your iterate will store each element in your userIds[] as a page scope
variable with the name "foo". So the selects need to point to that.
However the tag either needs to point to a bean's property
(rather than a String) or have its value attibute set. If you're using jstl
you could set the value
will you post a copy of your struts-config.xml file? I suspect there's
something missing on it.
On Thu, 10 Jun 2004 16:44:29 -0400, David Meyer <[EMAIL PROTECTED]> wrote:
> I have a war file that I am trying to deploy on Weblogic 8.1. I am able to
> deploy and access jsp's within the WAR file. H
I have a
In my jsp I have a Form object which contains
String[] userIds
which is correctly populated with a list of userIds
I want to display each of this in a list of select
boxes (one select box for each element of String[]
userId)
I have the following code in my jsp
Martin,
The tile was defined in her included data with dot notation
not slashes. I use dot notation myself so I know she's not
crazy. Why did you suggest using slashes in the forward
path when she has a tile defined with dots/periods?
Regards,
David
-Original Message-
From: Martin Gaint
Sounds like you have a security realm on WebLogic that is causing this.
Is this a fresh install?
-Original Message-
From: David Meyer [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 10, 2004 1:44 PM
To: [EMAIL PROTECTED]
Subject: Struts, War files, and Weblogic
I have a war file that I am
Can any one please look into the following error and tell me why i am
getting that.
I am using strust upload in weblogic
Jun 10, 2004 2:41:47 PM
org.apache.struts.upload.CommonsMultipartRequestHandler
handleRequest
SEVERE: Failed to parse multipart request
org.apache.commons.fileupload.File
I have a war file that I am trying to deploy on Weblogic 8.1. I am able to
deploy and access jsp's within the WAR file. However, when a Struts action
is requested, i.e. http://server/someAction.do, I get the following
NullPointerException:
java.lang.NullPointerException
at
org.apache.struts.act
Personally, I think this would be more a function of
(1) the application server/container that you are using
(Tomcat/JBoss/WAS/...) and
(2) the hardware/clustering etc.
Also, you need to do some additional analysis on expected number of
users, estimate how much data will be held in the session,
Use --
this will create a page-scoped variable and a scripting variable.
Complete details can be found at:
http://jakarta.apache.org/struts/userGuide/struts-bean.html#parameter
Naresh Sharma wrote:
HI,
In one of my include JSP I wish to fetch a particular request attribute
which was set by main
Well, with most of the applications I have written, all or part of the
form (sometimes hidden fields) need to be populated before the form is
displayed. I prefer to keep my forms fairly stupid value objects as
opposed to using smart getters and setters in the ActionForm that access
the back-end
Hi,
Can any one please help me with the following error
Jun 10, 2004 2:09:24 PM
org.apache.struts.upload.CommonsMultipartRequestHandler handleRequest
SEVERE: Failed to parse multipart request
org.apache.commons.fileupload.FileUploadException: Processing of
multipart/form-data request failed.
I think I've tracked down my offending code to one of
the properties of my bean. getSiteList() uses iBatis
to get information out of our database. Do I need to
do anything special in terms of making those
supporting calls/classes Serializeable?
public LabelValueBean[] getSites() {
Don't know if this is a "good" or "bad" answer.
Serialization is extremely important to us because of the clustering
solution we use. We have to ensure objects stored in session implement the
serializable interface so each machine in the cluster can stay in synch with
each other and they do that
I have a question that I always thought of for such situations. It is
adviesd to have 2 action mappings as Bill suggests for such situations, one
that sets up the form with validate=false
And the next that handles the form POST. Why is that?.
In my ActionForm I look for a condition which tells me i
using JSTL:
HTH
Avinash
-Original Message-
From: Naresh Sharma [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 10, 2004 10:13 AM
To: Struts Users Mailing List
Subject: Passing parameter : include
HI,
Please let me know equivalent struts tag,... I guess its bean:
What are you trying to do based on the parameter?
A few days ago someone posted code to calculate the
size of a user's session (very helpful! thank you).
According to that code's serializiableTest method, the
first version of the SearchForm bean below serializes
fine while the second doese not.
I thought as long as a no argument constructor was
p
Hi,
I want to use Struts to automatically populate the
formbean data to the user's form. It seems that I have
to use the html:form tag? Then I need to specifiy an
"action" within the tag?
But if I want to define this tag in a tiles template,
then the action needs to be different for each
differen
Much better, good one Rick.
Thanks everyone.
James.
Rick Reumann wrote:
Would this work for you with JSTL? You probably want to throw in a
test for not empty also.
..
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For
Hi,
Just wondering if there have been any scalability and benchmarking
studies done on struts. I am trying to figure out if struts would scale
out well if the number of users in a system grew rapidly, starting from
a small user base.
I would appreciate any comments, suggestions or pointers.
thank
You can check this
http://jakarta.apache.org/struts/userGuide/struts-bean.html but could
not figure out solution for your problem :-(
V.K.Ram
www.m7.com
NitroX for Struts
-Original Message-
From: Naresh Sharma [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 10, 2004 10:13 A
Set validate="false" on the Action that forwards to the JSP containing
the form. Set 'validate="true"' and set 'input="/myJsp.jsp"' for the
action that processes the form.
Tom Ansley wrote:
Hi all,
I am trying to use a dynaActionForm. The problem I am having is that
when a user requests an act
> From: Tom Ansley [mailto:[EMAIL PROTECTED]
> How do I go about getting it so that the first time the
> action is called the validate() method is not called?
http://jakarta.apache.org/struts/faqs/newbie.html#avoidValidate
I use LookupDispatchAction so I don't have separate actions. Instead,
i
Hi all,
I am trying to use a dynaActionForm. The problem I am having is that
when a user requests an action which has a dynaActionForm attached to it
the first page the user gets from the action is a page which shows all
the errors that the user needs to correct.
Basically the form is being va
HI,
In one of my include JSP I wish to fetch a particular
request attribute which was set by main jsp page
<%
HttpServletRequest httpRequest =
(HttpServletRequest)request;
String header = httpRequest.getParameter("header");
%>
Right now I am do
HI,
Please let me know equivalent struts tag,… I guess its
bean:include but I am not sure how to pass parameters(struts equivalent of jsp:param)
to this.
Can you please suggest good online resource on struts tags.
Regards
naresh
-
Hi,
I am getting the following error while I am using struts file upload.
org.apache.commons.fileupload.FileUploadException: Processing of
multipart/form-data request failed. EOF after reading only: '0' of: '2227'
promised bytes, out of which at least: '0' were already buffered at
org.apac
I've just installed a simple struts application, from WSAD to WAS5.1.
Whe I try to post a request, it fails with a page can not be found.
Does anybody have any ideas ?
Seems like a problem with the ActionServlet, or the *.do mapping to the
ActionServlet.
Best Regards
Alan
Seems like a lot of people are asking a very similar question the past few
days, including myself! :)
One POSSIBLE approach is to creats a Struts plug-in. In that you can get
access to the ServletContext through the ActionServlet reference that is
passed in by Struts. I THINK that will give y
I have a struts application that makes use of an email service layer.
The email service provides a merge facility (via Velocity) and a
delivery facility (via JavaMail).
Typically, the application invokes the mail service within a struts
action, where it has access to the request to get the rel
Hi
You are missing to close the html:img tag (The tag "html:img" should end
with "/>".)
Empty tags: tags do not have Body - like or
Non empty tags : tags with body tag Untitled Document
V.K.Ram
www.m7.com
NitroX for Struts
-Original Message-
From: Caroline Jen [mailto:[EMAIL PROT
http://tinyurl.com/yqv2v
http://jakarta.apache.org/taglibs/doc/random-doc/random-1.0/index.html
"
The Random tag library creates random strings and
random numbers. You may specify a set of allowable
characters as well as the length for randomly
generated strings. You may specify a range of
allowa
Struts console allows you to view in a graphical format the the Struts
configuration XML files. To do what you want to do I would use the
following step-by-step process -- forgive me if you have already
performed some of these steps.
1. Read the Struts User Guide
2. Read over the Struts tags --
Thanks for your replies,
Setting the filter did the trick
CH
-Original Message-
From: Joe Germuska [mailto:[EMAIL PROTECTED]
Sent: 10 June 2004 16:12
To: Struts Users Mailing List
Subject: RE: Application Resources Question
>> >help.info = First sentence of help. Second sentence Thir
>help.info = First sentence of help. Second sentence Third etc...
The tag is coming out as text on the page and in the source it is
translated as
This is a side-effect of using bean:write or c:out. Both apply
filtering to protect you when you use literal values which have
special mea
My bet is its the way you are displaying the messages - are you using
and ?
If so set filter="false" on the tag.
Niall
- Original Message -
From: "Ciaran Hanley" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Thursday, June 10, 2004 3:10 PM
Subject: RE
Can't you use "" ? Setting your filter attribute to true or false will
change the rendering of HTML tags.
Danilo Gurovich
Manager, Web Development
LowerMyBills.com
[EMAIL PROTECTED]
2401 Colorado Ave., 2nd Floor
Santa Monica, CA 90404
(310) 998-6412
-Original Message-
From: Ciaran
No experience with this, but maybe worth a look.
http://sourceforge.net/projects/jguard
Thanks,
Yuanbo
-Original Message-
From: Amin Lalji [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 10, 2004 9:55 AM
To: 'Struts Users Mailing List'
Subject: Pluggable User Security Framework
Hello
ByteArrayOutputStream baos = new ByteArrayOutputStream();
PrintStream ps = new PrintStream(baos);
ps.print(new String(returnStr));
ServletOutputStream sos = response.getOutputStream();
baos.writeTo(sos);
sos.flush();
sos.close();
Then return null ActionForward in your action method.
Thanks,
Yuan
Hmm... Maybe someone smarter than me can say for sure, but I'd be willing to
bet that ActionMessages can be textual messages only. This would seem to be
what your experience indicates.
One thing you could do is set your messages as attributes of your
ActionForm, then display them from there wi
Not directly. If you're using JSP 2.0, you can create an EL function to proxy
access to java.util.Random:
<%@ taglib prefix="rand" uri="http://dotech.com/random"; %>
${rand:nextInt(random, 10)}
${rand:nextDouble(random)}
Another approach would be to create a JavaBean to proxy access to Random:
Thanks for your reply.
I'm using struts 1.1. I'm retrieving the values through an action class. The
option value is passed from a jsp and the class looks up the corresponding
resource.
For example somePage.jsp?q=info will look up the help.info resource in the
ActionClass
ActionMessages messages
Hello All,
Just wondering if anybody has come across an Open Source Pluggable User
Authentication Frameworks that integrates well with struts... nothing
fancy... just user login/password, tombstone information, group levels
etc...
Thanks
I just tried this, and the get rendered properly and I get linebreaks.
What version of Struts are you using? What code is in your JSP to display
the message resource?
From: "Ciaran Hanley" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: "Struts User Mailing
That's good info, thank you! I was suspecting this was an issue that arises
in a distributed environment and probably isn't quite as critical on a
single server. I think the thought of keeping session as small as possible
is ALWAYS a good idea, but my suspicion is that it only really becomes v
Hi all,
I know this is not a JSTL list, but maybe someone can tell me, if there
is a possibilty to get a random number with a JSTL tag. Best would be to
have min and a max value. If this doesn't exist, I think about wrtiting
such a tag for me. But I don't have to do this, if it still exists. ;-)
Hi,
I am trying to format some text so that it appears on separate lines so I am
using the tag in my ApplicationResources.properties file.
help.info = First sentence of help. Second sentence Third etc...
The tag is coming out as text on the page and in the source it is
translated as
The problem I think is that you are never writing your output to the
Response object. I'm guessing you think that setting the filename in the
header as you are doing will be sufficient, but it's not. Try something
along these lines:
ServletOutputStream out = response.getOutputStream();
ba.wri
Miquel,
All you are doing is writing out a file on your server and then sending back
an empty response to the user - if you want to download the file, you need
to write it out to the response.
Try creating your file by writing it to a ByteArrayOutputStream, rather than
FileOutputStream
ByteAr
Return Receipt
Your Downloading a file from an Action class.
document
:
The interesting thing is that you're not specifying a "name" attribute for
your select tag. Will the page compile correctly and render accurate
results? I would think you would have name="mySpeciality" as part of the
select tag. If you were using "mySpeciality" as the name value, then the
Hi!
I try to download a file from an action class to the user PC. That's what I
do in the action class:
String Path = "C:" + java.io.File.separator;
//Location of the file
String FileName = Path +
> From: Pilgrim, Peter [mailto:[EMAIL PROTECTED]
>
> > -Original Message-
> > From: Andrew Hill [mailto:[EMAIL PROTECTED]
>
> >
> > Any Expresso users out there?
> > Id be interested in hearing your comments and evaluation of
> > this framework.
> >
> > It uses Struts as the basis for
Regards,
Martin
- Original Message -
From: "Caroline Jen" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, June 09, 2004 11:29 PM
Subject: Error Message: Tile path=".thread.Form" Does Not Start with a "/"
Character
> I am using "tile". When I try to display a JSP page,
> I
Hi Nick,
I am able to get the indexId Using IndexId Attribute in iterate tag but i am asking
How to find the particular select box name from Iteration tag.
For Example Iterate tag contains 6 select list boxes and now i am find
out the particular select box name from the iterate tag.
Not having any information about what you're trying to do, its hard to give
you an answer. I think that your answer will start with using the indexId
attribute on the the iterate tag. Where the answer goes from there depends
on what you're doing.
Nick
|-+---
Hi,
i want to format a date with the message ressources bundle depending on the locale. Is
there a possibilty to do that?
I found something like this
app_de.properties
welcome.message=bla {0] blub {1,date,mm:HH dd.MM.}
app_en.properties
welcome.message=bla {0] blub {1,date,HH:mm dd-MM-y
Hi ,
I am able to get the index but i am asking How to find the particular select box name
from tag.
For Example Iterate tag contains 6 select list boxes and now i am find out the
particular select box from the iterate tag.
How to find out select Box .
Thanks for
Hi Srinivas,
The way I solve this is to use the following code in the Action - but true I
have only used indexed with buttons, the principle should be the same
though.
for (int i=0; i
}
Hope this helps,
Terry
From: Srinivas Rao <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL P
Use the indexId attribute from the nested:ietrate tag
Thanks,
Satish
-Original Message-
From: Srinivas Rao [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 10, 2004 2:18 PM
To: Struts Users Mailing List
Subject: How to Find Index Value
Hi Friends,
I am using tag. Here is the code i a
Hi Friends,
I am using tag. Here is the code i am writing
What my problem is, how to get the index of select list in the tag ...
I am able to getting the select lists but i am not getting the index of select lists.
Please Help me ..
Thanks
One person said me that it could be possible to use Struts Console.
Has soemone already used this tool to do that ?
-Original Message-
From: Mark Lowe [mailto:[EMAIL PROTECTED]
Sent: 09 June 2004 23:03
To: Struts Users Mailing List
Subject: Re: HTML pages convert to Struts/JSP pages
well
jGuard v0.50 released!
i am pleased to annouce the first release(v0.50) of the java security library called
jGuard(http://sourceforge.net/projects/jguard/).
this library is build on top of jaas, for J2EE web applications.
his goal is to provide for webapp developers, an easy way to manage authent
As far as I know...
The recommendation to keep the session below the 4-5 kB limit comes from
clustering.
When you build a cluster for your webapp and specify "session failover",
meaning that a session should be taken over by a running instance in the
cluster if the original instance crashes, the
74 matches
Mail list logo