Win a copy of Securing DevOps this week in the Security forum!

Rishi Chopra

Ranch Hand
+ Follow
since Mar 07, 2004
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Rishi Chopra

Thanks Joe

1. Without extending ActionSupport it does not work or am i missing something?

2. But if you build your war using maven (mvn clean package) it places the HelloAction-validation.xml away from the .class files
It places it alongside classes folder. ( May be maven war plugin can be configured to do it as well) .

Thanks & Regards,
Rishi.
8 years ago
Hi,

I have written a basic example for struts 2 with validation framework

JSP Page:- having a single field named 'name' and submit button
Action class :- com.package.HelloAction
struts.xml : the action tag has a result with type 'input' and 'success'

HelloAction-validation.xml :- having a requiredstring validation on the name field.

The question is:-
1) why i have to extend ActionSupport to make it working..Isn't that a question against POJO based programming?
2) why is HelloAction-validation.xml needs to be placed under com.package to make it working
Should it not be alnogside classes folder??? the whole concept of configuration files under src package is really confusing??

Thanks & Regards
Rishi.
8 years ago
I have been unable to get the validation framework working even after extending from ActionSupport

Please help?
8 years ago
Welcome Craig

Have learnt so much from Spring in Action 2...expecting an interesting read about Spring 3



8 years ago
Hi all,

I have below mentioned code in my Action class method

ActionMessages messages = new ActionMessages();
ActionMessage message = new ActionMessage("error.unspecified");
messages.add("unspecified",message);
saveMessages(request, messages);
return mapping.getInputForward();

and the following code in the JSP page to which this is forwarded.

<logic:messagesPresent message="true" >
Messages:
<html:messages id="message" message="true" >
<bean:write name="message" />

</html:messages>

</logic:messagesPresent>


But somehow i get this error saying that

javax.servlet.jsp.JspException: Cannot find bean: "message" in any scope

I am really struck.. Struts version 1.2.9

Thanks & Regards
Rishi Chopra.
9 years ago
Hi all,

I am Java programmer with 3 years of experience, i am currently here in UK from past 8-9 months on a work permit.

I have mostly worked on web-apps based on Struts Framework .

I am planning to move back to india when my visa expired around nov mid, Can you please will that be a feasible option to do considering the bad period in IT in india.

If say i decide to move back too, would you please guide me which are good paymasters in Mumbai, Delhi

Thanks & Regards
Rishi
9 years ago
Hi Bear Bibeault,

Please advice, its UERGENT!!

Thanks,
9 years ago
JSP
Thanks for your prompt reply. The page functionality is such that usually it comes with very few records for a particular entity in database. However, paging cannot be implemented on this page as just one of the entity details break the page. Any other solution?
9 years ago
JSP
I am stuck with a JSP page which is displaying data fetched from database. It works fine but fails to render page completely when the records from database exceeds....the page loading gets slow and also is incomplete.
No error is thrown....
Any help is appreciated.
9 years ago
JSP
make changes in the server.xml
stop the server and start again ...will start working ..
9 years ago
i am creating new SubClass() and new SubClass2() in the main only and not new BaseClass(), then also after sometime the processes dies off i.e it does not come out of sleep mode
All,

I am just starting out with unix ..do not have much experience on it .

Please let me know some books / internet resources.

How much does it take to become a Unix Administrator
9 years ago
I have a class 'BaseClass' that extends a java.lang.Thread but does not implement run() method. but it defines some common methods

SubClass
Now i have a subclass 'SubClass' that extends 'BaseClass' and provides a run() method implementation. In the main method in this class, start method is called is on object of the baseclass. In the run method, some process is done and then thread is made to sleep for 10 seconds. After wakeup,it should redo the process (calling a stored proc )

SubClass2
There is another subclass 'SubClass2' that extends 'BaseClass' and provides a run() method implementation. In the main method in this class, start method is called is on object of the baseclass. In the run method, some process is done and then thread is made to sleep for 10 seconds. After wakeup,it should redo the process (calling a stored proc )

Now these two subclasses are run as a unix process , but the problem is these processes dies off automatically..


HOW ???
All,

I have a shell script that gets kicked off at 8:00 which runs a java program
This java program finishes its task around 8:40 (this is not a certain time can finish earlier or get delayed as well)

I have another shell script that has to be made run directly after the above shell script. This script also runs a java process.

Since i really dont have too much hands on experience in Unix so dont know how to run dependent jobs

Also ,

The first process again runs at 12:00 and finishes around 12:40 or something . After this as well i need to kick off my second process

Please Help

Thanks & Regards
Rishi Chopra.
9 years ago