Sameer Raza Ali

Greenhorn
+ Follow
since Oct 15, 2009
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Sameer Raza Ali

I am tasked with developing a product called salary calculator this going to be integrated with success factors . it creates a break up of ctc depending upon location grade ect basically the business rules of a company . The requirement is that that multiple companies should be able to use this product ie It should so designed that the clients can input there business rules (configure the product) and it will create the break for that particular client . There should be no coding required for each client once the product has been developed ie we should not be redeveloping the product and coding the business rules when a new client wants to use it . This product will be deployed on hana cloud (I am comfortable with this part) any suggestions regarding the best approach , what frameworks to use if any will be highly appreciated
I have developed a proto type using servlets and jsp which does this for one client would like to know if using spring would be a good idea for this application or not since its not a very big application
any inputs on the best approach for making it configurable would be highly appreciated

Thanks Sameer
8 years ago
After a lot of hit and trials and head banging. This problem is solved . i was using struts 1.3 however was relying on old documentation and my previous experience to get tiles to work in my application
I was missing an entry in web.xml file.

If you want to use Tiles, you must instruct Struts to use a configuration file included in the struts-tiles JAR instead. To do this:

Add a chainConfig init-param in the web.xml pointing to the location of the chain-config.xml

<init-param>
<param-name>chainConfig</param-name>
<param-value>org/apache/struts/tiles/chain-config.xml</param-value>
</init-param>

Add this init-param to the Action Servlet definition in web.xml

I did not recieve any replies to my question if somebody would have pointed this out it would have saved me a lot of time.
12 years ago
I am Unable to get tiles to work in my application . I am using Struts 1.3 , stuts-tiles-1.3.10.jar is in the lib folder I am building this application on top of struts-blank.war


The struts-config.xml



tiles-defs.xml


I am not sure if tiles is being intialized properly this is all i get in tomcat console regarding tiles

Jan 8, 2013 10:24:11 PM org.apache.struts.tiles.TilesPlugin initDefinitionsFactory
INFO: Tiles definition factory loaded for module ''.

I guess something more should appear ?

on accessing the application forward action throws the following exception

WARNING: Unhandled exception
java.lang.IllegalArgumentException: Path search.page does not start with a "/" character
at org.apache.catalina.core.ApplicationContext.getRequestDispatcher(ApplicationContext.java:431)


Have I missed something please help
12 years ago
The validator-rules.xml file in Struts 1.3. is buried inside the struts-core-1.3.x.jar file whereas in earlier versions it was included in the WEB-INF folder. Because of this new location,when creating custom validations do we have to update the struts core jar file in order to add validations to validator-rules.xml file? what was the logic behind moving this file into the jar file.
Also the new validator-rules.xml file does not contain any javascript code for client side validations does this mean that the validator no longer offers client side validations
12 years ago
Hi Jatan Thanks for your quick response i got your point the paragraph below gives the answer

You can also use to display a particular message based on the key used when it was added to the ActionErrors object. This is useful if you want to display the message next to the field causing the error.

Regards
Sameer
12 years ago
what is the use of the first parameter in errors.add() method
12 years ago
there should be a correction in the book i guess but then again why is that pageContext is not available after all the underlying servlet will be setting this object

Hi,

HFSJ mentions - request and response implicit objects are available in tag files because even though it’s a .tag file it is going to end up as a part of a JSP.
if this reasoning is correct then why other JSP implicit objects - pageContext, config, application ect are unavailabe ?? after all its going to be a part of the jsp and will end up in the service method of the container generated servlet.

Thanks
Sameer
I am using log4j now , i really appreciate your quick response

thanks
Sameer
15 years ago
thanks tim i can do that, i was using sop for practice exercises for SCWCD but it looks strange that sop doesnt end up in a log file or console when fired from a servlet, it works just fine when used in listeners
15 years ago
ConsumeOutput property is not there in server.xml . do you know the appropriate tag to add ???

how do i make sure so is directed to consoloe ?
15 years ago
I am using tomcat 5.0 there is no file named catalina.out , SOP in servlets is not coming in the other log files i mentioned , why is that so?
secondly i would like it to be printed in the tomcat console the same way it is doing for other classes i mentioned below
15 years ago
i have checked both files localhost_log.2009-12-11.txt and stdout.txt they are not there nor in the console window
15 years ago
System.out.println statements in servlet init() method do not show in console window. I have also checked stdout and log files they are not there either
servlet executes fine, where did they they go ? interestingly sop in attribute listener classes appear in the tomcat console
please advise

Sameer
15 years ago
sorry didn't see the date on the last message, but i replied here because this thread came up in google search the next person to visit this thread will have no confusion regarding this...