creating list in dropdown using struts :
In action class
list.add(new LabelValueBean(ID,Name));
In Jsp
logic:present name=list scope=session
td align=left*nbsp;Select Item/td
td
html:select property=selectedItem
html:option value=-1Select/html:option
html:options collection=list
I don't think there is any way to get both label and text from select box in
request option. You will get only the value specified in option tag. I
believe in ur case, ID is the value in option tag and that's the reason u
get Id back in action during postback...
There is couple of workaround's to
Thank you all for the hints. I will try again as soon as I'll get fit.
Denis Fefermann wrote:
I am using Struts 1 and no JavaScript Frameworks. I do not need data
from
calling the action.
The point is, everytime I refresh my JSP Page , I need to increment a
sort of a counter in my
Hi
I am getting Exception while reconnecting to the Oracle database.with
Hibernate 3. I was getting this problem when Data Base server restarts. its
start working when
restartig the application server.
Here is the error message I am getting in logs
JDBCException W
Maybe you should try a Hibernate list/forum instead?
Nils-H
On Mon, Apr 20, 2009 at 10:11 AM, srinivasa_v . srinivas...@sify.com wrote:
Hi
I am getting Exception while reconnecting to the Oracle database.with
Hibernate 3. I was getting this problem when Data Base server restarts. its
start
Hibernate list/forum is down and its a prodction issue for me
On Mon, Apr 20, 2009 at 1:43 PM, Nils-Helge Garli Hegvik
nil...@gmail.comwrote:
Maybe you should try a Hibernate list/forum instead?
Nils-H
On Mon, Apr 20, 2009 at 10:11 AM, srinivasa_v . srinivas...@sify.com
wrote:
Hi
I
Hi all,
I'm using struts 2.0.6. I have requirement to write an logic in
action file. Where that
action should be schedule in (daily or weekly). For that , i have used
Quartz in struts 1. It was working fine
as per this site details. http://demo.jgsullivan.com/struts/
I
Hello,
I currently have a problem using Struts 2.0.12 with Tomcat 5.5.
If the tomcat server isn't busy (1 to 10 connections) my pages display well.
However if tomcat becomes just a little busy, the name attribut of s:text
tags isn't internationalized, sometimes some tags aren't displayed at all
hi everyone,
can anyone let me know how to build menus in struts?
--
Abhishek
srinivasa_v . wrote:
Hibernate list/forum is down and its a prodction issue for me
Keep trying.
This list is for Struts-related stuff.
Dave
-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional
if you're bound by political considerations to use Struts1 use Dave's suggestion
(if you are able to implement Struts2 solutuion use the suggestion I posted
yesterday)
please keep us apprised
Martin
__
Disclaimer and Confidentiality/Verzicht und
abhishek reddy wrote:
can anyone let me know how to build menus in struts?
That's a rather nebulous question. What kind of menu do you want? Why
not just use one of the million existing menu solutions out there?
Dave
-
To
2009/4/20 abhishek reddy abhishek.c1...@gmail.com:
can anyone let me know how to build menus in struts?
Struts Menu [1]
[1] http://struts-menu.sourceforge.net/
Regards
--
Lukasz
http://www.lenart.org.pl/
-
To unsubscribe,
Is implemeting Spring in your stuts app an option? If so the Quartz
Spring plugin is incredibly easy.
On 4/20/09, Johnson nickel sarava...@elogic.co.in wrote:
Hi all,
I'm using struts 2.0.6. I have requirement to write an logic in
action file. Where that
action should be schedule in
Hi,
Our application uses struts 1. We are now currently problem with
httpsessionswapping
We would like to ask on the best way to approach this because currenty we
are using
request.getSession() to access the httpsession
public ActionForward loadFundTxferAddSel(
ActionMapping mapping,
I have the following in a jsp, I'm creating hidden forms to submit with
javascript when someone clicks on a table row:
s:iterator value=people
s:set name=form_id value=[0].id/
s:form id=#form_id action=personProfile
s:hidden theme=checkbox-fix key=id/
Hello,
i have a struts application, which can be used by different user profile
among the profile, there is one who can access some pages
so if he try to access to one page , i will diplay a warning message in the
depart page
so, i wanna know , after checking the user profile in the action, how
Doh! I asked too soon, here it is:
s:iterator value=people
s:set name=form_id value=[0].id/
s:form id='person_%{form_id}' name='person_%{form_id}'
action=personProfile
s:hidden theme=checkbox-fix key=id/
/s:form
/s:iterator
Then, with JS,
I have a table named mytable,it has two cols,col1 and col2,the data are
col1 col2
---
John 24
Kate 18
hibernate xml file is follows:
hibernate-mapping auto-import=false
class name=mytable table=mytable
id name=col1 column=col1 type=java.lang.String
generator
Have you tried writing a unit test to ensure that testList is populated
after your action executes? I'm pretty sure you'll find that it isn't.
It looks to me like you're declaring testList to be a local variable within
your action method (you're doing List testList = instead of testList =
). So
Oh heck I misread your code there. This is Struts 1 and not Struts 2, isn't
it? Sorry about that.
jk
On Mon, Apr 20, 2009 at 12:08 PM, Jim Kiley jhki...@summa-tech.com wrote:
Have you tried writing a unit test to ensure that testList is populated
after your action executes? I'm pretty sure
Hi all.
i've a problem with ejb stateful bean.
in my stateful ejb i've this method
@Stateful
public class ShopCartBean implements ShopCartLocal {
@EJB
private MGMTLocal man;
private Customer customer;
public boolean *enableShopping*(String user, String password) {
red phoenix wrote:
table
c:forEach var=test items=${testList}
trtd
c:out value=${test.col1}/c:out
c:out value=${test.col2}/c:out
/td/tr
/c:forEach
/table
then I modify struts action,like following:
List testList=this.getHibernateTemplate().find( select col1,col2 from
i've done some trial:.
an action
@InjectEJB(name = WAP-Shop/TestDeiBeanBean)
TestDeiBeanLocal tdb;
public String execute() throws Exception {
//scb = lookupShopCartBean();
System.out.println(value -- + tdb.value());
System.out.println(setTrue + tdb.setTrue());
hi guys,
i was using the example crud application (
http://struts.apache.org/2.0.14/docs/crud-demo-i.html) as the skeleton for a
CRUD like module in my site.
But I've ran into a dead end.
in this sample applications the package is like this:
package name=default extends=struts-default
Bhaarat Sharma wrote:
What I wanted to do was that when user edits something and comes back to the
listing page, they see a message on top saying id XXX has been modified.
However, I think this is not possible because a method name is mentioned in
struts.xml. Is that correct?
No.
to try it
sorry about the typo. as i was trying to give an example and not just copy
paste the code I made a mistake.
This is what I have in my jsp page.
s:property value=sampleString default=test/
I have verified whether it is because of a typographical error but it is
not. And since you are saying it
I just debugged the code and it seems like the doSave method is called when
'Submit' is hit on the edit page. However, since the doSave is returning
Success and based on struts.xml it will redirect to action index then the
prepare method for EmployeeAction class is called again and at this time
If it's a redirectAction then the action will be re-instantiated.
Dave
Bhaarat Sharma wrote:
sorry about the typo. as i was trying to give an example and not just copy
paste the code I made a mistake.
This is what I have in my jsp page.
s:property value=sampleString default=test/
I have
yeah it is a redirectAction :( so now i know why the value for the string is
not there.
Any workarounds to this issue?
One I thought of is to set an attribute and retrieve it in the jsp page?
Thanks
On Mon, Apr 20, 2009 at 3:57 PM, Dave Newton newton.d...@yahoo.com wrote:
If it's a
*Struts: *1.3
*Tomcat:* 6.0
*OS:* Mac OS X
Hi,
I have a sample application I am building, and I got it working, but am not
sure that what I have is the best most efficient way to do it.
Here is what I have:
I have a Home Page with several a href links, one of which takes me to
Family Members
2009/4/20 Mighty Tornado mighty.torn...@gmail.com:
This works, but is there a better way to do it with Struts? The question is:
the jsp page is not an HTML form; it just displays information - can I use
the form for this purpose though, and if so, should I?
It's up to you, the only think, you
Thanks.
On Mon, Apr 20, 2009 at 5:27 PM, Lukasz Lenart lukasz.len...@googlemail.com
wrote:
2009/4/20 Mighty Tornado mighty.torn...@gmail.com:
This works, but is there a better way to do it with Struts? The question
is:
the jsp page is not an HTML form; it just displays information - can I
We use spring as standard to setup the struts2 actions so it was a simple
matter of adding some config information to the applicationContext.xml file.
The spring site has comprehensive documentation.
Z.
Hi all,
I'm using struts 2.0.6. I have requirement to write an logic in
Hi,
Using Struts 1.3, Tomcat 6.
I have the two following problems:
1. I have a screen where I enter some text and call a struts action to
insert it into the database. The action calls a DAO to do that.
When the screen returns, the values I entered in the text fields are still
there and I want
Thanks for your quick response. But , i'm not aware of spring.
In struts 2, i want to integrate quartz,for that give any sample or
idea. It will be helpful for my further progress.
Burton Rhodes wrote:
Is implemeting Spring in your stuts app an option? If so the Quartz
Spring plugin is
Hi,
Using Struts 1.3, Tomcat 6.
I have the two following problems:
1. I have a screen where I enter some text and call a
struts action to insert it into the database. The action
calls a DAO to do that.
When the screen returns, the values I entered in the text
fields are still there
37 matches
Mail list logo