Hi All,
My requirement is to generate a set of dynamic rows(with checkbox and combo
box) at client side using JSP and Struts 1.1.
As of now, i am generating the above stuff using java script.
How can i use Dyna Form to meet the above requirement (or) suggest me other way
if u have any solution
Hi Frank,
Doesn't the sessionCount get decremented regardless of whether the
session is being destroyed as the result of a regular logoff or
timeout as well as if it was a rejected logon (i.e., max sessions
already in use)? I dealt with this problem in the code I'm adding to
Java Web Parts t
I would like to create a page which gives shows User
Permissions for some website in form of Checkboxes
String Array listOfPerms => Permissions which are to
be checked
String Array listOfAllPerms => All the Permissions
I get a null pointer Exception : null Attribute name
I m not able to figure o
Hi!
I like the idea (pattern) of having actions named in a path/menu-like
way.
Say: /context/employees/emplyee?id=17
But: I'd like to have something more prettier:
Say: /context/emplyee/17
Or even more: /context/archive/1998/employee/tomasz/tasks/7
Can you point me where to look for this?
Tamas,
Doesn't the sessionCount get decremented regardless of whether the
session is being destroyed as the result of a regular logoff or timeout
as well as if it was a rejected logon (i.e., max sessions already in
use)? I dealt with this problem in the code I'm adding to Java Web
Parts tomo
One more thing I forgot in my earlier mail.
I used <[EMAIL PROTECTED] session="false" %> in appInUse.jsp
Tamas
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hi Rick,
Rick Reumann wrote:
David G. Friedman wrote the following on 7/27/2005 12:35 AM:
When a session is created, have the SessionListener update a session
count.
If the count is 2 or more then call
SessionEvent.getSession().invalidate()
to cancel the session. Then the session listener's
> I have a consumer Object that has an array of cards i.e.:
>
> consumer.java
>
> name
> address
> Card[]
>
> Card
> --
> cardNumber
> status
>
> Now, this is being displayed in the consumer screen, and this displays
> all the cards the consumer has. Also the card.status needs
I agree fully, but, unfortunately, I can't do a whole lot about it.
The databases were set up before I started on the project and I guess
the DBA was pretty hard nosed about changing from how he wanted it.
Oh well.
~ Andrew Tomaka
On 7/27/05, Michael Jouravlev <[EMAIL PROTECTED]> wrote:
> On
I solved this problem using a combination of a filter and a
SessionListener... I forgot it at work unfortunately, but it will be
added to Java Web Parts tomorrow. It allows you to limit the number of
sessions to any specific number, and deals with the issue you mention
with regard to the diffe
Yeah, I know... stop breaking my delusions :)
Dave Newton wrote:
Frank W. Zammetti wrote:
That fact that someone thought there was enough traffic to my projects'
site to warrant buying that domain is rather heartening :)
I don't think that's how it works--they just have sourceforget.
Sorry!
Hi I am banging sort of my head here
I am sort of new to struts (due to project requirements), in every
webapp you often have the problem of having to pass complex objects over
a handful of forms.
In JSP you only have the option of pushing the object into the session
and fill the data by h
Frank W. Zammetti wrote:
That fact that someone thought there was enough traffic to my projects'
site to warrant buying that domain is rather heartening :)
I don't think that's how it works--they just have sourceforget.
Sorry!
Dave
-
That fact that someone thought there was enough traffic to my projects'
site to warrant buying that domain is rather heartening :)
--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
On Wed, July 27, 2005 5:26 pm, Neil Erdwien said:
> And the awe
And the awesome thing is that there *is* a javawebparts.sourceforget.net
-- it is a generic e-commerce site that generates traffic by using
commonly-typoed URLs.
Jeff Beal wrote:
SourceForget - Put up your source and forget it!
On 7/27/05, Frank W. Zammetti <[EMAIL PROTECTED]> wrote:
Agh.
Thank Leon and Christopher for java hosting prices.
It seems it is more profitable in Europe. The US site Chris mentioned
uses Tomcat 5.
Leon, what java application softwares do you provide in addition to the
server softwares? Do you think add EJB support can increase your
profitability?
I am t
SourceForget - Put up your source and forget it!
On 7/27/05, Frank W. Zammetti <[EMAIL PROTECTED]> wrote:
> Agh. Troubleshooting a stupid PDF generation issue all day, my fingers
> just won't cooperate :)
>
> sourceforget... Maybe the French mirror site? ;)
>
> --
> Frank W. Zammetti
> Founder
David G. Friedman wrote the following on 7/27/2005 12:35 AM:
When a session is created, have the SessionListener update a session count.
If the count is 2 or more then call SessionEvent.getSession().invalidate()
to cancel the session. Then the session listener's Session destroy method
can decre
JSF is very nice for web applications that release on a more-than-quarterly
basis. The front-end gui widgets packed with it are nothing short of really
basic HTML coding that most good coders would blush at. Custom widgets need to
be developed for real clean front-end functionality, and MyFace
Agh. Troubleshooting a stupid PDF generation issue all day, my fingers
just won't cooperate :)
sourceforget... Maybe the French mirror site? ;)
--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
On Wed, July 27, 2005 4:44 pm, Dave Newton said:
Frank W. Zammetti wrote:
Have a look at my CacheControlFilter in Java Web Parts
(http://javawebparts.sourceforget.net). It should allow you to do exactly
this, at the path level.
Thanks, I'll check it out.
I visit the land of "sourceforget" quite often ;)
Dave
---
Have a look at my CacheControlFilter in Java Web Parts
(http://javawebparts.sourceforget.net). It should allow you to do exactly
this, at the path level.
--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
On Wed, July 27, 2005 4:36 pm, Dave New
Howdy,
As part of a struts-workflow-like requirement, I need to mark specific
actions (forwards or tiles, perhaps?) as non-cacheable.
All my tiles subclass a single base layout tile, so I could conceivably
put no-cache junk in there based on a tile property, although I kinda
hate to put that
On 7/27/05, Andrew Tomaka <[EMAIL PROTECTED]> wrote:
> I realized the
> problem was actually a bit more complex than I was making it. The
> database table I am editing requires two primary keys to make an entry
> unique (I'm a firm believer in a single PRImary key, but it wasn't my
> choice).
A
I really like your Javascript solution, Kevin. However, I realized the
problem was actually a bit more complex than I was making it. The
database table I am editing requires two primary keys to make an entry
unique (I'm a firm believer in a single PRImary key, but it wasn't my
choice). One of the
Interestingly, I found the same problem occurs with Firefox on the Mac, so
this isn't an IE thing. I'll have to investigate why it's a problem, but
I'm glad you found a solution.
L.
Neil Aggarwal wrote:
Laurie:
FYI, I got a response from someone on comp.lang.java.programmer.
They suggested
Andrew-
At some point, you're probably going to need to know which records
have been changed and which ones haven't. If the dataset isn't too
big, you could add a collection (java.util.List, etc.) of records that
you are displaying, and store it either as a formbean attribute or in
the session. If
Chris Pat wrote:
The NPE is happening on the first cast. Everything
else looks fine.
But WE wouldn't know that 'cuz you keep not giving us info.
That seems fine.
Here I start to get suspicious.
Your original code sample yo
Just a suggestion,
If you do the rows by javascript you can add a hidden field which can have a
value (eg 0 for update 1 for creation)
Regards,
Kevin
- Original Message -
From: "Andrew Tomaka" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List"
Sent: Wednesday, July 27, 2005 9:47 PM
Hey all,
The following is pretty hard to understand. I'm no good at describing
my problems and wasn't sure how to explain it. Hopefully, someone
will get what I'm attempting to say
I'm working on a screen that allows a user to dynamically add rows via
Javascript. I then have have a form that co
You're not specifying the form name in your action definitions. Not
sure which action you're attempting to call, but add name="yourFormName"
to that action.
> -Original Message-
> From: Chris Pat [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, July 27, 2005 3:38 PM
> To: Struts Users Maili
Hi Dave
I second your analogies, grin.
The NPE is happening on the first cast. Everything
else looks fine. The fb is standard set/get made by
JB05 wizard and looks normal. The struts-config has
all the proper syntax for the required elements but in
weird order, but there. Here it is. I am nonpl
http://www.prokmu.com/
After looking at this, my servers are going on eBay! Sometimes it
doesn't pay to own your own kit.
Cheers
Christopher Marsh-Bourdon
www.marsh-bourdon.com
AIM: marshbourdon
On 27 Jul 2005, at 20:08, Leon Rosenberg wrote:
I charge 15-20 euro / month for an own tomc
Well, if all these things are true, then you are indeed correct and
everything should work fine. Which it doesn't. Which means that there
is a problem somewhere, possibly in something assumed to be correct.
The code you have below is dead-simple, so it's got to be something in
the configuration or
I charge 15-20 euro / month for an own tomcat, full ssh/scp access, apache
in front, mysql dbs, mail server and so on.
30 euro for a full service package including backups and appl. level
support.
(from 50 euro on you can rent a complete machine at different providers in
germany)
Just for info
I charge 15-20 euro / month for an own tomcat, full ssh/scp access, apache
in front, mysql dbs, mail server and so on.
30 euro for a full service package including backups and appl. level
support.
(from 50 euro on you can rent a complete machine at different providers in
germany)
Just for info
>
> That's because Java and XML is like crack for people that like to type ;)
>
> Dave
LOL!!!
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Chris Pat wrote:
That is just a leftover. The retrieved form value is
from the fast of the passed in form bean.
Yeah, but where is the NPE happenning?
What does the ActionForm look like?
What does the struts config look like?
It's "fastiduous" because non-fastiduous webapps rarely work.
Hi Ed
Thanks. I will look again at typos, however the
action mapping properly has the name element in it for
the form bean and the form beans element has the
proper syntax. Except for the stylistic issues, if
all else is correct this should work fine, correct?
Why is this so mind-numbingly fasti
Hi Dave
That is just a leftover. The retrieved form value is
from the fast of the passed in form bean.
--- Dave Newton <[EMAIL PROTECTED]> wrote:
> Chris Pat wrote:
>
> >header1Form header1Form_ = (header1Form)
> form;
> >String queryString =
> ((header1Form)form).getQuery();
>
In search1Action, is the whole form null? Without seeing the relevant
parts of struts-config nor the form bean declaration, I can only
guess. There could be a typo in your struts-config for the action or
the form bean getter/setter declaration. Also, this isn't causing your
problem, but you assign
Chris Pat wrote:
header1Form header1Form_ = (header1Form) form;
String queryString = ((header1Form)form).getQuery();
String animalType = ((header1Form)form).getAnimalType();
Where is the NPE happening? Is form null? Is the NPE in the getters?
Kinda hard to say from this.
Hello
I have been trying for too long to get this simply to
work. Below is very simple code that fails at the
first attempt to retrieve the form bean method. What
can possibly be wrong, it gives compiles, gives a NPE.
The form bean variables are ="" in the reset method.
I do know how to do it as
+1 on Yan Hu, Tamas and Pedro
If one open a web hosting business, what should J2EE hosting (including
EJB, struts, JSP, servlets, MySQL, PostgreSQL, web services on JBoss)
charge per month that you are willing to pay? What is the market price
for such hosting now? It seems there is a market ther
Laurie:
FYI, I got a response from someone on comp.lang.java.programmer.
They suggested using the java.net.URI class.
I tried it and it works perfectly.
Thanks,
Neil
--
Neil Aggarwal, JAMM Consulting, (214) 986-3533, www.JAMMConsulting.com
FREE! Valuable info on how your business can re
David,
I think I asked Tamas a question in my previous email. This applies to
you too. The goal was protecting data or other resource to one user. If
you guys really think after connection is disconnected, sessions still
alive, you will find the situation nobody could connect to the server
as in m
Yes, much clearer now. If you're using Struts 1.2.x, There is a
"validwhen" clause that may help you--look at the test example just
below it:
http://struts.apache.org/userGuide/dev_validator.html#validwhen
Glen
Marc Demlenne escribió:
Yes, sorry I made a mistake while explaining. I'll try t
Yes, sorry I made a mistake while explaining. I'll try to do it better now.
Of course I need always to validate my form, you're right, sorry for
the confusion. But I need the form "to be valid" if either it is
validated threw the mask validator, OR if it is unchanged, even if in
this case it does
+1 for that answer.
Pedro Salgado
On 27/07/2005 08:15, "Tamas Szabo" <[EMAIL PROTECTED]> wrote:
> I wouldn't bet on PHP being more popular than Java webapps.
>
> I think that there will be more smaller Java webapps if there were much
> support for them at web hosting companies.
> I know several
John,
Well, I see our discussion varies on one key point: Rick specifically uses
the word "session" for his original requirement. The ideas put forth by
Tamas and myself try to limit the creation of session ID's on the server.
What you seem to put forth is limiting the server to answering one web
John Henry Xu wrote:
Here is Rick's original requirement,
I have an odd requirement where this internal application should
only be used by one valid user(one session) at a time. (The data
being worked with in the application would require so many locks
that's it just easier to restrict it to
Thanks!
-Original Message-
From: Wendy Smoak [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 26, 2005 7:07 PM
To: Struts Users Mailing List
Subject: Re: [shale] questions
From: "Abdullah Jibaly" <[EMAIL PROTECTED]>
> I want to start learning about Shale and have a couple questions to star
Hi Tamas,
I quote the complete requirement. The objective of one user is because of
data need be accessed by only one user.
> > >>Rick's requirement: I have an odd requirement where this internal
> application should
> > >> only be used by one valid user(one session) at a time. (The data
> > >> b
There are two validators which come with Struts: "requiredif" and
"validwhen"; "validwhen" is considered the logical successor to
"requiredif", although I have never really been comfortable using it.
One of my colleagues has submitted an enhancement request which uses
the JEXL expression evalu
Hi,
Do you say that the first person who dropped connection still doing data
access on data sources (and two person using data the same time)? Rick's
original objective was trying to limit one person use data sources.
I said that more than one session will be alive on a server.
Rick said
- Original Message -
From: "Stéphane Zuckerman"
To: "Struts Users Mailing List"
Subject: Re: JSF is the beginning of the end of Struts !!!
Date: Wed, 27 Jul 2005 11:26:04 +0200
>
> Craig McClanahan a écrit :
> > Tell me again how you come to the conclusion that Java is not
Hi and thanks for the answer,
In fact my problem could be explained the following way :
Having two fields A and B, I need to validate A if
(A == mask) OR (A == B)
I don't know if it is possible to include a field in a mask
expression. But in the other case, I need to have an alternative
betwe
I have several high-specced Linux (Redhat ES) servers doing very little and
currently not hosted anywhere. They are Apache/Tomcat/JBoss configured and
I did use them to host my test Struts apps. I was wondering if anyone
wanted to share the server(s)/costs and get them co-located? Seems a waste
Hello Luis-
I would recommend to break out the logic in
WomenDispatchAction.findAll() into a "helper object" (or call it
business object, DAO, etc.), then call the method from both actions.
If you've played around with actions calling actions, you can see that
getting everything populated correctl
Hi all
Does somebody know if it's possible to get MessageResources diring
initialization of plugin?
I do some "global" initializations including reading some string from
resource file, so I need this resource "as early as possible"
Or maybe "global initializations" should not be in plugin (i
Thanks for the explanation. I guess it's another technology I'll have to
add to my list of 'to do's.
Re your issue - I see why you want to pass an 'attributes' generic
object now. I thought it was way too non-specific and would lead you
into a bit of a mess, but I guess if you are mimicing por
Tamas,
Do you say that the first person who dropped connection still doing data
access on data sources (and two person using data the same time)? Rick's
original objective was trying to limit one person use data sources.
> >>Rick's requirement: I have an odd requirement where this internal
appli
I don't agree on any comments about technology A going to destroy B, C or D.
It is not really the technology that will put an end to something is the
software development community and the customers that will say what they
prefer, want, can provide or have to use.
A real case: anyone remembers the
Portlets are java mini applications that work within the Java Portlet Specification. They are ment to run using a Portal Server like Websphere Portal server, Metadot, or jetspeed. These 'applications' can share variables, etc via the Portlet container. The container manages the placement and lo
And somtimes you will arrive mid-project not necessarily on a "greenfield"
landscape where the technology decisions have already been defined
for you. What can a developer do except fall in line with the
Struts-has-been-chosen-decission? The best you can do within
companies (corporations) is to ge
I guess I am a little lost on this comment. There are hundreds / thousands of complex Java sites available on the internet. Examples include US Airways Reservation system, EBay, BlueCross BlueShield of South Carolina, CitiBank, etc.
All of these public sites support very large user bases.
">"J
I need to call a DispatchAction inside other action
problem:
¿How can i set the appropiate parameter inside the first action?
ex:
i am inside insert() of PeopleAction and i need to call findAll() of
WomenDispatchAction
in other words: i need req.setParameter("method","findAll"); (but this
met
> > 3. PHP. I've done some PHP over the last couple years.
>
> PHP and Struts are not antithetical. There have been several ports of
> Struts to PHP, as well as Struts-like frameworks, such as Maverick and
> FuseBox.
>
> I'm not working in PHP myself, but if I were, you can bet I'd be
> porting b
This was the point i was making early on.
PHP is cheaper than java - in almost all ways.
Hosting: You can host php sites for a couple of pounds a month. Can you do
that with java?
Development: it's much easier to learn to make a PHP+Mysql databased web
site. Therefore programmers are cheaper. P
On 7/26/05, Greg Reddin <[EMAIL PROTECTED]> wrote:
> 1. Struts will someday die. If it doesn't, then we've seen the end of
> technology advancement.
And, someday, web applications, as we know them, will also die.
As mentioned elsewhere, ASP.NET made ASP Classic "obsolete" five years
ago. But,
On 7/26/05, Daniel Perry <[EMAIL PROTECTED]> wrote:
> Can anyone recommend any good resources? Sure a google search provides tons
> of information... but which is any good?
Mastering JavaServer Faces is an excellent book for Struts developers
to read. The authors try to put JSF in context with bot
On 7/26/05, Mark Benussi <[EMAIL PROTECTED]> wrote:
> If Struts 'dies' I will take it on personally and do whatever it needs that
> it seems to be lacking.
Feel free to step up any time, Mark. We're always on the look out for
volunteers.
* http://struts.apache.org/faqs/helping.html
-Ted.
-
Hi,
I supposed that my browser isn't submitting requests twice, because this
feature just only happens when I work with tiles. If my mappings use
forwards to jsp pages, everything works OK.
I've been investigating a bit more and I've found the exact point when
everything happens: trying to forwa
I think so, each kind of project needs a type of solution, i developed
lot of simple web sites using ASP/PHP with content management and a
little bit of bussinnes logic, but by crossing the line to web
applications, those technologies turn useless, unsecure and hard to
maintain, reuse and scale.
I
Basically that is the way you do it, although I'm not really sure from
your description that I know why you thought you could achieve what it
looks like you were attempting.
A question for you that bugs me everytime I see 'portlet' come up: what
on earth are portlets? Are they meant to be a di
Craig McClanahan a écrit :
Tell me again how you come to the conclusion that Java is not a
popular platform for web app deployments? (To say nothing of the fact
that Microsoft might dispute the "PHP is king" rubric as well :-).
I think this is always the same old argument : what we see on the
The myfaces wiki I meant
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
May I drop the info on the wiki?
Werner
Wendy Smoak wrote:
From: "Abdullah Jibaly" <[EMAIL PROTECTED]>
I want to start learning about Shale and have a couple questions to start
out with:
1- What is the difference between Shale and MyFaces?
MyFaces (http://myfaces.apache.org/) is an imple
Thank you Tamas.
I had been having a difficult time try to express to Mr. Xu the position
that a session does not hold open a connection to the web server until that
session ends but that a session simply refers to a set of data stored on the
web server for a limited period of time between multipl
79 matches
Mail list logo