Re: how to eliminate time in

2010-02-19 Thread fireapple
> Just add a getter to your "train" object that translates the startDate > into > the format you'd like. Use a DateFormat object. > > -Brian > > > > On Thu, Feb 18, 2010 at 5:07 PM, fireapple wrote: > >> >> Dear all, I'm using

how to eliminate time in

2010-02-18 Thread fireapple
Dear all, I'm using where startDate is a java.util.Date field of an object train. The output is something like this: http://old.nabble.com/file/p27647328/date.png How can I eliminate the 12:00:00 in the textfield? Thanks! -- View this message in context: http://old.nabble.com/how-to-elimin

Re: Can I implement interface of another project in a struts 2 project?

2010-01-13 Thread fireapple
. Note that in addition to be > available in your build path, the dependency must be available at > runtime too (usually inside the WEB-INF/lib folder) > > 2010/1/12 fireapple : >> >> In project1, I include project2 in order to use interfaces (interface A, >> B, >> C,

Can I implement interface of another project in a struts 2 project?

2010-01-12 Thread fireapple
In project1, I include project2 in order to use interfaces (interface A, B, C, D.) of project2. However, the system always claim java.lang.NoClassDefFoundError for interface of project2. I also exported project2 to a JAR and include it in project1's build path, still no luck. I tried 3 of my

action called twice in IE 8 when using different ajax submit for the same form

2009-11-23 Thread fireapple
Here is the form from my jsp page: 1. 2. 3. 4. 5. 6. 7. 8. When using firefox, it works fine. When using internet explorer, the form is submitted twice for the same action. Example: if the user clicks "Release", public String release

how to use one user input in two forms?

2009-11-18 Thread fireapple
Dear all, I want to use a multiple select to ask user select the item they want. The items selected will be on a pdf file which will be sent as attachment of email (user can click "send email" button to send them). The user wants to confirm if the pdf is right before he sends it. Therefore, I

Re: how to use ajax displaytag?

2009-11-16 Thread fireapple
Thanks, I changed action in requestUri from ajax to a normal one. Now sorting and paging work fine although it's not ajax. Is it possible to do the sorting and paging in an ajax way? Oscar Calderón-2 wrote: > > > Well, it depends of the display table's configuration. In display table > tag y

how to use ajax displaytag?

2009-11-12 Thread fireapple
Here's my situation: I used a displaytag to show a table as an ajax result. It works fine. However, when I click "sort" or go to different page, it opens a new page with only the displaytag table. I saw something online that there's ajaxTags or ajaxAnywhere, but it seems they're both not good.

Re: JQuery UI datepicker doesn't work in a struts 2 ajax page

2009-11-10 Thread fireapple
r > > http://code.google.com/p/struts2-jquery-plugin/ > > Best Regards > > Johannes Geppert > > > > fireapple wrote: >> >> Thanks Johannes, I'm using struts 2.0.11, this is my ajax submit tag: >> >> > targets="%{'segme

Re: JQuery UI datepicker doesn't work in a struts 2 ajax page

2009-11-09 Thread fireapple
Thanks, I tried your method and it didn't work out. I also tried to put all JQuery library and Javascript block in my ajax page(which is supposed to appear in the s:div). Still doesn't work. However, after adding executeScripts="true" in my , if I add "alert('test');" into my ajax page, I can s

S2: Ajax tags -- how to return a message to a specific DIV?

2009-07-09 Thread fireapple
I wonder if this is durable with S2: JSP form: this form has a button FINALIZE, if all goes well - the result SUCCESS should be seen in placeA on the page and if it fails the result FAILURE should be seen in placeB (a different place on the page); the SUCCESS/FAILURE are just messages but they mu

Re: Performance issue with large data(such as images)

2009-06-11 Thread fireapple
newton.dave wrote: > > >> "" doesn't work at >> all. > > Stream it from an action/servlet/etc? > > Dave > > - > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.

Re: Struts 2 File upload to store the filedata

2009-06-10 Thread fireapple
Jeromy Evans - Blue Sky Minds wrote: > > > Hi Johnson, I think just need to read up a little more on Struts 2 as it > seems you're trying to do too much yourself based on Struts1 experiences > rather than let the framework do more of the routine work. Ian Roughly's > book is a good place to

RE: Performance issue with large data(such as images)

2009-06-10 Thread fireapple
Security Management wrote: > > I have had problems when trying to show a bunch of thumbnails, because you > have a URL that points to an action in your jsp that causes a database hit > to pull the image. If I'm trying to show 150 thumbnails, the page takes > forever to load due to the db conne

Re: Performance issue with large data(such as images)

2009-06-10 Thread fireapple
Richard Sayre wrote: > > I should have also mentioned that there are security issues with > persisting to the hard drive. > > I would recommend saving to the database and loading the images as > needed. Do not save them to session. I do not think you will have a > performance problem. > > R

Re: Performance issue with large data(such as images)

2009-06-09 Thread fireapple
Richard Sayre wrote: > > You should persist the images as bytes, in a binary field or something > similar. > >> 1. Because the image is large, it's not efficient to store it in >> objects(beans). > > Well this depends on the Bean. Is the bean stored in session? If yes > then it will take up

Performance issue with large data(such as images)

2009-06-09 Thread fireapple
Firstly, I persist the portraits (images) of all users in the db as Strings (large one, say length 5000). Then, I want to get the String and display the portraits of users on the web page(like a topic in a forum). Here I know three solutions but none of them is efficient: 1. Because the image is

Re: how to use struts 2 to redirect jQuery Ajax request

2009-05-19 Thread fireapple
So there is no way to put the control of determining the result to Struts instead of Javascript? Steven Yang wrote: > > Actually you went off Struts' scope by using AJAX.because javascript is on > the client side. by using XHR you have put the control of determining the > result to javascript a

how to use struts 2 to redirect jQuery Ajax request

2009-05-18 Thread fireapple
I created a login page with jQuery, I'm sending Ajax request by .getJSON(), Also, I want to use struts 2's controller to assign to different pages based on the returned results of action (in this case, if username and password doesn't match, use an ajax reminder; if match, redirect to another page

Re: Any hint of JQuery on struts2 tutorial, thanks!

2009-04-29 Thread fireapple
e > you looking more for skill building sources? > > > fireapple wrote: >> >> Thank you! It seems I have a lot to learn:-) >> >> >> Wes Wannemacher wrote: >>> >>> On Tue, Apr 28, 2009 at 10:39 AM, fireapple >>> wrote: &g

Re: Any hint of JQuery on struts2 tutorial, thanks!

2009-04-28 Thread fireapple
Thank you! It seems I have a lot to learn:-) Wes Wannemacher wrote: > > On Tue, Apr 28, 2009 at 10:39 AM, fireapple > wrote: >> >> Hi, Wes, on the table of content of the book, I didn't find anything >> related >> to JQuery and Struts2. Since JQuery is

Re: Any hint of JQuery on struts2 tutorial, thanks!

2009-04-28 Thread fireapple
Hi, Wes, on the table of content of the book, I didn't find anything related to JQuery and Struts2. Since JQuery is similar with JavaScript, can we say we can use JQuery in Struts2 as soon as we can use JavaScript in Struts2? Thank you. I'm a new programmer with stupid questions,:-) Wes Wannema

Any hint of JQuery on struts2 tutorial, thanks!

2009-04-28 Thread fireapple
Because our team is using struts2 to develop the web application and I'm in charge of the UI part, I have to restrict the UI to struts2. I heard that JQuery is very popular and I love it. Also, I know some people are using it in struts2. However, I couldn't find any related tutorial. Any tutorial