Bilal A. Siddiqui

Ranch Hand
+ Follow
since Sep 14, 2008
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Bilal A. Siddiqui

Hi Gulshan

Just have a look http://www.handsomeandroid.blogspot.com/ there is a post regarding dynamic android layout.

This might be of help to you.
13 years ago
Hi All

can anyone please explain how will i display message on the phone as soon i receive them from the server.


Technical as well as theoretical concept.


Cheers
Bilal
13 years ago
Hi swati,

I too learned struts2 directly. i dont know struts 1.

struts2 in action is a good book.
15 years ago
Add these session variables in your drop down list in action class itself.
15 years ago
jsp is not coming into play anywhere.

control is passing from Login.java to LoadData.java. LoginID is defined and set in Login.java which i am passing to LoadData.java.
15 years ago
Hi Ranchers,

I have solved the problem by making the below mentioned changes.



I am getting the LoginId on LoadData action class but i am also getting error

Caught OgnlException while setting property 'LoginID' on type 'org.apache.struts2.dispatcher.ServletActionRedirectResult'.
ognl.NoSuchPropertyException: org.apache.struts2.dispatcher.ServletActionRedirectResult.LoginID
at ognl.ObjectPropertyAccessor.setProperty(ObjectPropertyAccessor.java:132)
at com.opensymphony.xwork2.util.OgnlValueStack$ObjectAccessor.setProperty(OgnlValueStack.java:82)
at ognl.OgnlRuntime.setProperty(OgnlRuntime.java:1656)
at ognl.ASTProperty.setValueBody(ASTProperty.java:101)
at ognl.SimpleNode.evaluateSetValueBody(SimpleNode.java:177)
at ognl.SimpleNode.setValue(SimpleNode.java:246)
at ognl.Ognl.setValue(Ognl.java:476)
at com.opensymphony.xwork2.util.OgnlUtil.setValue(OgnlUtil.java:186)
at com.opensymphony.xwork2.util.OgnlUtil.internalSetProperty(OgnlUtil.java:360)
at com.opensymphony.xwork2.util.OgnlUtil.setProperties(OgnlUtil.java:76)
at com.opensymphony.xwork2.util.OgnlUtil.setProperties(OgnlUtil.java:49)
at org.apache.struts2.impl.StrutsObjectFactory.buildResult(StrutsObjectFactory.java:95)

Please advice.

15 years ago
Hi Ranchers,

In my login action i am validating userName and password, on success i'am redirecting action to LoadData. Now in this redirection i also want to pass loginid to LoadData action. How to do this?

15 years ago
Hi All,

I have a project based on struts 2 on netbeans 6.5, now i wanna move this project on eclipse. I have searched a lot on google but i am not getting anything.

Please help.

Hi Priya,

I am uploading file like this.

jsp looks like this.



getter and setter for these fields.


calling upload method.
uploadDocument(upload, uploadFileName, path);

upload method.
remember path means real path.



and make sure to add necessary jar files needed for file uploading in struts2
15 years ago
Priya write get set methods for the list in your action class. add values to your list and assign the name of your list in radio tag.

list="yourListName"
15 years ago
Thanks David & kurt

I think i need to study more. I am still not very comfortable with the concept.
15 years ago
Hi All,

i am reading strutss 2 in action where they are integerating springs with struts. I am trying a lot but i am unable to understand what is dependency injection.

I am also not sure whether this question has to be post in springs forum or struts forum.

Regards
Bilal
15 years ago
Hi jyotsna,

It seems your indexoutofbound exception is coming due to the declaration of your index=1. Make it index=0 and it will run fine. If this part is running fine we can move forward with populating issue.

Cheers !!!
Bilal
15 years ago