Hi guys,
hi Michael
I have to implement a typical web-store feature showing and updating
product count in the shopping basket. Something like:
[ 1] x Centrino 1.5 CPU
[ 3] x Athlon XP 2000 CPU
[ 2] x ACME Cooler
...
(Submit)
Each shopping cart line is represented by a POJO and I have some
p
Hi Michael,
Persistance is no issue, becouse I have implemented managers, which can
be simply used anywhere. Something like:
"On update PersistanceManager.UpdateProductCount(prodID, newCount)"
Well the question was about multi row update. It means for every list
line I have a "Delete" button
Michael Jouravlev schrieb:
On 11/9/05, Jadeler <[EMAIL PROTECTED]> wrote:
I wanted to find out any recommendations in handling
successful payments where the user is redirected to a
receipt screen after a successful payment transaction.
Basically, I need to prevent users from resubmitting
the pa
Maybe this will help:
Countries is a list with bunch of Objects of type Country which have to
be put in the session scope by
session.setAttribute("countries",countries);
countryName is a form bean property of the type "String" where the
actual countryName is saved.
Cheerz,
Danny
Download struts-menu.jar and put it into project-path.
Then stuff will work.
Chez
Danny
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Yeap I had similar problem too,
perfectly solved with Struts Dialogs Framework.
Just check this stuff out.
http://struts.sourceforge.net/strutsdialogs/
Cheers
Danny
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
I don't know if I understand you right, but if you wan't to get the
option selected before validation, just save it in some form Attribute
of your Struts Form and then use:
value="${myForm.lastSelectedThing}>
Cheerz
Danny
Chen Jerry schrieb:
Well, I make multiple selection and submit the p
Hi Michael!
I've just installed the new version and tryed out the new features!
Stuff works fine and having EVENT-DIALOG-SOMETHING in struts-config.xml
seems to be much more logical then having getKeyMethodMap() inside of
Action.class!
The migration took something like 10 minutes, so go on g
Well,
that's really easy, just do:
"request.getSession().setAttribute(Globals.LOCALE_KEY, new
locale(languageCode));"
in your action, where languageCode is the locale you wish to use.
Cheers
Danny
Miren Urkijo schrieb:
HEllo y havo one struts aplicaicon.
if into the borwser i change the
You have to do a getLocale() in your ActionForm and then
use:
in your JSP ;)
Then you gonna be lucky ;)
Cheers,
Danny
Miren Urkijo schrieb:
it runsbut i have one problem.
in my struts pages i am working with fmt and jstl and this doesn't run
with these (jstl, fmt).
which is the solution?
You just have to organize something like
seto of B's in yur A and set of C's in your B.
This has to be done per Hibernate ('s in hibernate.cfg.xml and List
getters setters in DAO Classes).
When you've done this, you can iterate all the attributes without big
prob's. After user submiting new va
Well, your problem is storing the value in "formulaPart".
What is formulaPart? You are populating the form, and you have lot of
input fields after populations.
So you have to have formulaPart[x] as a property, and List formulaPart
in the scope!
Read this:
http://www.developer.com/java/ent/a
The typical case for DynaForm is a very simple case, when you have
couple of basic properties you have in your Form.
I supose, that creating of a separate ActionForm class is more
appropriate for your case. If you are new to Struts and have to work
really fast (it was my case couple of months
Here's a snippet from my checkout.jsp:
varStatus="status">
align=left height=40>
value="${item.productName}"/>
value="${item.productPrice}" type="currency" currencySymbol="€"/>
x
align="left"/>
Cool site, thanks pal :)
I'm actually lived in Hannover 1999-2000, studied economics there...
Cheers,
Danny
Bednarz, id-on GmbH schrieb:
printx.org
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail
Hi David, yeap you got the stuff right. The only thing I forgot to tell
you is: if you not using Struts dialogs you have to "prepopulate" the
form. So you actually need two actions 1st for prepopulating of
properties and 2nd for correlation with the user input. Or you just use
Struts Dialogs, i
Please start new thread (as new message), without making replay on some
other thread not relative to your topic.
Then I'll answer.
Cheers,
Danny
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [E
Here is all you need:
http://www.developer.com/java/ent/article.php/2233591
Cheers,
Danny
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Next time check documentation for this kind of questions.
Farm Number ${oneFarm.number} Name is - ${oneFarm.name}
Cheers,
Danny
Eider Iturbe schrieb:
I don't know how to implement in jsp the code to read all the values of the arraylist,
Eider
-
Hi Michael,
there deffinitely is an insterest :) I like your new IPU [ ;) ]
approach!
Well, the interesting thing for me is, if there's some "take it back to
the parent action" approach in your new technique.
For example I'm in:
http://www.myshop.com/showProductGroup.do&groupId=10
Struts menu is just fine,
works with latest stuff and can be attached to DB too, there is a nice
tutorial.
If the stuff works just fine, why do you need updates? :)
Cheers,
Danny
Antony Paul schrieb:
Hi all,
I am looking for a component to create menus in Java web applications. I
want t
Shalom there,
http://jakarta.apache.org is dead :(, have the same problem.
yes you can hold the stuff localy.
Just put it in your /lib/ folder... when jackarta's up, I'll do it too.
Cheers
Danny
Rivka Shisman schrieb:
Hello all,
My struts-config.xml looks for the dtd in the Jakarta web
Hi Joe,
thanks for your answer,
now I realy understand how this stuff works :)
But it still don't works with validator.
JAR is right and in scope, DTD is there in jar, DOCTYPE is right too
but Eclipse allways tries to search for it online...
Cheers,
Danny
Thanks again Joe,
now I've configurated the stuff for Eclipse, and it works.
Cheers,
Danny
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Danny
Antony Paul schrieb:
On 12/13/05, Danny Lee <[EMAIL PROTECTED]> wrote:
Struts menu is just fine,
works with latest stuff and can be attached to DB too, there is a nice
tutorial.
If the stuff works just fine, why do you need updates? :)
I just want to standardise on one thing.
Well, I use MyEclipse IDE and "XML catalog" is in specific settings for
MyEclipse.
So you have to serach for "XML catalog" in your libary and then add the
key-String and local DTD-location there. Then your IDE will first check
for local copy of DTD and only if it's not OK go to web.
Lehitrao
Well I really tried to solve this one,
but finaly "redirect true" for all actions aviable from under the HTTPS
part was the only solution... I mean, finally, HTTPS and HTTP is
something like 2 different servers, I don't really think you can move
around there without redirect...
Btw, what do y
The only easy solution I can think of is to write some application,
which is performing DB->File transformation before MessageResoursces
consumer-application starts.
But this is not a real solution, becouse you still can't change
properties dynamicaly. I'm not sure if Struts allows you to do i
That's cool!
Can you change the values dynamicaly in run-time,
so it works without the need to restart the app?
Greets,
Danny
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Well,
it's really dangerous thing, becouse as long you watch your sweet-sweet
SF-stuff rather then doing some other stuff to your "Santa's little
helper", she may just sneak over to your neighbour and then you'll
wonder why your kinds rather do C# than develop J2EE applications ;)
Happy New
Do it simple,
put a User bean into session scope just after user loged-in.
Every user have a User.PERMISSIONS property.
Then in JSP you do surround the links with JSTL
the link, otherwise not.
In all Actions you check the User too, and if there a problem (which
means he put the forbiden actio
You can use Struts-Menu, it's sure is a good thing.
The only issue is, that you can't generate the first menu level
dynamically (or it's not easy).
So if you wan't to have something like:
Group 1
- Project 1
- Project 2
- Project 3
Group 2
- Project 1
- Project 2
- subproject 1
Hi guys!
I have a very general question, about populating HashMaps (and other
stuff, but we just take HashMaps this time).
Let say, I have a Product Bean, with some simple attributes (Name, ID),
and some HashMap attributes (infos, pictures, details).
It's quite easy to generate a HTML form f
Hello, Michael!
That's cool :)
Now I know, what I gonna do the next weekend!
Cheers,
Danny
Michael Jouravlev wrote:
I just uploaded the preview of version 2:
...
I will upload final version of the library and the documentation in
about a week.
-
Hi guys!
I'm writing an admin webinterface for a web store at the moment,
the "put-new-product" part.
SITUATION: I have some product attributes like "Information Blocks" and
"Product Details", which are 0..n, so I'm able to delete these, or
create new.
PROBLEM: The problem is, every time I d
Hi guys!
I have a sample-application I've build together from couple of
tutorials. It have Hibernate&Struts and works (fine) using Titles.
My problem:
* When I try to plug-in the Validator and change the parent of my forms
* from "ActionForm" to "ValidatorForm" or "ValidatorActionForm" the
Hi Hubert,
maybe you're right and they just don't like each other a little bit ;)
"what flavor of ActionDispatcher are you using?"
eeeh, don't know what you mean with "flavor" but I just use it for
working with multiple buttons on my page.
I have a "public class BookEditAction extends Dispat
Hi guys,
Let's imagine that I'm building a web store and have a lot of different
product groups.
For every product group I have a template describing how to peresent the
products in this group.
My web store have to be cool, so there is an admin interface, where the
admin can create new pro
Thank you very much for your answer, Laurie!
I gonna try to do it using tools you guys suggested and I hope to get it
right :) Or I gonna do antother post, when I have more information or
more concrete issues!
Cheerz
Danny
Laurie Harper schrieb:
So essentially what you want to do is take
Hi guys!
I'm currently adapting Struts-Dialogs for my E-Commerce project.
Took the MailReader App as an example (thanks Misha).
Seems to be a really good thing, user registration routine is halfway
ready after quite short time.
Well the question is: in some sources people tell something about
Hi Michael,
I'm actually have heard not much about struts-dialogs, but what I
heard was pretty nice. Then I've seen this example mailreader
application with Russian locale (my mother tongue) and thought, that it
may be interessting ;) Which sure was correct. Thanks for your great work!
Hi!
I thing you don't have to put the language-oriented tags. Just do the
normal Struts-Internationalization with applicaition_resources, this
technique is independent of using tiles or not and works great.
Choosing language manually is another issue. It will work anyway by
Struts reading t
Oh no, don't show the shopping cart - view.
Most user prefer to see the same thing what they saw after clicking on
"add to cart".
Just change the "## products in your cart cost ###" string somewhere in
your layout.
BTW it's nothing bad if the user sees top of the search-result list
after "
I've tried to find a solution to absolutely same problem,
with no result (ok-ok, I haven't tried TOO hard).
So now I just go back to the welcome-page, which is OK too ;)
But you can find couple of solutions here, I was too lazy to give a shot:
http://forum.java.sun.com/thread.jspa?threadID=61471
I like my SQLyog-Tool, using it for couple of years now.
It's really fast, unproblematic and simple to use.
Cheers
Danny
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
yeap, "ResourceBundle Editor".
Plugin 4 Eclipse
http://sourceforge.net/projects/eclipse-rbe
Cheerz
Danny
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Here my solution (some stuff I found on the net and adapted for my
needs). I don't actually use the "display" stuff, couse I do it
otherway... so you can ignore it.
I hope it'll help
Cheers
Danny
*
1) Action
public class ChangeLocaleAction extends Action {
n't work for me either, because I am
working with tiles and therefor the requestURL is not correct. So I am pretty
interested in what you do with the "lastAction"-Attribute in your session.
Maybe this might work for me as well. Do you have any examples how you used
this?
Thank yo
Hey Michael, cool!
Successfully upgraded 0.5, tested for one day :)
No problems so far, works just fine!
Cheers!
Danny
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Use URL rewrite filter for this one. It's really a good stuff.
https://urlrewrite.dev.java.net/
Cheers,
Danny
Alan Treece wrote:
As the Subject: line states I'm in the middle of converting a larger
Perl application to a Struts web-app running on the SUNWappserver. The
question was posed as
Hi guys!
I'm wondering if there's a way to set a refresh rate of Struts
ApplicationResources_XX.properties files. I hate restarting Tomcat
everytime I've changed something there...
Thanks in advance!
Cheers,
Danny
-
To un
51 matches
Mail list logo